Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UWP notifications not firing #133

Open
starzen opened this issue Aug 17, 2017 · 3 comments
Open

UWP notifications not firing #133

starzen opened this issue Aug 17, 2017 · 3 comments

Comments

@starzen
Copy link

starzen commented Aug 17, 2017

Have implemented this into our xamarin app. Working great on Android and now I tried to get it to work in UWP

Registration works I get the proper WNS uri as token. When I send a WNS message after starting the app nothing happens on the windows device (laptop, phone, tablet). I noticed that when the app is either not started or in the background I received the message on the phone but not in the app. none of my breakpoints ever fire.

calling this in the App constructor in the UWP project

CrossPushNotification.Initialize();

any idea what could be missing?

thanks

Mike

@starzen
Copy link
Author

starzen commented Aug 17, 2017

just to add some more information.

In order to verify that push is actually working I commented out the initialization of the CrossPushNotification and added my own code to connect a push notification channel and with my own code it works. I receive push notifications inside the UWP app.

@starzen
Copy link
Author

starzen commented Aug 17, 2017

looks like there is an exception thrown inside the json serializer

jobject = JObject.FromObject(args.ToastNotification, serializer);

throws an exception 'The remote procedure call failed'

@starzen
Copy link
Author

starzen commented Aug 17, 2017

did a test by modifying the code to create a simpler object and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant