So I’ve tried to build my app for iOS. I let expo handle all that certificate stuff. I uploaded the build using the application loader. Everything is fine, except for a warning I received per mail:
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.
I went to developer.apple.com -> Certificates, Identifiers & Profiles -> APP IDs. My App ID had Push Notifications disabled. I enabled it (both Development and Distribution) and created and uploaded the keychain file.
Now the status of the Provisioning Profile under developer.apple.com -> Certificates, Identifiers & Profiles -> Provisioning Profiles went from “active” to “invalid”.
Push notifcations still don’t work in TestFlight. The android app is working fine, including push notifications. What am I missing here?