khalid
khalid

Reputation: 141

enable bundleIdCapabilities PUSH_NOTIFICATIONS from app-store-connect-api

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: app store connect console bundle push notification capability

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

Answers (3)

Artsem Sharubin
Artsem Sharubin

Reputation: 418

Faced the same issue, fully closed Xcode by right click in it, opened again and the mistake disappeared

Upvotes: 1

Maha Mamdouh
Maha Mamdouh

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 enter image description here

then configure

enter image description here you have to configure 2 certificates one for development and another for production

enter image description here

to create the file that you have to upload

  • on Mac open Keychain access
  • Keychain access > Certificate assistance > Request Certificate from certificate authority ..
  • A window appear about certificate information Select saved to disk then continue then Save .. done "this is the file needed to upload on developer account"

after uploading file enter image description here

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

khalid
khalid

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

Related Questions