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
received, opened never fired on IOS. #209
Comments
I' ve the same problem, someone know how to solve it? |
Having the same issue, cannot track down the issue. Received will fire if the app is in focus, but in the background it will not. Edit: I have other things receiving remote data in the background just fine. |
@zawarudo zawarudo, have you got any updates on this issue? I faced the exact same issue as you, where onreceived will fire when app is in focus, but not when its on background. |
Hi guys, could any one of you share a repo with the issue reproduced? I'll try to take a look on this. |
@LEEY19 Unsolved, moved away from onesignal to compensate. |
@avishayil we literally just followed the example on this github readme. everything works as expected except that onreceive is not fired when app is on background on iOS |
@LEEY19 I'll have a look on this. |
@avishayil @zawarudo guys, after setting content_available to true when sending notification through REST API, onreceive is fired. Thanks for the help :) |
@LEEY19 Glad you sorted it out, if I remember correctly I did have this set to no avail. |
@avishayil Ok this is really weird. setting content_available to true did fire onreceive on iOS for debug build. But when it comes to release build, the issue happens again. Also, is it a limitation of the library, that when the app is originally closed (neither foreground nor background), tapping the notif on the notif drawer does not trigger onopened? |
@avishayil i think this onreceive not firing issue on iOS has something to do with this can you look into this ? Our current declaration is this:
but seems like the 'fetchCompletionHandler:' needs to be added |
@avishayil Further testing reveals this finding: However, Android release build works fine. |
@LEEY19 Hi, did you solve the problem? I'm having the same problem. |
version: 3.0.3
I'm able to receive a notification but the functions received or opened are never fired or at least console log doesn't show the infromation.
I checked this when the app was enabled as well as working in a background.
What is more, if I click on the notification it doesn't change the value in OneSignal (Clicked).
My AppDelegate.m
The text was updated successfully, but these errors were encountered: