Add Push Notifications Capabilities on iOS

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" "">
<plist version="1.0">

However, I would like to control this from the Fuse-project and not have to do manual steps in the build process.

Hey Bjørn Egil,

Good idea. This is something that we should add support for. We already have an internal issue on this, so I’ve added this post to it so we can keep you posted on any progress.

Thanks for the suggestion!

For anyone else looking to set them: