ibm mobilefirst - PushNotification -- no device found -
i have hybrid app , having issue seeing notification..
i error
com.ibm.pushworks.server.exceptions.pushworksexception: fpwse0009e: internal server error. no devices found
i running on local mfp (eclipse -- v7.1).. see device in worklightconsole , app install on phone (xcode->phone via usb) , see opt-in notification message.. however, error when tried send push..
i using postman , restapi http://localhost:10080/worklightadmin/management-apis/1.0/runtimes/mymobile/notifications/applications/myproj/messages
here body of post request
{ "message": { "alert": "test message" }, "settings": { "apns": { "badge": 1, "iosactionkey": "ok", "payload": {}, "sound": "song.mp3" }, "gcm": { "payload": {}, "sound": "song.mp3" } }, "target": { "consumerids": [], "deviceids": ["166cb698-45c2-4c61-9074-248ea4f8aa8f"], "platforms": [ "a","g" ] } }
can give hints solve issue ..
thanks
as vivin mentioned in comments, device id may wrong.
the same json works me , in local setup. possible device id entered wrong? current parameters within "target" can error message if device id wrong.
Comments
Post a Comment