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

Unknown error saving pass #4

Open
shinesoftware opened this issue Aug 6, 2024 · 5 comments
Open

Unknown error saving pass #4

shinesoftware opened this issue Aug 6, 2024 · 5 comments

Comments

@shinesoftware
Copy link

Hello,

after setting all the parameters and copying your code with my JWT I get the error:

handleError: 8 / Unknown error saving pass

What does it means?

thanks

@federicomalagoni
Copy link

Hello, I am having the same error. @stephenmcd @dmengelt @itsJoKr @linussorg any news?

@JlUgia
Copy link

JlUgia commented Sep 12, 2024

Good day @shinesoftware, can you share how your JWT looks like?

@shinesoftware
Copy link
Author

shinesoftware commented Sep 12, 2024

Hello @JlUgia

these are the details:

    GoogleWalletButton(
                      onPressed: _savePass,
                    )
  _savePass() async {
    bool? saved = false;
    String text;
    try {
      if (_available == true) {
        saved = await googleWallet.savePassesJwt(jwt);
        text = "Pass saved: $saved";
      } else {
        // Wallet unavailable,
        // fall back to saving pass via web
        await _savePassBrowser();
        text = "Opened Google Wallet via web";
      }
    } on PlatformException catch (e) {
      text = "Error: '${e.message}'.";
    }
    setState(() {});
  }

image

Screenshot_1726149959

@KyawSoeW1n
Copy link

I got the same issue too. Any solutions ?

@KyawSoeW1n
Copy link

@JlUgia

here is my testingJWT
const String jwt =
'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJpZC1zeeJlLWdvb2dsZS13YWxsZXRAbXlzaHJlLWRldi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsImlhdCI6MTcyNjU5OTYyNS4xMDEsImV4cCI6MTcyNjYwMzIyNS4xMDEsInNjb3BlIjoiaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hbmRyb2lkcHVibGlzaGVyIiwiYXVkIjoiaHR0cHM6Ly9vYXV0aDIuZ29vZ2xlYXBpcy5jb20vdG9rZW4ifQ.ImgR8nTjyE4iyQSe0sbPjascGjUj1xqxj5eJRDbaQ6S4m3aLB4h-FuURYDsU4QB8kRlAVII0NRbJnu1xjyCkr9cGNrrz2IKHLs8Q10rOICBk_bBfZLNfede8NqYWufwb6vwq6YqVTupV4pF2-e7MU1ffEx6TBqoIvVkQbq8Jkd5nNdVPUhErI574tfw_bRbRyJlBNkF__Z3Ngin9hL22RtK6_-lLCiWYJFpp2ZvIra1fUpw9J1SLjO4nErtc7OmUqSv2e9BY-dxQ1lKs9dEJbcpdZKd37Pu_yKXxVZ33a5oReGcxsmsUJA_iS9s7ModVRH66xuAqE2dzlBAAYBBNyg';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants