- Home /
Firebase Cloud Messaging on Ios not working (but working on Android)
Unity version: 2018.4.20, Xcode 11.5, Firebase 6.15.2
Firebase analytics works on both Ios and Android (I see the device appear in the console).
I have been following this tutorial to set up Cloud Messaging: https://firebase.google.com/docs/cloud-messaging/unity/client#add_user_notifications
On Android, it works fine, but I don't get any notifications on Ios (built from Xcode on an Ipad). I did add the capabilities "remote notifications" and "push notifications", and I added UserNotifications.framwork.
I don't get any error. Is there something I am missing?
Answer by Edwige · Sep 01, 2020 at 03:40 PM
So I solved my issue : my provisionning profile was expired, so the application was receiving the messages but refused to display them.
In case you have the same issue, this profile is in https://developer.apple.com/account then "Certificates, IDs & Profiles", then "Profile". You need one profile with you app bundle id. Then download it and install it by double clicking on it while you are on the mac you are building on.
Please note you also need a key from the same menu, with an authorization for Apple Push Notifications Services. This key can only be downloaded ONCE, so keep it carefully, then it has to be imported in your project settings = cloud messaging in Firebase.
Good luck to all working with Firebase and Ios, the configuration is tricky!!!
Answer by ChrissTman · Dec 16, 2020 at 03:54 PM
THANK YOU @Edwige , i completely ignored the APN, which stands for Apple Push Notifications...
Here's again FB docs on how to get the Apple Cert for Push notifications: https://firebase.google.com/docs/cloud-messaging/ios/certs
And then Here you upload it to FireBase: click the... gear icon > Project Settings > iOS > Cloud Messaging
As said above, the cert is just one time thing and it is for ALL your Apple apps, so back it up. Don't let it rot in your downloads folder.
AGAIN, THANK YOU so much. I really had no clue what to do next :) since FireBase didn't show any errors what so ever in the log .
Your answer
Follow this Question
Related Questions
Reading notifications from Unity or knowing if notifications are enabled 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
iOS push notifications via Parse.com 2 Answers
Local Notification on android and ios every 24 hours 1 Answer
iOS Setting Icon Badge Number With Local Notification 1 Answer