-
Notifications
You must be signed in to change notification settings - Fork 37
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
CanAddPasses doesn't work on Android #19
Comments
Hi saamerm. The function works fine, but you don't process its return value properly. You should have a look into the proper use of At some point in your code you should have an |
Hi guys, I have been doing tests with the fork of @TheWirv in Android but I have realized that the library does not support - detect native Google Pay to add passes. I have tested in a Android 10 Simulator with Android Studio and with a real device and neither of the 2 worked for me, canAddPasses always return false but when I use a third party application like Wallet Passes it works. (https://play.google.com/store/apps/details?id=io.walletpasses.android&hl=es_CO&gl=US). Any help would be appreciate. |
I believe because GPay doesn't support pkpass file. |
I made the AndroidX changes needed in the AndroidManifest and I used this code to add the wallet in my phone:
Current Behavior
If I don't have a PKPass reading app installed, it still goes ahead and tries to add a pass on Android and throws an error:
But if I have the app installed, it works fine and adds the pass to the wallet.
Expected Behavior:
Note: $bundleId is my app's bundle ID.
The text was updated successfully, but these errors were encountered: