For android it was not very difficult, but for iOS its getting me crazy, not with the code itself, but with the compiling.
I'm getting Error: no valid “aps-environment” entitlement string found for application.
I have the certificates valid in https://developer.apple.com/account/resources/certificates/list for push notifications, development and distribution
I have the provisioning profiles in https://developer.apple.com/account/resources/profiles/list valid, with valid certificates.
The I went to ~/Library/MobileDevice/Provisioning in the Mac to delete all profiles and to Xcode Settings / Accounts / Download Manual Profiles to refresh all provisioning profiles.
After Restarted PAServer to refresh the provisioning profiles and in Delphi edit connections (right click on IOS Simulator) to refresh the provisioning profiles. No errors so far.
But when I compile, I always get Error: no valid “aps-environment” entitlement string found for application.
My Entitlement.TemplateiOS.xml is the default one, with <%pushNotificationKey%> but my Project.entitlements file never gets the necessary <key>aps-environment</key>
I tried to include the <key>aps-environment</key> myself, but the app crashes.
What am I missing?