capawesome-team / capacitor-nfc

⚡️ Capacitor plugin for reading and writing NFC tags.
https://capawesome.io/plugins/nfc/
MIT License
74 stars 14 forks source link

bug: Android no indicator that scan started #32

Closed onevcard-team closed 1 year ago

onevcard-team commented 1 year ago

Plugin version:

5.0.2

Platform(s):

Android

Current behavior:

When starting the scan like in the tutorial, it works for IOS but on android there is no indication that the nfc scan has started. Is this something that i need to implement my own or should there be something displayed? like in the example video..

Expected behavior:

Android opening indicator that the nfc scan has started

Capacitor doctor:

Latest Dependencies:

  @capacitor/cli: 5.4.2
  @capacitor/core: 5.4.2
  @capacitor/android: 5.4.2
  @capacitor/ios: 5.4.2

Installed Dependencies:

  @capacitor/cli: 4.3.0
  @capacitor/core: 4.3.0
  @capacitor/android: 4.2.0
  @capacitor/ios: 4.2.0

[success] iOS looking great! 👌
[success] Android looking great! 👌
robingenz commented 1 year ago

Hi, thank you for your request!

Is this something that i need to implement my own or should there be something displayed?

This is something that you will have to implement yourself. Android does not offer a UI for this like iOS does.

like in the example video..

This is implemented by myself. You can find the code here: https://github.com/capawesome-team/capacitor-nfc-demo/blob/dd21acdecd5f1be0436143bd7ad8ba8d8efe2e36/src/app/modules/write/pages/write/write.page.ts#L136:L156

onevcard-team commented 1 year ago

Hi, thank you for your request!

Is this something that i need to implement my own or should there be something displayed?

This is something that you will have to implement yourself. Android does not offer a UI for this like iOS does.

like in the example video..

This is implemented by myself. You can find the code here: https://github.com/capawesome-team/capacitor-nfc-demo/blob/dd21acdecd5f1be0436143bd7ad8ba8d8efe2e36/src/app/modules/write/pages/write/write.page.ts#L136:L156

Ohhh okay, thank you for your help, is this written in the docs? If not, maybe this should be pointed out more.

robingenz commented 1 year ago

Ohhh okay, thank you for your help, is this written in the docs?

Yes, you can find it here: https://capawesome.io/plugins/nfc/#startscansession

On iOS, this will trigger the NFC Reader Session alert.