Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
515 stars 197 forks source link

Can't submit to app store #346

Open andrewmartz-af opened 6 years ago

andrewmartz-af commented 6 years ago

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 commented 6 years ago

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!