williamrijksen / com.williamrijksen.onesignal

Titanium Appcelerator Library for OneSignal Push Notifications Service
Other
51 stars 43 forks source link

Android Notification receive issue in latest devices #71

Closed vishal95713 closed 4 years ago

vishal95713 commented 6 years ago

I am using appcelerator, facing problem in receiving push notification in android oneplus 3 and above phones, also in Mi4i and many more phones with Oreo OS. When app is in background or in foreground it receives notification, but when I remove app from my doc, then I am facing problem.

I got this error:- broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.demo.notification (has extras) }

After looking over this, it shows that the service is been killed when you remove your app from doc list. Kindly look after this issue it is very critical. Thanks in advance.

adriendillens commented 5 years ago

@vishal95713 @williamrijksen I'm facing the same problem right now on :

This doc tell us more about this issue : https://documentation.onesignal.com/docs/notifications-show-successful-but-are-not-being-shown#section-the-app-is-force-stopped

I do my best to fix this issue :

All of these changes doesn't solve issues... Users receive notifications from other apps : snapchat, facebook, whatsapp, etc... (probably not using onesignal ?)

More and more users will update their Android OS version to 8 / 8.1 So in few weeks, this issue will be highly critical

@williamrijksen @chmiiller @jvandijk @ What can we do to solve it ? We can't just wait for Android OS updates ...

jvandijk commented 5 years ago

@adriendillens could you test again with the latest release? https://github.com/williamrijksen/com.williamrijksen.onesignal/releases/tag/2.1.0

chmiiller commented 4 years ago

Closing this issue since it's almost 2 years old and it seems that's fixed already