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
FCM Push notifications do not work on iOS 11 #327
Comments
I have the same problem. |
Hi @caiovidaln ! |
We have the same issue. Once the app goes into the background, no pushes are received at all. |
Also not receiving push notifications with iOS 11 and latest firebaseMessaging 2.0.3, firebase 4.2.0. I have used the apps.sh script to test and i receive those notifications, but using the fcm id and sending through the console and I receive nothing. I just did a drop in replace from previous version 1.2.1 and 3.11.1 (had to add one delegate function for token update). |
I noticed from your code, you're not running the request for push authorization from application:(UIApplication *)application I have similar issue. I updated to Firebase 4.2.0 and FirebaseMessaging 2.0.3, my issue is I'm not getting notification if I do request push notification at later time. (I'm doing soft request/custom dialog to check if user want to receive push notification, before using the system request). I was able to reproduce it from the quickstart project by adding a delay to the requestAuthorization for push. Here's my SO thread: https://stackoverflow.com/questions/46443189/firebase-messaging-not-sending-notification-when-push-notification-authenticatio |
There is a known issue where the FCM token is not always being associated with the APNs device token if In the meantime, you can:
For testing, you can trigger a new FCM token by uninstall/reinstall your debug app on your device. |
Got it. do you have any ETA when the version will be released? |
@rsattar Thanks so much! Locking FirebaseInstanceID to 2.0.0 worked for me. |
@ordinaryman09 to specify exact versions, you should use |
Both downgrading the FirebaseInstanceID and FirebaseMessaging and placing the UIApplication.shared.registerForRemoteNotifications() as the first thing in the didFinishLaunchingWithOptions still doesn't work and gives a similar error. Is there anything else I can do? |
@10686142 try uninstalling the app and reinstalling with the code changes, to ensure that a new FCM token gets issued |
Yeah somehow I still can't get it to work, but maybe I did something wrong since I am new to this. But maybe someone knows what it can be: Is he maybe missing something is his explanation or am I missing something? Thanks in advance! |
Thanks @jtbh89 & @rsattar , I downgraded to 2.0.0 and it works for me now. @10686142 what messages are you seeing? Do you get the tokens? |
2017-09-28 21:26:20.067218+0200 App Imperium News[1026:80671] [Firebase/Messaging][I-FCM002019] FIRMessaging received data-message, but FIRMessagingDelegate's-messaging:didReceiveMessage: not implemented |
Yeah I did also receive the token. And I got it to work earlier today that I could also see the push notification message in my debug log, but I always get that message about FIRMessagingDelegate's-messaging:didReceiveMessage: not implemented |
I got it to work finally guys! I added this piece of code: |
Beginners mistake I think, thanks for your help! @rsattar @richardliveraise |
it works for me after downgrading to 2.0.0, thanks guys! |
@rsattar Without using CocoaPods, how is it possible to downgrade to 2.0.0 to fix this? Can you provide a link to download the working framework(s)? |
@Candywriter you can download the https://dl.google.com/dl/cpdc/9fe91bfb8772be4b/FirebaseInstanceID-2.0.0.tar.gz |
@morganchen12 Thanks! Unfortunately manually replacing FirebaseInstanceID 2.0.3 with 2.0.0 produces a host of build errors. |
I had no issues. Are you on the latest download besides that? |
Try to set this, works for me:
|
Sorry, my memories solution isn't really the solution. Message just arrived when app is active. |
Downgrading FirebaseInstanceID to 2.0.0 did not work for me either. I'm confused why it works because this is only supposed to be in place if you have swizzling disabled, which I don't. |
In iOS11.0, there seems to be a problem with iOS itself in handling silent push notification. |
@keitaoouchi I don't believe this is the reason for not receiving the notifications. They say this issue mentioned in StackOverflow is already fixed. Even if it is not - I experience a different issue - I always receive the push notifications when targeting a single device and very rarely receive notifications when sending to a User Segment. |
I'm also encountering the issue of @o15a3d4l11s2. I can receive push notifications by sending message to a single device, but almost nothing when using User Segment. |
I wasn't receiving any notifications until I deleted the .p12 files from the firebase console and upload the .p8 file https://stackoverflow.com/questions/39672297/how-to-use-apples-new-p8-certificate-for-apns-in-firebase-console |
@eduardoParadoja Thanks for the suggestion. I use APN Auth Key and not APN Push Certificate. |
I am seeing the exact same issue as @o15a3d4l11s2. We are using the console (https://console.firebase.google.com) to send notifications. If I target an individual device using the FCM token the notification is received. If I try to send to a User Segment the notification is not received. 🤷
|
Exact the same issue as @jacobmoncur. Even same versions of Firebase, .p8, Xcode 9 |
Same issue as @jacobmoncur's. We need to ask user give permission to push notification after FirebaseApp configuration. |
How do I use this solution? fix is HELP, PLEASE. |
@ericklarac You add it on your Podfile |
Pods: Getting Any suggestions? |
@dhorrock You need to subscribe to the |
Hi all am also facing same problem ,but am not installed plugin coco pod on ios ,installed only "cordova-plugin-fcm" and done FCM setting its working all IOS Expect 11. am able to get token id also, sending notification through API getting successful responses also ,but notification not coming IOS 11 but 10 its coming Any suggestions? |
Can not get it to work either same problem with @o15a3d4l11s2. |
@kerimsari @raghuyt @dhorrock
Note: If you are facing problems and you don't find a solution, I recommend you to start a new project and review each step. You can use the quickstart-ios example of firebase or this example which I found it awesome. |
Hi @ericklarac How can i install this for cordova apps pod 'Firebase/Core' Please can you help me with this . |
Hi @ericklarac I've done what you said and i can send notifications via topic target but not to user segment.. Please suggest |
@raghuyt Open up Terminal on the folder of the project then edit the Podfile, you can use nano or vi and just paste those lines (i.e. mine looks like this): Then you save it and run the command: pod install, open the .xcworkspace with Xcode, run the project and you are done. @kerimsari If the notifications status on the firebase consoles is completed, click the notification and look the chart if sent is 0 it's because firebase isn't storing the tokens. Actually, I don't know how user segment works on the firebase console at all, but hope I could work. |
@ericklarac thank you now its working in all IOS versions ,till now IOS version 11.0.2 its working all devices |
I had the same problem on my phone and solved it by restarting the phone, I was receiving the push after that. I hope it Will be the same for you. |
Firebase released a new update, anybody tested the new one? |
I have a problem don't receive push notification on my some devices. Environment:
Devices: In my Podfile.lock:
Did v4.0.4~ really fix push problem?? |
Are you uploading the apple certificates (.p12 files) to firebase? |
@shihochan It may be useful to create a new issue since this one is closed. There are different ways in which messages should be handled between iOS 9 and 10 so that could be an issue but a new issue with more detail of your setup and how you are sending the message would be helpful. |
Agree with @kroikie Looks like this thread has been involved with many off-topic issues. If your issue is different than what's on the title (that's been closed), please file a new issue and we will look into each individual one. Thanks! |
I use Firebase as a backend. I also use FCM as one of the provided features from Firebase. FCM worked well in iOS 10, but after switching to iOS 11, push notifications stopped coming to user devices, and I myself did not receive any push notifications sent from the cloud functions or the Notification section in the Firebase Console. How to fix this problem?
Update: I sent several push notifications from Firebase Notifcations, but they do not come.
The text was updated successfully, but these errors were encountered: