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

Add multiple passes at the same time #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

labmorales
Copy link

Added a method to add multiple tickets at once.

Usage:

try {
    // Array of base64 encoded passes
    const passes = ['UEsDBBQAAAAIALyjYlXC3w/c5Q....', 'UEsDBBQAAAAIALyjYlXC3w/c5..']
    await WalletPasses.addPasses(passes);
} catch (e) {
    console.error('Unable to open the wallet pass.');
}

@cicatrizdev
Copy link

+1

@cicatrizdev
Copy link

@TheWirv can we have this PR merged?

@TheWirv
Copy link
Owner

TheWirv commented Nov 3, 2022

Sure, when you find a way to do it on Android too.

@labmorales
Copy link
Author

@TheWirv how do you suggest we do that? Since Android does not have native capabilities to open PKPass. Can we save multiple passes into a folder and try to open that folder? That way the user would select the files he/she wants to add.

@TheWirv
Copy link
Owner

TheWirv commented Nov 4, 2022

@TheWirv how do you suggest we do that? Since Android does not have native capabilities to open PKPass. Can we save multiple passes into a folder and try to open that folder? That way the user would select the files he/she wants to add.

I have no suggestions at all, sorry. You have to figure something out on your own. What I will say, though: I think of this package as a multi-platform one, that supports both Android and iOS with all of its features.

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

Successfully merging this pull request may close these issues.

3 participants