react-native-passkit-wallet icon indicating copy to clipboard operation
react-native-passkit-wallet copied to clipboard

IOS: Wallet Integration Issue

Open saurabh-nandan opened this issue 5 years ago • 8 comments

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.

saurabh-nandan avatar Dec 17 '19 08:12 saurabh-nandan

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

thatsatul avatar Jan 09 '20 10:01 thatsatul

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.]"

saurabh-nandan avatar Jan 16 '20 08:01 saurabh-nandan

I am also getting same error

Error: Failed to create pass."

Is there any update on this?

Thanks.

pratpandey01 avatar Apr 15 '20 14:04 pratpandey01

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

saeedtkh avatar May 05 '20 14:05 saeedtkh

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?

AdamLee321 avatar Jul 13 '21 11:07 AdamLee321

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

saadnaveed94 avatar Sep 07 '21 10:09 saadnaveed94

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.

AdamLee321 avatar Sep 20 '21 08:09 AdamLee321

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

ghafartanveer avatar Jan 06 '22 15:01 ghafartanveer