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

App Android stop when receives Push #99

Closed
ejastre opened this issue Dec 7, 2016 · 5 comments
Closed

App Android stop when receives Push #99

ejastre opened this issue Dec 7, 2016 · 5 comments

Comments

@ejastre
Copy link

ejastre commented Dec 7, 2016

If the app is open the push works and opens, but if it has been terminated when a push arrives the app breaks. I installed via Nuget in Xamarin Forms version 1.2.4. I tested both in Debug and Release. Any solution?

@JulianPasque
Copy link

I am facing the same problem.

@jgoelten
Copy link

jgoelten commented Jan 17, 2017

I can see the same behaviour in my app.

Update: After using the attached PushNotificationAppStarter class that was included when installing the nuget package, the intent service successfully handles notification when the app is terminated.

@jorgenstorlie
Copy link

me to, updated version does not compile with latest version of GooglePlayServices (version 32.961)

@lucascc26
Copy link

@jgoelten can you provide a sample project that is working?
It's been a nightmare, I've tried a lot of things but I still can't receive notifications if my app is closed.

Thanks.

@ejastre
Copy link
Author

ejastre commented Feb 8, 2017

[SOLVED] To solved this issue, just follow the steps in this link: https://github.com/rdelrosario/xamarin-plugins/tree/master/PushNotification

Android

On the Android Application class, is better to use the OnCreate of the Android Application class so you can handle push notifications even when activities are closed or app not running by using our PushNotificationService to keep listening to push notifications.

But is that not a requirement you could do initialization on your MainActivity class

@ejastre ejastre closed this as completed Feb 8, 2017
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

5 participants