iOS app hangs at startup asking for UIBackgroundModes:remote-notification
App runs correctly in interpreter mode, when I use AdHoc or device testing, I get this error and app stops proceeding:
<Warning>: You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
I have correctly set entitlement:
<Entitlements>
<![CDATA[
<key>aps-environment</key>
<string>development</string>
]]>
</Entitlements>
I try to add this, either in Entitlements or in InfoAdditions:
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
But I still get that error and app stops running.
Any suggestion?
