Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

A missing API call: updatePush #10

Open
SleeplessAnnoyedNerd opened this issue Apr 3, 2016 · 1 comment
Open

A missing API call: updatePush #10

SleeplessAnnoyedNerd opened this issue Apr 3, 2016 · 1 comment

Comments

@SleeplessAnnoyedNerd
Copy link

Hello,

(OT: Thanks for providing all the information.)

Following API call seems to be missing: /webapi/v1/user/vehicles/:VIN/updatePush (haven't tested it yet).

Kind regards,
Dietmar

@SleeplessAnnoyedNerd
Copy link
Author

SleeplessAnnoyedNerd commented Jan 14, 2017

-H "Content-Type: application/x-www-form-urlencode" \
--data-urlencode 'data={
  "pushInformation": {
    "deviceType": "IOS",
    "appId": "571723554282";
    "pushToken": "my-token",
    "pushType": "ALWAYS",
    "uuid": "my-uuid"
  }
}'
  • appId:
    • Android:571723554282
    • iOS: ?
  • deviceType: ANDROID or (probably) IOS
  • pushType: ALWAYS
  • pushToken: unsure about proper value though :(
  • uuid:
    • for iOS: UUID of device
    • for Android: not sure (probably UUID of Android device also, retrieved via
TelephonyManager tManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String uuid = tManager.getDeviceId();

)

Above request returns no error but empty result... so probably something is not completely right.

(Well, push is mostly not working anyways. So this request is "useless"...)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant