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

is it possible to use this library on device? #227

Open
Andriiklymiuk opened this issue Sep 26, 2019 · 4 comments
Open

is it possible to use this library on device? #227

Andriiklymiuk opened this issue Sep 26, 2019 · 4 comments
Labels

Comments

@Andriiklymiuk
Copy link

Hi,

We try to use PassKit directly in our react native project. Is it somehow possible to use it that way and generate pass on device? Because now we are getting 'there is no module http2', etc. errors.

And by the way, thanks for the library)

Repository owner deleted a comment from issue-label-bot bot Sep 26, 2019
@bukira
Copy link

bukira commented Sep 26, 2019

I think you need a server to sign passes

@Andriiklymiuk
Copy link
Author

oh, ok, thanks)

@tinovyatkin
Copy link
Owner

@bukira no, you don't need anything apart of this library to create pass - it's pure JavaScript implementation. On native script you probably will need to save buffer to a file then open it.

@guisehn
Copy link

guisehn commented May 11, 2020

Even though it could be possible to generate the pass using React Native directly in the device using the library, I don't think you should do that because you'd need to store your Apple Developer certificate and private key inside your app code. If someone is able to reverse engineer and get access to your code, they could issue passes on your behalf. That's why having a secure web server to issue your passes would be a better option.

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

No branches or pull requests

4 participants