ondermerol
ondermerol

Reputation: 536

Does HCE Service work when screen is locked?

I am developing a mobile wallet application and I have a problem that I cannot make payments when screen is locked. The HostApduService not works although I put my mobile phone on the POS terminal. Do you know Google wallet make payments when the screen is locked with no password or password / pattern?

Upvotes: 1

Views: 1368

Answers (1)

Sam Edwards
Sam Edwards

Reputation: 894

In your APDU configuration xml file that you reference in AndroidManifest.xml file, set the property "requireDeviceUnlock" to "false". See it in this example: https://github.com/handstandsam/HandstandPay/blob/master/app/src/main/res/xml/apdu_config.xml

Example project: https://github.com/handstandsam/HandstandPay

Upvotes: 2

Related Questions