Closed Morgan-6Freedom closed 3 weeks ago
Hey @Morgan-6Freedom, sorry for the delayed response. So I was able to take a look into your code, it seems that there isn't any problem. I've also tested our Firebase Unity Quickstart and it seems like it is working alright. I'm guessing the issue might be that you haven't added the APNs Authentication Key in the Firebase Console. You're going to have to follow a guide here from the iOS section:
Upload your APNs authentication key to Firebase. If you don't already have an APNs authentication key, make sure to create one in the Apple Developer Member Center.
- Inside your project in the Firebase console, select the gear icon, select Project Settings, and then select the Cloud Messaging tab.
- In APNs authentication key under iOS app configuration, click the Upload button.
- Browse to the location where you saved your key, select it, and click Open. Add the key ID for the key (available in the Apple Developer Member Center) and click Upload.
Feel free to use our quickstart for testing the Firebase Messaging. You can also take a look into the README section of the FCM quickstart to get a step by step instruction how to set it up.
For now, it looks like there isn't a problem with the SDK, so I'll go ahead and close this thread. Feel free to come back here if you think there's an issue with the SDK. Thanks!
The issue was : I putted the Key ID as Key ID & Team ID. Instead of Key ID as Key ID only.
(1) & (2) were the same value. which is not correct
What is your question?
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Steps to reproduce:
I had this error on iOS : No APNS token specified before fetching FCM Token
I changed
And I don't have the error anymore. However, I still can't receive notification push on my iOS Device
Remote Notification is checked & Push Notification is here.
UserNotifications.framework is here too
my APN key is uploaded in Firebase :
Relevant Code:
this is my FCM.cs script which is some copy paste from yours from the sample :
Firebase Unity SDK Version
12.1
Unity editor version
2022.3.30
Installation Method
.unitypackage
Problematic Firebase Component(s)
Messaging
Other Firebase Component(s) in use
No response
Additional SDKs you are using
No response
Targeted Platform(s)
Apple Platforms
Unity editor platform
Mac, Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity