OneSignal Push Notification ClickEvent show empty values Windows phone 8.1 C#

故事扮演 提交于 2019-11-29 16:16:00

It is a limitation of Windows Phone 8.1 notifications where the message body isn't passed to the app. The issue is that LaunchActivatedEventArgs passed to OnLaunched doesn't contain this so the OneSignal SDK can't get this value. You can set a break point or print out e.Arguments to see that it WP8.1 isn't passing this.

You can work around this however by adding your message to Additional Data as well as data parameters are still passed to your app.

You first need to debug and check if it really receives the message in notificatonOpened method. It might be due to the message not being recived properly by it while in background.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!