-
Notifications
You must be signed in to change notification settings - Fork 2.2k
silent notifications don't work on ios 13 #2956
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
Comments
firebase.messaging().onMessage((message: RemoteMessage) not called on ios 13 (versions tested: 13.1.3, 13.2.1, 13.2.3). |
I managed to get it working with a weird workaround. This definitely should not be the case or solution. In 'AppDelegate.m' I write
And in JavaScript I only need to do this
Without XCode part |
Hello 👋, to help manage issues we automatically close stale issues.
|
I can receive notification while app in background or killed, but not in foreground. All was working until i updated to ios 13. Anyfix to this? |
This works for me too. |
Hello 👋, to help manage issues we automatically close stale issues.
|
Unfortunately workaround doesn't work for me |
Hello 👋, to help manage issues we automatically close stale issues.
|
Hey all 👋 There's a draft PR available which fixes this issue and others, please check it out: #3339 We'll be doing a RC release once a few more things are implemented. |
Issue
Sending silent notifications to iOS 13 device doesn't work. I have code that worked on ios12 and it used rn-firebase v5. Now that I build it on iOS 13 it doen't work. Tried upgrading to rn-firebase v6 but still the same issue. getToken() method gives push notification token, but when message is sent, it arrives on Android but not on iOS.
So in all cases (iOS 12, iOS 13, Android) I get token. When I send out notification, iOS 13 is the only one who doesn't receive it with
messaging().onMessage((data) => console.log(data))
Project Files
Javascript
Click To Expand
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:both 6.0.3 and 6.1.0
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
Think
react-native-firebase
is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: