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

When I killed app, can I recieve the notification? #74

Closed
tonywya opened this issue Nov 6, 2017 · 6 comments
Closed

When I killed app, can I recieve the notification? #74

tonywya opened this issue Nov 6, 2017 · 6 comments

Comments

@tonywya
Copy link

tonywya commented Nov 6, 2017

Hi,

Is there any way to receive notification when the application is force killed?

Thanks.

@jkasten2
Copy link
Member

jkasten2 commented Nov 6, 2017

@tonywya The following troubleshooting guide covers all the cases where a notification may not show.
https://documentation.onesignal.com/docs/notifications-show-successful-but-are-not-being-shown

Please provide more details about about which platforms, versions, and logs if the above does not solve your issue.

Thanks.

@tonywya
Copy link
Author

tonywya commented Nov 16, 2017

Hi,

My test device is Huawei Honor6, Emui3.1, Android5.1.1.
When I kill the app, then send the notification, the adb log is like this:

W/GCM-DMM ( 6345): broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.myPackageName.google (has extras) }

It seems that the service is shutted down, is there any way to restart the service again?

Thanks.

@jkasten2
Copy link
Member

@tonywya Since the device force killed your app most intents such as a push won't be able to start your app again until the user opens your app again. On most Android devices swiping a way the app does not put it in to a force closed / force killed state. However Huawei devices before EMUI4.1 are one of the devices know to do this.

See this OneSignal's blog post on a list of devices that do this and what settings can be changed to prevent this issue.
https://onesignal.com/blog/manufacturers-interfere-with-reliable-notifications/

@tonywya
Copy link
Author

tonywya commented Nov 16, 2017

thanks @jkasten2 , but i mean manually kill the app not automatically killing background apps

@piotrkst
Copy link

@tonywya I guess it won't be possible using this SDK

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

4 participants
@jkasten2 @piotrkst @tonywya and others