-
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
🔥 [🐛] Not receiving notifications on iOs #4803
Comments
Quickly want to mention that I have not added any 'handlers' for the notification, because I don't have any need for them. Also, notifications don't work when the app is in foreground, background, or even quit. |
Hmm some thoughts: 1- you want reproducible tests? Don't use the console to send messages, post JSON directly to the FCM REST API, and include that here so we can see what you're posting. Those are my best tips, but in general it's important to note that we're not aware of the module having any issues at the moment but messaging is hard, so it may not be easy to get working in your project but there is very little probability it will result in any actual activity here so beyond these tips there isn't much to offer |
your react-native-dotenv is out of date - maintainer |
Please be specific, provide a link to the exact line of code you mean @goatandsheep? I'm not aware we use react-native-dotenv. |
@mikehardy sorry I was referring to the ticket author |
Fun onMessage not call in IOS, please can i help you ?? 1.Get an APNs Auth Key from Apple Developer website and add it to my Firebase project if (Platform.OS == 'ios') {
|
Hey, |
hi @isonlaxman Did u find any solution for this |
same issue here @AvibhavChoudhary |
same issue here |
|
Having the same issue. Did you figure this out? @isonlaxman |
Reopen this issue |
What is the update on this? Are push notifications working on iOS? |
Experiencing the same issue. Please reopen this issue. |
Hey @ThetoMokganya, I did it get it to work and can confirm it is working. The issue for me was my bundle id on firebase wasn't the same as on my app. Creating a new ios app on firebase with the correct bundle id fixed it. I'd also recommend downloading postman for troubleshooting. |
Hi @ammaarkhan I realised that in the early hours of the morning, had uploaded the dev APNs certificate to the prod firebase project. Thank you though. |
Hey @ThetoMokganya, glad to hear it's working for you. I sure was happy when I saw that first notification on an ios device! |
Issue
I'm using the latest version of @react-native-firebase/app and messaging but I can't get iOs notifications to work. Here are the steps I've taken so far:
However, when I do this, nothing happens, I get no error anywhere. I'm stumped. I've gone through multiple issues on this repo, such as this and the one where Mike said to remove other push-notification libraries. Along with a whole lot other issues for the whole of the past week but I'm still failing to get this to work.
Here is the code where I call getFcmToken and requestPermission
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
: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:Firebase
module(s) you're using that has the issue:TypeScript
?React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: