chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 556 forks source link

iOS NFC Dialog doesn't appear until exiting app (Cordova) #304

Closed JoshuaPerk closed 6 years ago

JoshuaPerk commented 6 years ago

I'm experiencing similar behavior observed in issue 283 where begin.Session(); works but does not bring the iOS (iPhone 7, 11.2.1) NFC dialog to the forefront of the viewport until double-clicking the home button or exiting the app.

https://youtu.be/LwilT02EFxg

Currently troubleshooting and will return with a solution if possible. Hoping to gather insight from anyone who has seen similar behavior or has thoughts on what might be the issue.

Attempted remedies:

JoshuaPerk commented 6 years ago

WOW! After several hours of isolating the issue, it appears to be an issue with the Content-Security-Policy tag. Cordova vs. PhoneGap defaults to different tags.