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

Platform JSON format is wrong. #6

Closed programus closed 7 years ago

programus commented 7 years ago

The platform part of json generated by the SDK is

"target": {
  "platforms": [
    {
      "value": "A"
    }
  ]
}

If I send the JSON, I will get a FPWSE0004E error which is an invalid JSON error.

After some inspection, I found that the correct format should be

"target": {
  "platforms": [
    "A"
  ]
}

instead.

srinivasannanduri commented 7 years ago

@programus you seem to be using the "development" branch code? Could you use the "master" branch?

programus commented 7 years ago

@srinivasannanduri Thank you for your reply. The code I am using is downloaded automatically by maven since I added the dependency below as what guide said.

<dependency>
    <groupId>com.ibm.mobilefirstplatform.serversdk.java</groupId>
    <artifactId>push</artifactId>
    <version>1.0.0</version>
</dependency>
srinivasannanduri commented 7 years ago

@programus Thanks for your quick reply. I now understand that the maven release is not updated. We shall update it and let you know. Thanks again

programus commented 7 years ago

@srinivasannanduri Thank you very much. And I will be appreciate if you could also take a look at another bug I submitted.

srinivasannanduri commented 7 years ago

@programus Yes. We're taking a look at both. We will release a consolidated fix soon

programus commented 7 years ago

@srinivasannanduri I am very glad to hear this from you. Could you please give me a date of your fix release? Thank you!

ManavIBM commented 7 years ago

@programus We released push 1.0.1 SDK with consolidated fix for the two mentioned bugs. Please include the following dependency below.

com.ibm.mobilefirstplatform.serversdk.java push 1.0.1

ThankYou

srinivasannanduri commented 7 years ago

@programus ^

programus commented 7 years ago

@ManavIBM @srinivasannanduri Thank you very much! I will try recently. And feedback you.