API: Not getting location update websocket message

  • 2
  • Problem
  • Updated 2 years ago
  • Solved
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

I am testing out the simple websocket script from your developer portal and got it working with the test events that I can generate (also) from your developer portal. The problem I'm running into is that I'm not getting the location updates from the actual Automatic Pro adapter, I get other events from it just not the location update. Like I said if I send the simulated location update from your simulator the script gets it. What am I missing? Is this not supported on the Pro version of the adapter (Really hope that is not the case)? 
Photo of xrak en

xrak en

  • 1,196 Points 1k badge 2x thumb

Posted 2 years ago

  • 2
Photo of Matt Farley

Matt Farley

  • 1,464 Points 1k badge 2x thumb
You have to specifically request permission for the scope:current_location scope for your app. Scroll to the bottom of the app config page to do so. Click on the button "Request Changes to Scope" and add scope:current_location. It will take a day or two for an Automatic employee to approve and activate.

Also, did you see my script I posted for you in the other thread?  --> https://community.automatic.com/automatic/topics/sharing-my-websockets-real-time-notification-script
(Edited)
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
Thanks so much for pitching in, Matt. I didn't even know that. :)
Photo of xrak en

xrak en

  • 1,196 Points 1k badge 2x thumb
DId not realize that there was that extra step to request for access to location updates. It was quite misleading for the simulator to send that data when it was not yet "approved". I have requested access now and hope to get that turned on soon.
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
I'm checking on that approval for you, xrak.
Photo of xrak en

xrak en

  • 1,196 Points 1k badge 2x thumb
i  received an automated response for my request but nothing since then . I'd appreciate it very much of you could make sure my request is processed. Thanks. 
Photo of xrak en

xrak en

  • 1,196 Points 1k badge 2x thumb
Thanks Maru, I created a new token from the Developer Console. I will get to try location updates again shortly. BTW, is there anyway for me to look up the scopes for tokens? The only thing I was able to see on the console was the list of "authorized scopes" and I see that I have the relevant ones checked.
Photo of xrak en

xrak en

  • 1,196 Points 1k badge 2x thumb
Not working still :(
Photo of Aniruddha Maru

Aniruddha Maru, Principle Server Engineer

  • 172 Points 100 badge 2x thumb
Hi xrak, 

Yes there is, it's not really published, but you can use this API to get list of scopes authorized on a token:
curl "https://accounts.automatic.com/oauth/access_token_details/?access_token=<token>"
I've added a feature request for making this easier/more accessible. 

Your token was created correctly, you should be getting location updates now - although we've seen some issues with the notification being slow during rush hour.

Thanks!
Photo of xrak en

xrak en

  • 1,196 Points 1k badge 2x thumb
Started working this morning, thanks for all the help!
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
Glad that all got sorted!

This conversation is no longer open for comments or replies.