简体   繁体   中英

MPNS Push Notification Channel never returns HTTPS URI

I'm trying to set up an authenticated push notification channel for Windows Phone 8 using MPNS.

I'm creating an HttpNotificationChannel with new HttpNotificationChannel( ChannelName, ServiceName ); , which, to my understanding, should result in getting an https:// channel URI.

But the channel URI that is assigned to the channel will always be http:// .

What do I have to do to get the https:// channel?

When adding or removing the service name from the HttpNotificationChannel construction, the URI prefix will not always be changed. Why that is is unclear.

What helps is to uninstall the app and reboot the device. Afterwards the channel URI will have the correct prefix, depending on if a service name was provided.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM