Reputation: 302
I understand that iOS now allows for NFC tag reading in the background. However, it states that the user must always tap on a notification before the app will receive the NFC data. I get that there is a good reason to default to this behavior, but is there any way to avoid this?
The app I'm developing at work needs NFC to work in the background without user input. Are there any background execution modes or something that we could use to avoid this limitation? Thanks in advance!
Upvotes: 1
Views: 2191
Reputation: 1707
Yes, there is a solution. The Automations tab in the Shortcuts app can handle background tag reading without user interaction, however, it does not read the contents of the tag, besides the ID. When it detects a tag that has been registered before, it will run the action attached to that.
For security, there is no other way to allow an app to react to a tag read in the background, without a user tapping on the notification, and that notification being for a URL record that opens the app or performs another URL-based operation.
Upvotes: 1