Parse.com Push not working on Windows Phone 8.1

纵饮孤独 提交于 2019-12-12 10:47:08

问题


We are using Parse for push notifications on Android and IOS and works fine!

I am working on a Windows 8.1 app, and cannot get it to work. The app is a Universal app developed in javascript/html/css.

I followed this guide for using parse dlls in the javascript project. https://parse.com/questions/windows-8-javascript-app-push-notifications

  1. Added a new project Windows Runtime Component project and added a helper class.
  2. Downloaded the Parse SDK and added reference to Parse.dll and Parse.WinRT.dll in the project.
  3. Reference and call the helper method in my new project, in the startup of my app (in onactivated event).

    public void InitializeParse(string appId, string key)
    {
       ParseClient.Initialize(appId, key);
    }
    
    public void SubscribeToParse()
    {
      ParsePush.SubscribeAsync(""); 
    }
    
  4. Tried both the .Net-key and the Client key in the above.

  5. Activated toast notification for the app.
  6. Published the app to Windows Phone Store, and added the keys from there to the Parse Push settings.

I can see that the phone registers to Parse because I can choose to only use the segment Windows when pushing.

The number of devices is more than 0.

The number of pushes sent is always 0.

Any Help is appreciated?

  1. Do I have to setup anything else in Windows Phone Store?
  2. Do I have to call the methods somewhere else besides in onactivated event?
  3. Do I have to authorize Parse in the Window Phone Store in another way than providing the ClientSecret and SID ?

来源:https://stackoverflow.com/questions/29180703/parse-com-push-not-working-on-windows-phone-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!