Monday, August 15, 2022
HomeiOS Developmentios - Push notification issues with Back4App and APN Authentication Key

ios – Push notification issues with Back4App and APN Authentication Key

[ad_1]

I am utilizing ParseServer with Back4App for an Android and iOS App. I carried out a Cloud Operate on the server to ship push notifications by Parse and it really works for the Android app with none points (for each debug and manufacturing apks).

With the iOS Model I’m presently working into the next drawback:
I created an APN Authentication Key that I uploaded to Back4App. Within the course of I indicated that this secret is for a debug app, and sending push notifications through the Cloud Operate to my iOS debug gadget works like a appeal, it doesn’t matter what gadget triggers the Cloud Operate. This was adequate for growth.

I want to have the ability to get push notifications to each gadget sorts to troubleshoot along with my TestFlight testers in an open take a look at I lately began.

For all TestFlight take a look at gadgets, push notifications should not getting delivered – which isn’t stunning, provided that the APN Key was uploaded to Back4App for debug apps solely.

I thus reuploaded the APN Key and indicated that it’s a manufacturing app, and now sending push notifications to the TestFlight testers works, however sending push notifications to my iOS debug take a look at gadget doesn’t.

I attempted getting round this by altering the construct scheme in Xcode from Debug to Launch – however with a launch model on my iOS debug gadget, the push notifications are nonetheless not being delivered to stated gadget. I can see in my Parse Dashboard that they’re being despatched, however they don’t seem to be getting delivered.

I’m utilizing a Notification Service Extension and set the Construct Mode to Launch there as properly, however to no impact.

Altering the APN Authentication Key on Back4App again to Debug solely permits me to obtain push notifications once more on my debug gadget.

I attempted altering the APN Authentication Key (for both debug and manufacturing, since I can not choose each on Back4App) earlier than drive quitting the app, restarting it to get a brand new APN token saved to the ParseServer, after which sending the take a look at notifications, additionally to no avail. I attempted this for each my debug gadget and a TestFlight gadget, and it’s all the time both my debug gadget (who will get the app straight from Xcode) or the TestFlight gadgets which are capable of obtain push notifications, by no means each.

I didn’t get round to making an attempt it with APN Certificates for which I learn that there are two distinct certificates for Manufacturing and Debug apps. Whereas this selection could be attainable with Back4App, one large query stays – how do you implement push notifications each for debug and manufacturing apps in iOS with just one APN Authentication Key? And extra particularly, how do you try this on Back4App?

Or are there some other methods round this concern moreover the previous APN Certificates? Since APN Authentication Keys are made out to be the long run I would moderately implement it with that as a substitute of the older APN Certificates.

Any assistance is appreciated, thanks upfront!

[ad_2]

RELATED ARTICLES

Most Popular

Recent Comments