Then now I did the same and only the maps and Background modes tab is checked.
Not the Push Notifications and not the associated Domains.

I found out that the plugins which I’m using (onesignal-cordova-plugin & ionic-plugin-deeplinks) write to the Entitlements file.
I can find them in platforms/ios/MyApp/Entitlements-Release.plist and Entitlements-Debug.plist.

But its not enabled anymore.
I uploaded the file to iTunes Connect and I got a mail that Missing Push Notification Entitlement … the app signature’s entitlements do not include the “aps-environment” entitlement.

@patrick.bussmann Can you please brief this out, I am trying to run a script which generate a ipa which includes all the required capabilities enabled like iCloud for example, able to generate ipa but not able to attach capabilities to the application. your inputs will save my day