ibm-bluemix-mobile-services / bms-pushnotifications-serversdk-java

IBM Cloud Mobile Services - Server side Java SDK for IBM Cloud Push Notifications Service
Apache License 2.0
3 stars 6 forks source link

ApplicationId is retrieved from a wrong env var? #3

Closed programus closed 7 years ago

programus commented 7 years ago

PushNotifications.init(PushNotifications.US_SOUTH_REGION);

not work when the application running on bluemix.

The error is

Error 404: Application xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx not found - check the appId value in the URL path

After some investigation, I found that the applicationId should be the value of imfpush[0].credentials.appGuid in VCAP_SERVICES instead of application_id in VCAP_APPLICATION which be used in current source.

ManavIBM commented 7 years ago

@programus Hi , This issue is fixed as part of latest SDK release.