Azure / mobile-services-samples

Apache License 2.0
93 stars 259 forks source link

TodoListNotifications: add support for WNS #46

Open ggailey777 opened 9 years ago

ggailey777 commented 9 years ago

Since the Mobile Services Cordova plugin won't support WNS, we should add it to the PushPlugin-based sample.

kenwu27 commented 9 years ago

Hi Glenn, as mentioned I managed to get WNS working on this sample app. I realized I had to make quite a few changes to get this working. Also, I was using vanilla Cordova framework instead of PhoneGap, because somehow I was unable to update your sample app to use the newer version of the plugins, which was required to make it working. When I get a chance I will create a fork with my working version. If you are going to work on this, please be aware that the PushPlugin at https://github.com/phonegap-build/PushPlugin contains a bug which will break when compiling for Win/WP 8.1. I have created a fork at https://github.com/kenwu27/PushPlugin which contains the fix.

ggailey777 commented 9 years ago

Thanks Ken. I was in the process of converting from PhoneGap to Cordova anyway. Thanks for the tip about the bug in PushPlugin.

wouter-de-boer commented 8 years ago

Hi @kenwu27, can you tell how you did WNS working?

Martin-Luckow commented 8 years ago

@kenwu27 : Hi Ken. Could you tell us more about your sample for WNS? Is it also working for Universal Apps based on Cordova? Best Regards

Martin

kenwu27 commented 8 years ago

@Martin-Luckow @wouter-de-boer. I had to make a couple of changes to the code to get it working on WP8.1 and Win8.1. Yes the Win8.1 version work on Win10 desktop and mobile. However, I just found out that PushPlugin has been deprecated. The new plugin is at https://github.com/phonegap/phonegap-plugin-push. The description says it supports Windows Universal, I guess that's all versions. Instead of sharing my solution which is based on the deprecated plugin, I suggest you to try the new plugin.

ggailey777 commented 8 years ago

Here are the updates needed to this sample:

  1. Move to the new push plugin.
  2. Add the Whitelist plugin to enable xhr.
  3. Add WNS support for universal Windows app.