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

Apple Pay opens intermittently when reading a tag #2

Open
barzas65 opened this issue Sep 11, 2023 · 2 comments
Open

Apple Pay opens intermittently when reading a tag #2

barzas65 opened this issue Sep 11, 2023 · 2 comments

Comments

@barzas65
Copy link

Hello, thank you for your amazing work!

When using the plugin to read a tag with an iPhone, in approximately 50% of cases, Apple Pay opens immediately instead of the tag being read correctly. In other cases, the tag is read as expected.

I did some research and found link that might help in solving this issue.

https://stackoverflow.com/questions/75547546/is-it-possible-to-emulate-an-nfc-tag-on-android-and-read-it-with-iphone-without

@deokgyuhan
Copy link
Owner

Hello, I didn't realize I had this issue because I don't use Apple Pay.

Based on the information you shared, I looked into various solutions.

The current problem seems to be beyond the control of the Flutter NFC HCE plugin.

It appears that the issue needs to be addressed in the app acting as the NFC reader.

Have you used the flutter_nfc_hce_reader example on my GitHub for this? Lastly, thank you for sharing the issue with me.

@deokgyuhan
Copy link
Owner

deokgyuhan commented Sep 13, 2023

Hi, temmmma!

When I initially developed NFC HCE (Host Card Emulation) for Android, I encountered a scenario where a dialog prompt would appear asking me to choose the app when there were multiple apps with the same AID (Application Identifier).

In a similar context, can we understand the situation where Apple Pay automatically opens when trying to read an NFC HCE tag from an iPhone reader? After reading the Apple developer site and Stack Overflow content for several days and reviewing it, I found information suggesting that you can control the automatic opening of Apple Pay from the app acting as a reader.

However, I'm not entirely sure if providing the ability to change the AID within the flutter_nfc_hce plugin, as you suggested, would prevent Apple Pay from automatically opening in the reader. Initially, the purpose of developing this plugin was to leverage NFC for cross-platform use, specifically to support HCE on Android, which is not supported on iPhones.

Since there is a part in the iPhone reader where AID registration occurs, I thought that if the flutter_nfc_hce plugin could provide the functionality to change the AID, it might prevent the automatic execution of Apple Pay.

What are your thoughts on this matter?

And I apologize for any difficulty in communication due to my limited proficiency in English. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants