HomeiOS Developmentxcode - Push Notification difficulty. (With Firebase FCM) - IOS - Unity

xcode – Push Notification difficulty. (With Firebase FCM) – IOS – Unity


I’m fairly new to iOS improvement and presently engaged on an app utilizing Unity. I’ve encountered a problem that has been bothering me for the previous couple of days. The cell app I am engaged on ought to obtain push notifications, however it appears to have stopped working just a few months in the past.

Listed here are the small print:
I’m utilizing Unity 2020.3.8f1 and the newest Firebase SDK 11.0.0. On my Mac, I’ve Xcode 14.3 put in.

Within the Xcode venture settings beneath “Unity-iPhone – Signing & Certs,” I’ve enabled Push Notifications and Background Modes with Background Fetch and Distant Notifications chosen.

I’ve additionally added the UserNotifications.framework within the Basic settings of the Xcode venture.

I’ve allowed Xcode to deal with computerized signing for the app.

Each time I construct the app as an .ipa or for TestFlight and launch it, I obtain the next error: “FCM: Didn’t register for distant notifications.”

I’ve already created an APN key on the Apple Developer portal, and it’s uploaded to the Firebase venture settings.

Apparently, I’ve one other app with the identical setup the place every part works advantageous on a regular basis.

I believe that the difficulty could be associated to certificates. A couple of months in the past, the event certificates for this app expired. Once I obtained this Mac from a earlier developer who give up, there was no .cerRequestSigning file obtainable. Due to this fact, I generated a brand new one utilizing Keychain Entry and created a certificates utilizing that new request file.

I am undecided if this lead is correct, however I discover the certificates system in Apple fairly complicated in the intervening time. Do any of you have got any concepts the place to search for an answer in my case?”

Each apps works advantageous on Android.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments