I developed an app which has been widely used together with Google Pay application since two years ago and there was no problem with its HCE NFC feature until the release of Android 9.
However, I have received a lot of complaints from Android 9 users recently. They say my app somehow conflicts with Google Pay. Google Pay doesn't work when my app is installed (nothing happens when they try to pay as if NFC is off or blocked). When they uninstall my app, Google Pay starts working again.
<?xml version="1.0" encoding="utf-8"?>
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/servicedesc"
android:requireDeviceUnlock="false">
<aid-group android:description="@string/aiddescription">
<aid-filter android:name="F0707070707070617070"/>
</aid-group>
</host-apdu-service>
Note: I used some fake AID in the example above, but I am sure the real AID doesn't conflict with AID of Google Pay.
What significant change of HCE NFC was introduced in Android 9? How can I fix my app?
I think its not a problem with your app but with Google Pay. There is an issue posted for Google Pay not working with Android 9 https://issuetracker.google.com/issues/132215617
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With