[Aerogear-users] 3.0.1 REST Sender issue Unrecognized field \"windows\"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Aerogear-users] 3.0.1 REST Sender issue Unrecognized field \"windows\"

aerogear-users mailing list
Hello,

After upgrading the unified push server from 1.1.3-Final to 3.0.1 we are having issues with the REST sender API. We are using the java sender which i couldn't find an update for, so i assumed it would be compatible with 3.0.1. If it makes a difference this is running in the docker-compose setup.

<dependency>
<groupId>org.jboss.aerogear</groupId>
<artifactId>unifiedpush-java-client</artifactId>
<version>1.1.0.Final</version>
</dependency>

Request payload:
{
   "message":{
      "alert":"Test test",
      "sound":"default",
      "badge":-1,
      "consolidationKey":null,
      "windows":{
         "type":null,
         "duration":null,
         "badge":null,
         "tileType":null,
         "toastType":null,
         "images":[
           
         ],
         "textFields":[
           
         ],
         "page":null
      },
      "apns":{
         "title":null,
         "action":null,
         "action-category":null,
         "localized-title-key":null,
         "localized-title-arguments":null,
         "url-args":null,
         "content-available":false
      },
      "user-data":{
         "test":"test test"
      },
      "simple-push":null
   },
   "criteria":{
      "categories":null,
      "variants":null,
      "alias":null,
      "deviceType":null
   },
   "config":{
      "ttl":-1
   }
}


Response:
{
    "message""Unrecognized field \"windows\" (class org.jboss.aerogear.unifiedpush.message.Message), not marked as ignorable (8 known properties: \"badge\", \"priority\", \"simple-push\", \"alert\", \"sound\", \"consolidationKey\", \"apns\", \"user-data\"])\n at [Source: (io.undertow.servlet.spec.ServletInputStreamImpl); line: 1, column: 98] (through reference chain: org.jboss.aerogear.unifiedpush.message.InternalUnifiedPushMessage[\"message\"]->org.jboss.aerogear.unifiedpush.message.Message[\"windows\"])",
    "details": {}
}


Removing the "windows" field in a manual request seems to solve this issue, but there might be more hiding.
What am I doing wrong? Is there a more up to date java sender library somewhere?

Thanks,
Yoann


_______________________________________________
Aerogear-users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]