dmastag commented on issue #518: cannot turn on Push Notifications in 
cordova-ios @5.0.0 with modern build system
URL: https://github.com/apache/cordova-ios/issues/518#issuecomment-465354432
 
 
   Hi @janpio 
   So I am using gitlab-ci with a gitlab runner put an a Mac, it basically runs 
   ```
   ionic build
   cordova platform add [email protected]
   bundle exec fastlane ios beta
   ```
   
   With fastlane using match and pilot to upload to the App Store
   
   I finally figured out how to get Push Notifications to be enabled 
automatically by using the Tutorial from
   
https://documentation.onesignal.com/docs/cordova-sdk-setup#section-ios-automatic-builds
   
   I create an entitlement file names [yourProjectName].entitlements and put it 
into the root of my project with the following content
   
   ```
   <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
   <plist version="1.0">
   <dict>
        <key>aps-environment</key>
        <string>development</string>
   </dict>
   </plist>
   ```
   
   And then add this to my config.xml
   ```
   <platform name="ios">
       <resource-file src="[yourProjectName].entitlements" />
   </platform>
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to