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

When scanning, AppState becomes background #745

Open
valery-lavrik opened this issue Aug 26, 2024 · 5 comments
Open

When scanning, AppState becomes background #745

valery-lavrik opened this issue Aug 26, 2024 · 5 comments

Comments

@valery-lavrik
Copy link

I have listening enabled

        AppState.addEventListener('change', (state) => {
                console.log('LOGAUT', state);
        });

When the scan event is triggered

    NfcManager
        .requestTechnology(NfcTech.Ndef);

Apostate becomes = 'background'

Is there any way to fix this?

@pke
Copy link

pke commented Sep 3, 2024

I guess you are on iOS and the answer is no. The OS puts your app in the background and its own scan dialog in the foreground.

btw: this type of question would be better suited for the newly created Disscussions Q&A format

@valery-lavrik
Copy link
Author

No, I use android

@pke
Copy link

pke commented Sep 4, 2024

Thats unexpected, since Android does not put up its own NFC dialogue in front of your app.

@valery-lavrik
Copy link
Author

Thats unexpected, since Android does not put up its own NFC dialogue in front of your app.

But that's exactly what happens

@sweebee
Copy link

sweebee commented Sep 19, 2024

I've got the same issue (on android), its very annoying since i'm using the android presentation api for an external display, but when the app goes to background, the display goes away for a few miliseconds.

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

No branches or pull requests

3 participants