问题
I want to send pushnotifications to windows phone.
string subscriptionUri = "https://hk2.notify.windows.com/?token=AwYAAAAqksei6yWvmlcV8RmESRNrXotwCWV0AY9PSOtmgpIo%2bNwq67tkYjG7450r%2bUKpLwxri%2bO7Re9%2f8qmZDAc3TmTlMOaONVqq9ogCKONX2oWe%2fVq%2bT9tIxEllJW3tnKJEfNM%3d";
//string subscriptionUri = "http://s.notify.live.net/u/1/hk2/H2QAAACfgMkOSS8jNp_XgLamnXFqQrk6g8L6pRJHsQxvppe8-lD4EgCu8LcwdtuDIGnY78tjyaL1lsFxLjWl5s-Sgum5tjBQMk-9emm73LJa9125iECyFCoPb5erRBRwGAgNv2o/d2luZG93c3Bob25lZGVmYXVsdA/jGFxihnYNUOIt5Q4gABT7Q/T4l1SvWZqMi_mEe4F61sx-CINOg";
in the above two channeluris first one is Windows RT app uri,second one is Silverlight app uri.Iam getting notification whenever silverlight app uri used.but I am not getting notification whenever windows RT app uri used.whenever I am sending windows RT app uri to the server then response is "OK" but not getting any notification to my device.please help me.
回答1:
Have you enabled toast notification? In Package.appxmanifest, Under Application tab there is "Notifications" option "Toast Capable" set it to "yes"
回答2:
One more possibility is the subscription uri is getting decoded at the receiving end.
来源:https://stackoverflow.com/questions/32762118/push-notification-not-getting-in-windows-phone-app-8-1rt