Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't submit to app store #346

Open
andrewmartz-af opened this issue Aug 18, 2018 · 1 comment
Open

Can't submit to app store #346

andrewmartz-af opened this issue Aug 18, 2018 · 1 comment

Comments

@andrewmartz-af
Copy link

When submitting to the app store, it keeps saying that not all entitlements are included even though push notifications slider is on. I was wondering if this issue could have something to do with the settings in push.js.

Here is what I am getting 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.

@DanielDornhardt
Copy link

DanielDornhardt commented Aug 28, 2018

Hi,

I had similar issues and wasted almost an entire day about this - the entitlements always got stripped during the archiving / signing process and I could see that they were missing when I used the "Validate" function (I think it's called). In the "Summary" screen I could see that the aps-environment -entitlement wasn't there.

I fiddled for ages with the entitlements - files etc.

What solved it for me was:

I was still running a rather old version of raix:push and the cordova plugins for some reason (I think we monkeypatched it a long time ago for some reason or other), and I guess that cordova plugin messed up the build.

With the latest version it worked (almost) without a hitch, I had to install cocoapods and I have to make sure to open the .xcworkspace - Project-file of my project to have the pod stuff build correctly, and then the whole thing build without a hitch.

GREAT JOB GUYS! THANK YOU VERY MUCH! (No sarcasm, I'm really happy!) 😃

EDIT: Ok - ONE MORE THING i now have to do to get the project to archive in xcode:

I need to edit the file named Podfile in my project root and add the line

    pod 'GoogleToolboxForMac', '~> 2.1.4'

to the dependencies.

Then I call

pod install

from the same directory.

How and why I don't know but then it builds and that's good enough for me right now. I thought I'd let you know.

Best wishes all around everybody!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants