function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dave Durant 1Dave Durant 1 

Sharing mobile SDK login token between apps?

Hi,

I’m creating an Android app which is called via an FSL app extension. Native Android with older-but-not-ancient SDK version 7.1.2.

In my app, I need to interact with Salesforce objects through the REST API. Basically, FSL is setup to pass my app some key Ids then my app does some more complicated processing that we can’t do inside FSL.

Is there a way to automatically pick up the context of the user that has logged into FSL? Like, if user X has already logged into FSL, I don’t want my app to force them to login again – I just want make the REST calls as user X. Similar, if X logs out of FSL and user Y logs in, I want to do things as user Y instead without the user having to also logout/login in my app too.

It seems like this should be possible but I’m having a hard time getting it to work..

Any tips would be much appreciated!
Thanks!