iOS: APN auth Key for free developer account - ios

Do we need to enroll in the Apple Developer Program ($99) to get the APN auth key and certificate? I needed it to learn FireBase Cloud Messaging which asks for the APN certificate/auth-key to be uploaded. This is how my developer account looks like.
Also, is there any other way I can generate a token for sending messages to FCM

To configure Firebase for Push Notifications you need APNs certificate.
To unlock push notifications capability you need to enroll into the Apple Developer program (after that you will get access to Certificates, IDs & Profiles section of your developer account).
PS: AppCoda: Implementing Push Notifications on iOS with Firebase

Related

Can I receive Push Notification to my mobile if I delete Authentication Key in Apple Developer Account

I created an authentication Key in Apple Developer Account to implement push notification for my ios app. I used Firebase to send notification where I added .p8 file and provided Team ID and Key ID. now I am receiving notification successfully From Firebase, So in the future, if I delete this Authentication Key in Apple Developer Account will I receive notifications to mobile.
Firebase is using that key to authenticate with apple services when sending push notifications, removing the key from apple developer account will result in firebase not being able to authenticate and push notifications will stop working.

Apple Push Certificates Expiration

Today I got an email from appleid#id.apple.com saying that our Apple Push Service Certificate is about to expire.
I haven't seen any email from Apple like this. Wanted to see if it is legit?
Dear ***,
The following Apple Push Notification Service certificate, created for
AppleID [email address] will expire on April 11, 2018. Revoking or
allowing this certificate to expire will require existing devices to
be re-enrolled with a new push certificate.
Mobile Device Management - null
Please contact your vendor to generate a new request (a signed CSR),
then visit https://identity.apple.com/pushcert to renew your Apple
Push Notification Service certificate.
Thank You,
Apple Push Notification Service
I received this email as well and our application does not support APNS so it must be a phishing attempt.
Visit https://developer.apple.com/account/ and tap Certificates, IDs & Profiles and you will see which certificates need your attention.

Cannot send push notifications iOS using APN Auth Key

I attempting to send a push notification to my react native project. When sending to single device (provided FCM Token), it thrown an error
Invalid APNs certificate. Check the certificate in Settings.
So my assumption is the notification message is even not yet sent to APN, which my device obviously will not gonna receive anything
Please help
edit
I already uploaded my APN Authentication Key. Firebase docs says that I need to use either APN Authentication Key or APN Certificates
Revoking and re-uploading the key worked for me.
You are trying to push notification with no APNs Certification assign.
Please check the link below to generate or create the certificate to allow firebase send push notification in iOS.
https://firebase.google.com/docs/cloud-messaging/ios/certs
Here are the React-Native plugin and instruction for FCM (Firebase Cloud Messaging)
https://github.com/evollu/react-native-fcm
Hope it could help you.

Implement an MDM server

I'm trying to implement a server side solution to remotely control permissions in and iOS device, on demand.
From what I've read it is possible using the MDM protocol and MDM push notifications, which allow my server to remotely change restrictions in an iOS device, for instance, or even lock the device, on demand.
I know that the iOS device must install an MDM configuration profile to be able to be remotely managed. I also know that the server must have an APNS certificate with MDM permissions.
My question is: do I have to be an MDM vendor and/or join the Apple Developer Enterprise Program in order to generate the APNS certificate with MDM permissions ?
Thanks in advance.
Yes, you need to have a company developer account registered with a DUNS number before you can be accepted into the MDM program.
You need to have Apple Developer Enterprise Program if you want implement MDM server by yourself. There is no need of Developer enterprise program to generate APNS certificate. You can generate APNS certificate from any apple id.
I don't believe you have to do anything to write your own personal MDM server except register for and receive an APNS certificate and follow the protocols.
If you want to sell your server and have it authorized by Apple, then you need to register obviously. I would certainly not buy one which wasn't.
You need an APNS (Apple Push Notification Service) certificate in order to connect to the APNS Servers to have your MDM server work. You use the certificate to validate who you are before you are allowed to send Push Notification messages. This requires an Apple Id.
Your MDM server also needs to be running on an TLS secured server and you use that certificate to sign the MDM profile you install on a device which you want to manage.
Yes, you will need Apple Developer Enterprise Account. Only Apple Account will not work. Contact Apple Support and ask them to provide you MDM Vendor rights.
In order to send MDM commands you will require Push Certificate Signed by MDM Vendor certificate.
This MDM Vendor tutorial will help you.

certificate for push notification of passbook

What is procedure and how to create certificate for push notification of passbook?
Using sandbox and they work for push notification( php-apns), but not work for passbook(using push token).
so please help for correct way to send push notification of passbook and how to create certificate.
You need to generate a Pass Type ID and a certificate in the Apple Developer portal (requires a paid membership). You then connect to APNS using this certificate.
You also need to use the production APNS endpoint and port - there is no sandbox for passes.

Resources