Push Notification Entitlement - Issue while uploading app to app store - ios

I get the following mail after submitting my app:
App Store Connect
Dear Developer,
We identified one or more issues with a recent delivery for your app, "Zapit" 1.0.0 (1). Your delivery was successful, but you may wish to correct the following issues in your next delivery:
ITMS-90078: 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 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.
After you’ve corrected the issues, you can upload a new binary to App Store Connect.
Best regards,
The App Store Team
I never enabled push notification, and it is not enable in https://developer.apple.com/
So have no idea how to work it out.
What does it mean app signature's entitlements do not include the 'aps-environment' entitlement.? and how to I include it?
Where can I disable Apple Push Notification service?
Will I prevent my app from being approve, or I can dimply ignore this?
More info:
I just saw that under Certificates, Identifiers & Profiles/Generate a Provisioning Profile I had Push Notification under Enabled Capabilities
I deleted the Generate a Provisioning Profile and created a new one
I assume it was cause by choosing the first option here
So I tried to go with the second one, now im getting Profile doesn't include the selected signing certificate.
How do I include the selected signing certificate in the profile?

Related

Apple Development Xamarin.Forms: ERROR ITMS-90163 When Delivering App to TestFlight

So I created an iOS app in Xamarin.Forms and I want to send it to TestFlight to send for certain people to test. I am using the application Transporter to send the ipa file to TestFlight. The first time I did it, it was successfully sent however in TestFlight it was just hanging on processing forever, I got an email saying:
We identified one or more issues with a recent delivery for your app,
"My App Name" 1.3 (1.3). Please correct the following issues, then
upload again.
with this included:
ITMS-90078: 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 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.
So in my app in Entitlements.plist I enabled Push Notifications. And in https://developer.apple.com/ I enabled Push Notifications in my Identifiers which is used for my profile. I also add Application Identifier in Entitlements.plist with the value of TEAMID.com.myorganization.MyApp and now I get this error when trying to deliver the app to TestFlight:
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'
What does this error mean and how to do I fix it? It seems to me like I need to include the Application Identifier to my provisioning profile and I have no idea how to do that, can anyone help, I have been stuck on this for days and none of the solutions out there havent worked for me.
Thanks,

Missing Push Notification Entitlement issues

I'm getting the following error from apple when I Archive my app. How do I fix this?
ITMS-90078: 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 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.
After you’ve corrected the issues, you can upload a new binary to App Store Connect.
open your project target and then go to Signing & Capabilities then click in the + Capability and select Push Notification it should appear to you like the image

iOS Entitlements Removed during App Store Upload

I have an application which uses push notifications. Recently the ANPS cert had to be recreated as it had expired. When I next pushed a build to the store I received this warning email from Apple.
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.
When I look at the provisioning profile in Xcode I can see the that entitlement aps-environment is there and when i browse the file for the profile after converting it to xml i can see that its value is production.
It seems that after I archive the new build the entitlement gets removed. When I go to validate I manually select the cert and the popup shows its has aps-environment, but the review content section does not have aps-environment.
I have tried making a new provisioning profile, I've confirmed that Push Notifications are enabled in Capabilities, and the developer portals profile includes push notifications. Is there something obvious I'm missing?

Missing Push Notification Entitlement aps-environment issue

I have been trying to upload my app to store but every time I have the issue:
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 theProvisioning 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 enablePush Notifications` in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see Configuring Remote Notification Support.
I always used same steps to upload my app but after I regenerate the Keys this began to happen. I already try:
create new Provision Profile, also renaming
uncheck/check Automatically Manage Signing
enable Push Notifications on Capabilities
reinstall Xcode cleaning all
regenerating all keys
Non of them seems to work.
Please, help me!

Missing Push Notification Entitlement even if app does not contain push notification enabled

I have created an app which doesn't use Push notification. In the Capabilities section of the app target Push notification is OFF. The app ID, development and distribution provisioning profiles does not contain Push notification as enabled services. But still i receive below email from iTunes whenever i upload binary to iTunes
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.
What could have been gone wrong.
This is the equivalent of a warning, not an error.
However, if you want to remove the warning message, you can simply set Push notification to ON (even though you do not use them), and you won't receive this email on your next build. This will generate an entitlements file.
However, the people in this forum seem to have gotten their apps approved despite the warning (as of September 10, 2015):
https://forums.developer.apple.com/thread/15880

Resources