Skip to main content

Geotab Drive Add-in logout notification

JPerr-2086
Original Poster

Hello,

I am working on a mobile application that integrates with the Geotab Drive app through deep link navigation as an add-in.

 

Issue: While we can successfully receive deep link navigation when users access our app from Geotab Drive, there is currently no intent or deep link triggered when users log out from the Geotab Drive app. This makes it difficult for our application to detect when the Geotab Drive session has ended.

 

Is there anything from the add-in framework we could use to get notified when the session has ended so we can end our app session too?

Alternatively, is there a REST API endpoint we can periodically request to check if the user is still connected?

 

I tried using the Geotab SDK, which seems to have this information, but when we include the Geotab Drive SDK inside our app, it runs in a separate app process. So if the user has the Geotab Drive app installed externally, there is no connection between the SDK and the actual app.

 

Thank you for your assistance.

Best regards

Join the conversation

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

Top Answers

EishiFUN
Geotabber

Hey @JPerr-2086​  I talked to one of our developers and they gave me this advice. The add-in should be able to read the sessionId of the driver. This sessionId can be used to make a simple test API call periodically (Get <User> with search set to the same id as that of the driver should work)

 

When the driver logs out of geotab drive, the session is invalidated and therefore the test API call would fail. Using this as the cue, they can end their app's session.

 

Let me know if you have any follow up questions!

3 Replies

EishiFUN
Geotabber

Hello @JPerr-2086​ ,

 

Thank you for asking your question in our community. Let me talk to some of our developers and see if I can find any suggestions. I will let you know what I hear as soon as I do.

 

Feel free to reach out if you have any other questions. We are happy to help.

 

Have a good one!

Eishi FUN

EishiFUN
Geotabber

Hey @JPerr-2086​  I talked to one of our developers and they gave me this advice. The add-in should be able to read the sessionId of the driver. This sessionId can be used to make a simple test API call periodically (Get <User> with search set to the same id as that of the driver should work)

 

When the driver logs out of geotab drive, the session is invalidated and therefore the test API call would fail. Using this as the cue, they can end their app's session.

 

Let me know if you have any follow up questions!

Commenting to follow along. :)

 

Best,

Joy B

Still have questions?