-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] Bug Report Title - setBackgroundMessageHandler is not working on IOS using react-native-firebase. #5057
Comments
@jjkim0816 , I am experiencing the same problem. In my case, On Android, everything is ok! |
@SauloDesenvolvedor Hi, I'm a colleague of @jjkim0816 |
@SauloDesenvolvedor Thank you so much, reply my question^^ |
In my case, onMessage is not enabled for iOS. How is your |
@SauloDesenvolvedor So, we added "apns-push-type": "background" in Headers on APNS, and in testing. |
|
I am sending test notifications through the firebase panel. Everything works on Android, On iOS, none work. Testing on real devices. Could it be that the problem is in sending the notification through the firebase panel? |
this is our AppDelegate.m |
My AppDelegate.m is very similar. I will continue to look for a solution. |
"apns-push-type": "background" is working on background, but not working on quit. |
The template was skipped, so I'm closing this. |
@mikehardy We response Json to app, set "content-available : true". on APNS header.
|
@mikehardy
|
iOS restricts thing pretty seriously. Make sure your battery is charged, make sure background refresh is on for the app (so you can "background refresh" your "content" which is now "available", right? that's the point of the feature) make sure the phone isn't overheating, make sure you are not in low power mode etc. And it will work sometimes. |
use library version
version
react-native-firebase v11.1.1
issue
App is turned off or hidden, setBackgroundMessageHandler is not working on IOS.
Now, just Fireabase will not use setBackgroundMessageHandler, so use onBackgroundMessage instead.
But, react-native-firebase don't use onBackgroundMessage, so what is the function instead of like onBackgroundMessage.
The text was updated successfully, but these errors were encountered: