Parse.com Push not working on Windows Phone 8.1

2019-06-20 08:32发布

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 ?

0条回答
登录 后发表回答