miyabi / react-native-passkit-wallet

React Native module to handle PassKit.
MIT License
52 stars 37 forks source link

IOS: Wallet Integration Issue #14

Open saurabh-nandan opened 4 years ago

saurabh-nandan commented 4 years ago

I am integration Add to Wallet feature in my React native App. I have installed the package and while testing on device, getting an error

"Possible Unhandled Promise Rejection (id: 3): Error: Failed to create pass."

Please give a proper documentation if i am missing something. Thanks.

thatsatul commented 4 years ago

Replace PassKit.addPass(base64EncodedPass) with PassKit.addPass(base64EncodedPass) .then(res => console.log(' Pass success ', res)) .catch(err => console.log(' Pass Error ', err));

saurabh-nandan commented 4 years ago

Replace PassKit.addPass(base64EncodedPass) with PassKit.addPass(base64EncodedPass) .then(res => console.log(' Pass success ', res)) .catch(err => console.log(' Pass Error ', err));

Hi Atul, I have applied the code which you provided now it's printing "Pass Error **** [Error: Failed to create pass.]"

pratpandey01 commented 4 years ago

I am also getting same error

Error: Failed to create pass."

Is there any update on this?

Thanks.

saeedtkh commented 4 years ago

I have the same problem, is there any update on this?

AdamLee321 commented 3 years ago

I am using wallet-py3k to create my pkpass server side, and the pkpass is working on Android but I am getting the below error on iOS.

Error: Failed to create pass."

Does anyone have any solution or is this library outdated?

saadnaveed94 commented 3 years ago

Same Issue. Pass Error **** [Error: Failed to create pass.]. Any Update??

AdamLee321 commented 3 years ago

After some time debugging the library I can conclude that this library is working to date and is not outdated. To see the real error for iOS and why the pass is not being created run your app on xcode and view the error shown in the log there.

My issue was to do with an invalid certificate I was using to create the pass on the backend. Once I added the correct one the library worked straight away. Hope this helps others. Any questions let me know.

ghafartanveer commented 2 years ago

I'm facing the same issue. Is there any solutions?