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

Android: Improved support for background launch in Android and iOS #460

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

avargaskun
Copy link

@avargaskun avargaskun commented Nov 5, 2021

Changes related to background launch:

  • [iOS] Add documentation detailing how to configure the app to support launch from background using applinks
  • [Android and iOS] Remember the NFC message/intent that caused the OS to start the application so it can be queried later during the deviceready or onresume application events.
  • [iOS] If the app was already in the foreground when the tag was scanned, and the app registered an ndefListener, pass the NDEF messages to the listener directly

Additional bug fixes

  • [Android] Fix a bug whereas writing a tag fails because savedIntent is not set on the reader callback during an NFC reader session.

Caveats:

  • [iOS] The information available during background launch does not include tag metadata, only the NDEF message.

avargaskun and others added 4 commits November 2, 2021 23:53
Currently attempting to write a tag will fail because the tag information is not persisted in `savedIntent` as part of the reader session. This only affects Android.
@avargaskun avargaskun changed the title Android: Bug fix and new feature Android: Improved support for background launch in Android and iOS Nov 14, 2021
* To play nice with other plugins which may define the `continueUserActivity` method in AppDelegate
@Landlordway
Copy link

#471

avargaskun and others added 6 commits March 16, 2023 07:56
- iOS 14 and above no longer require NDEF entitlement
- Tags ISO18092 are not supported without custom entitlements
- Required by Apple store to submit the app with target of iOS 12
@dwettstein
Copy link

Hi @avargaskun, thanks for your PR which basically fixes almost every problem in this repository. 👍
The only problem we still observe is scanning a tag when the app is in background or closed. With the PR #470 this works reliably.
Could you please have a look at it and merge this PR or parts of it as well?

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

Successfully merging this pull request may close these issues.

3 participants