MobileFirst Starter - Bluemix Push Notification failure in Production mode

前端 未结 1 650
北恋
北恋 2021-01-23 07:09

I am building an iOS app that can receive remote notification through Bluemix. I have the app Bundle Identifier in Xcode matches the AppId in Apple Portal which also match the

相关标签:
1条回答
  • 2021-01-23 07:41

    Alright the REST API is showing that you have not registered any devices in production mode. Furthermore it is showing that the backend application is working in Sandbox mode, so let's change that first.

    To do so you'll want the PUT ApplicationID Settings REST API call:

    https://mobile.ng.bluemix.net/imfpushrestapidocs/#!/applications/put_apps_applicationId_settings

    With the json body

    { 
      "mode" : "PRODUCTION" 
    }
    

    I would then use the GET ApplicationID Settings REST API call to confirm that the mode switch has occurred (you should see "mode" : "PRODUCTION" in the response)

    https://mobile.ng.bluemix.net/imfpushrestapidocs/#!/applications/get_apps_applicationId_settings

    Once the environment mode has been switched you will need to re-run your client code to register your device in production mode. From there you should be able to push as you expect.

    0 讨论(0)
提交回复
热议问题