I’m dealing with a similar issue. I have a POS extension with a Modal and Tile and am trying to get a session token in the Modal component but it keeps returning null.
I’m doing something similar to here
What is the right approach to getting the session token?
Same is happening to me. I tried both on Android and IOS on the latest version of the POS app and same issue, the getSessionToken function returns null.
I’m guessing this is related to the POS version since the code worked a few weeks ago. I’m also guessing this is only happening in dev mode since our production app don’t seem affected by this.
Edit: actually seems to be a bit different since it’s working in prod for us but not in dev
I think we have solved it for us. The dev app was not actually installed on the dev store we were testing with. We had launched the app extension through the QR code preview but not actually installed it through the normal OAuth flow