Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POS]: session.getSessionToken returns null on some devices (iPad) #2408

Open
faouzioudouh opened this issue Oct 9, 2024 · 1 comment
Open
Labels
bug Something isn't working POS UI Extensions

Comments

@faouzioudouh
Copy link

Please list the package(s) involved in the issue, and include the version you are using

  • @shopify/ui-extensions-react/point-of-sale version 2024.10.0

Describe the bug

The merchant has 5 locations, and the session.getSessionToken() method works correctly at 3 locations. However, at the other 2 locations, it consistently returns null.

      const token = await session.getSessionToken();

      const response = await fetch(urlString, {
          headers: { Authorization: `Bearer ${token}` },
      });

Interestingly, when accessing the 2 problematic locations on a different device, everything works as expected, suggesting the issue may be device-specific.

What we have tried:

  • Reinstalled the POS app on the affected iPads.
  • Removed and re-added the extensions from the smart grid.
  • Created a minimal smart grid setup with only our app extensions.
  • Tested with different POS staff PINs that have full permissions.

Questions:

  • Under what conditions does session.getSessionToken() return null?
  • Are there any specific device configurations or iPadOS version requirements (currently running iOS 18) for using POS extensions?
@faouzioudouh faouzioudouh added the bug Something isn't working label Oct 9, 2024
@faouzioudouh faouzioudouh changed the title [POS]: session.getSessionToken returns null on some devices (iPad) [POS]: session.getSessionToken returns null on some devices (iPad) Oct 9, 2024
@adearriba-fik
Copy link

Same issue on my end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working POS UI Extensions
Projects
None yet
Development

No branches or pull requests

3 participants