Reputation: 141
I'm working in a CI/CD for our new app and we are using app store connect API, for now I can create a bundle ID, and enable PUSH_NOTIFICATIONS capability for it but I can't figure out how to configure a bundleId PUSH_NOTIFICATIONS capability certificate?
Note: i can enable PUSH_NOTIFICATIONS capability, but this capability without certificate not work.
Helpfull info: this is my enable capability payload:
{
data: {
attributes: {
capabilityType: 'PUSH_NOTIFICATIONS',
},
relationships: {
bundleId: {
data: {
id: bundleId,
type: 'bundleIds'
}
}
},
type: 'bundleIdCapabilities'
}
}
Expected to be like the app store connect console:
I already did many search around google and here but I didn't found nothing about this. About apple forum i found same posts with similar questions without answers. And yes i send a help request to apple support too.
Upvotes: 1
Views: 761
Reputation: 418
Faced the same issue, fully closed Xcode by right click in it, opened again and the mistake disappeared
Upvotes: 1
Reputation: 116
you have to buy developer membership to configure a push certificate in your developer account "developer.apple.com"
select identifiers then select your app to Edit your App ID Configuration
enable push notification
then configure
you have to configure 2 certificates one for development and another for production
to create the file that you have to upload
download the generated certificate
check service provider about the certificate formate he wants "you have to configure production certificate to the service provider"
Upvotes: 0
Reputation: 141
As Apple now have Apns Auth Key, it's not necessary to generate certificates for new bundleIds, and that for now it’s not supported buy AppstoreconnectApi.
So I'll leave this answer as an accepted answer to help those who came from the same dough.
Upvotes: 1