Skip to main content
Inspiring
January 10, 2018
Question

iOS app hangs at startup asking for UIBackgroundModes:remote-notification

  • January 10, 2018
  • 0 replies
  • 276 views

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?

This topic has been closed for replies.