phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.31k stars 996 forks source link

WNS support on windows phone 8.1 #430

Open fredericks opened 9 years ago

fredericks commented 9 years ago

Hi,

this is not really an issue.

I need support of WNS on windows phone 8.1. Do you think you will add it? Either way, since it's supported on windows 8 version of plugin, is there a simple way to replicate the code on wp8 version to add wns support?

Thanks F.

ttahola commented 9 years ago

Hi Fredericks,

I was wondering the same thing. I ended up creating a fork of the plugin with MPNS support replaced by a WNS implementation. See https://github.com/ttahola/PushPlugin.

best regards, Tero

jfredsilva commented 8 years ago

@ttahola Do you have an example? I'm having some issue. Where do I put the package SID or Cliente secret and what do I put for Windows configuration

ttahola commented 8 years ago

I was using amazon push notifications service (SNS) to test this. If I remember correctly, I put the package SID and client secret into amazon control panel. And when the phone is registered to Windows Notification Service, you will get a channel URI that will serve as an endpoint for push notifications for that specific phone.

But it has been so long time since I tried this, sorry, I may not be able to help :D unfortunately I don't have the phone or the development environment available anymore.

You might be able to proceed by looking the source code of WNS plugin I implemented on my fork of the Cordova Push Notifications Plugin at https://github.com/ttahola/PushPlugin/blob/master/src/wp8/PushPlugin.cs

But be warned that I'm not actively maintaining that code anymore, so it should be considered a reference implementation only.