tauri-apps / tauri-apps/plugins-workspace
Don't open Android app automatically on NFC discovery
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### Describe the problem
Android apps with the NFC plugin automatically open when a NFC card touches the phone. This is problematic as users often store NFC cards in their phone case, opening the app by accident.
I am of the believe this is caused by the intents set in the AndroidManifest as per [this stackoverflow post](https://stackoverflow.com/questions/64263356/when-nfc-reads-the-card-it-opens-the-application-by-itself-how-can-i-solve-thi).
Removing the intents from the AndroidManifest does not work as they are re-set on build by the NFC plugin.
These are the intents that are automatically set:
```xml
```
### Describe the solution you'd like
Customisability of the intents in the AndroidManifest that are automatically set.
### Alternatives considered
- Closing the app on startup when a NFC read is detected while it should not have read anything.
- Manually overwriting the AndroidManifest, but the plugin is quite aggressive in rewriting it.
- Having users turn off NFC.
### Additional context
_(I just like to program in my free time, and am not that familiar with NFC or mobile app development, so forgive me if I am pointing at the wrong things)_
Contributor guide
Assessment
This issue has not been assessed yet.