My Cordova application reads NFC tags while in foreground using this plugin: https://github.com/ns0m/cordova-plugin-ns0m-nfc
While scanning, my application is in the foreground. But when a tag is read, my app's main activity is paused, and then resumed again shortly thereafter. Is there a way to prevent that? My app has logic that assumes a pause event means the user put the app in the background, and so it stops a bunch of internal app services. I don't want it to do that. I just want it to read the NFC tag and keep moving along in the foreground without interruption. iOS does that without a hitch. Is that possible in Android?
Thanks.