I’m trying to use the FuseJS/Push
-module to handle push notifications in the app. When adding Fuse.PushNotifications
-package to the project, the app will request authorization for push notifications at startup on iOS. However this fails with this in the console log:
Reg Failed: no valid 'aps-environment' entitlement string found for application
When turning on Push Notifications Capability in XCode, the issue is resolved:
It seems to add a project.entitlements file:
<?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>
However, I would like to control this from the Fuse-project and not have to do manual steps in the build process.