bug (?) in the REST API
by ffraticelli
Hello, I found this (blocking) issue using the REST API for registering
devices.It's a test container, you can use the commands below and I will
delete the variant once this issue is confirmed by your team.The following
curl works and registers the device token: curl -u
"daa39c18-fdae-4696-b24f-041008f8a28a:a3186331-5e54-48b1-be2f-30b348d9dd40"
\ -v -H "Accept: application/json" -H "Content-type: application/json" -H
"aerogear-push-id: someid" \ -X POST -d \ '{ "deviceToken" :
"fffffffffffffffffffffffffffffffffffffe432da6199aa9b1c49f6ab99f7e20bdf9ae5df25569e7b43fc550c6c461aecd",
"deviceType" : "iPad", "operatingSystem" : "iOS", "osVersion" :
"6.1.2" }' \
https://aerogear-unog.rhcloud.com/ag-push/rest/registry/device*While the
following receives an HTTP 400 Bad Request. The only different between the 2
is an additional 'f' in the following token.* curl -u
"daa39c18-fdae-4696-b24f-041008f8a28a:a3186331-5e54-48b1-be2f-30b348d9dd40"
\ -v -H "Accept: application/json" -H "Content-type: application/json" -H
"aerogear-push-id: someid" \ -X POST -d \ '{ "deviceToken" :
"ffffffffffffffffffffffffffffffffffffe432da6199aa9b1c49f6ab99f7e20bdf9ae5df25569e7b43fc550c6c461aecd",
"deviceType" : "iPad", "operatingSystem" : "iOS", "osVersion" :
"6.1.2" }' \
https://aerogear-unog.rhcloud.com/ag-push/rest/registry/deviceWith the
actual token (without the f list) t doesn't work either, 400 error.
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/bug-in-the-REST-API-tp592.html
Sent from the aerogear-users mailing list archive at Nabble.com.
8 years, 7 months
Adding plugin aerogear-cordova-push is failing - dependency issues ?
by Mohamed Mostafa
Hello All, I hope this email finds you all well ...
I've been trying to add the aerogear cordova push plugin to my cordova app
for multiple days now, but it is always failing.
Just using the simple comand
cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git
gives me the error:
Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git
clone
Error during processing of action! Attempting to revert...
Failed to install 'aerogear-cordova-push':Error: Uh oh!
cannot find
"C:\Work\g2g\git_repository\g2g-customer\platforms\android\aerogear-cordova-push\dependencies.gradle\project.properties"
referenced in <framework>
at Object.AndroidProject.addSubProject
(C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\android-project.js:70:51)
Please help
Best Regards,
Mohamed Mostafa
IT Architect - IBM Egypt
8 years, 8 months