Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Google Pay stops working when my app is installed?

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?

like image 397
vojta Avatar asked May 17 '19 07:05

vojta


1 Answers

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

like image 195
Gelo Avatar answered Oct 11 '22 19:10

Gelo