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

checkPairedDevicesBySuffix use deprecated PKPassTypePayment #36

Open
alexisGandar opened this issue Sep 3, 2021 · 7 comments
Open

checkPairedDevicesBySuffix use deprecated PKPassTypePayment #36

alexisGandar opened this issue Sep 3, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@alexisGandar
Copy link

Hello,

I am having trouble to get the passes from the PKPassLibrary. I am having no pass even when i have a card in my wallet.

I use the checkPairedDevicesBySuffix to see if my card is in the wallet and this method is using PKPassTypePayment in order to get the passes from the PKPassLibrary.
PKPassTypePayment is deprecated since iOS 13.4. In other methods like checkCardEligibility, there is a check on the iOS version in order to decided what to use between PKPassTypePayment and PKPassTypeSecureElement.

Why there is no check on this method ? this may be why i don't catch any pass

@tomavic
Copy link
Owner

tomavic commented Sep 4, 2021

hello @alexisGandar
I will look into this and update here. This could be served in the upcoming version update once a solution is presented.

Thanks for using cordova apple wallet plugin.

@tomavic tomavic added the bug Something isn't working label Sep 4, 2021
@peckz
Copy link

peckz commented Jul 22, 2022

Hey @tomavic 👋 , I'm also trying to use checkPairedDevicesBySuffix in my current cordova project.
I can confirm that cards are connected to Apple Wallet, but response is always false.
Do you think it's because of deprecated PKPassTypePayment or something else could be wrong?

@tomavic
Copy link
Owner

tomavic commented Jul 25, 2022

Hey @peckz Let me check and once I find solution will post here. Please feel free to share the solution if you found it. As I don't have the time to maintain the plugin at the mean time.

@thib-lambert
Copy link

@alexisGandar @peckz

You can try to use this SDK and the method getActionsAvailableForCardSuffix.
This method returns an array of integer so you have 3 cases:

  • 0 = ADD
  • 1 = PAY
  • Empty = pass is not presents

@peckz
Copy link

peckz commented Sep 11, 2024

@thib-lambert Thank you! I hope it's gonna help to someone who stumbles at this problem.

We ended up using forked version of the plugin.
I believe it's this one https://github.com/viniciusgandrade/cordova-apple-wallet
Can't tell you more as I don't have access to source code anymore, but we made it work!

@tomavic
Copy link
Owner

tomavic commented Sep 12, 2024

I really appreciate your efforts @thib-lambert @peckz as I don't currently have the time to maintain this plugin. Besides that, There should be an effort reserved for the capacitor version.

Feel free to create a PR with all changes you forked and I will publish a new release.

@peckz
Copy link

peckz commented Sep 12, 2024

@tomavic No worries, thank you for initial effort of building this plugin.
Unfortunately I was not the guy who forked it (I just found another forked version on the internet), btw I have no experience with iOS development 😁 As cordova is slowly dying, I'm sure there are great capacitor alternatives out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants