EddyVerbruggen / nativescript-nfc

:pencil: NativeScript plugin to discover, read, and write NFC tags
MIT License
84 stars 37 forks source link

Callback not initiating on ios 14.6 with ns 8 #72

Open AchrafBardan opened 3 years ago

AchrafBardan commented 3 years ago

This is my code

new  Nfc().setOnNdefDiscoveredListener(
      (data: NfcNdefData) => {
        console.log(data)
      },
      {
        stopAfterFirstRead: true
      }
    ).then(data => {
      return data;
    })
    .catch(() => {
      throw new Error("nfc fail")
    }
    );

When i run this the visual nfc scan view gets showen AADBA7B2-7310-4494-B85E-148F2413FE6F

But nfc cards are not being scanned this is showen in the console:

00000002 83138630 -[NFCNDEFReaderSession beginSession]:293[NFCNDEFReaderSessiondidUIControllerInvalidate:]:187  sessionState=2, proxy=YES

Dankje Eddy voor alle contributies die je hebt gedaan voor de NativeScript community

mastashake08 commented 2 years ago

Same issue

b8ne commented 2 years ago

Has anyone got a solution for this yet?

mastashake08 commented 2 years ago

Nope and I need one Jyrone Parker Technical Consultant, Technopreneur

Never Let Limited Minds Limit Your Success https://www.jyroneparker.com http://www.jyroneparker.com | https://youtube.com/c/jyroneparker https://youtube.com/c/jyroneparker Twitter: @mastashake08

On Mon, Dec 6, 2021 at 7:39 PM Ben Sutter @.***> wrote:

Has anyone got a solution for this yet?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/nativescript-nfc/issues/72#issuecomment-987434667, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJLK4HDK7C5FEN3X3IEIGLUPVJS5ANCNFSM47CBNH5A .

BenShelton commented 2 years ago

This looks to be a duplicate of #70, solutions are there