I have some problems activating push for my Xamarin.iOS App.
I activated push in the App Id in the Apple Webportal:
First i tested uploading the ipa to the AppStore. It worked but i got the follwoing Email:
"Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1."
Then i added this to my entitlements.plist:
<plist version="1.0"> <dict> <key>aps-environment</key> <string>production</string> </dict> </plist>
I tried both, "production" and "development". Both times i get the following error when trying to upload the ipa:
"ERROR ITMS-90163: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'aps-environment' in 'Payload/CheckListApp.iOS.app/CheckListApp.iOS'."
I don't really know whats the problem. First it says "Add the aps-environment entitlement to your app bundle because you specified it in your provisioning profile" and if i do that it says "the entitlement is NOT included in the provisioning profile".
What am i doing wrong here ?