21

I am new in apple developer. I have problem when create apns key for my app ( there 2 key service before).

Here is my capture screen enter image description here

After a lot of searchs, I still dont know why? I read apple doc that say only using apn key to make ios app can get remote notification. Other key is not working. Please help me know it. Thanks.

kemdo
  • 1,429
  • 3
  • 15
  • 29

1 Answers1

21

Check your past keys, as mentioned here (click on "Read the Guides", then "Push Notifications"):

The Key Id and Certificate File is obtained by creating a new key.
Enter a name for the key and select the APNs service.
This key is used for all your apps, so if “You have already reached the maximum allowed number of Keys for this service” look back at your list of your keys for an APNs service key.
When the key is generated, make sure to download and back up the certificate file as it will not be accessible in the future.

Maybe you can check in your list of keys for the APNs service keys, and or try to delete/recreate said keys.

Pang
  • 9,564
  • 146
  • 81
  • 122
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • thanks you. I have a question: if "keys" is used for all app, I create 2 keys but never used it for other things. I dont know why I have to create key while it does not help me in fcm docs introduce. https://firebase.google.com/docs/cloud-messaging/ios/client – kemdo Dec 26 '17 at 02:36
  • @kemdo Do you mean you cannot create anew key (in order to upload it to Firebase)? (as in https://firebase.google.com/docs/cloud-messaging/ios/client#upload_your_apns_authentication_key) – VonC Dec 26 '17 at 07:56
  • @kemdo How did you overcome from this problem? Is it like, I have to use the same key for different projects? – Tulon Jun 07 '20 at 16:21
  • @Tulon Dont use Firebase cloud msg use one signal instead – Ucdemir Oct 16 '20 at 13:21
  • 3
    Why is that? Can you please explain your point of view? I already implemented that. – Tulon Oct 16 '20 at 13:27