Google wallet add .pkpass file via url

Discussão em 'Angular' iniciado por Bogdan, Fevereiro 4, 2025.

  1. Bogdan

    Bogdan Guest

    "I'm using Ionic 6, capacitor with Angular. I'm trying to add a .pkpass wallet file to Google Wallet using their example. I encode the URL and after I make the call, I get this error: 'Something went wrong. Please try again. '.
    If I have the .pkpass file on my phone and open it, it works perfectly."
    If I paste the encoded completed URL directly in the browser, I get the same error. I don't get any specific error on Google's error page, just the message (Something went wrong. Please try again.)'

    async addToGoogleWallet(fileURL: string) {
    const encodedFileUrl = encodeURIComponent(fileURL);
    const googleWallet = `https://pay.google.com/gp/v/save/${encodedFileUrl}`;
    if (Capacitor.isNativePlatform()) {
    await Browser.open({ url: googleWallet });
    }


    [​IMG]

    Continue reading...

Compartilhe esta Página