NOtherDev / whatwebcando

An overview of the device integration HTML5 APIs
https://whatwebcando.today/
MIT License
836 stars 61 forks source link

permissions issue on android #61

Closed aernan closed 4 years ago

aernan commented 4 years ago

To make the webnfc feature work on Android (chrome) you need to first enable webnfc. You can do that by typing "about:features" into chrome. Then searching for nfc. Once enabled you need to restart chrome. I then navigate to the demo page for webnfc. When I try a read I get a permissions pop up as expected. The trouble is the button does not accept input. I tried adding a bluetooth mouse to my S10+ and was able to actually depress the button but the prompt never closed.

NOtherDev commented 4 years ago

@beaufortfrancois Not sure is this something wrong with the demo or with the NFC impl itself? Thought you might be interested.

aernan commented 4 years ago

When I load the demo page on my laptop the NFC window.NDEFreader not supported. On Android(my phone) it shows up as supported after enabling webnfc.

beaufortfrancois commented 4 years ago

Web NFC is implemented only in Chrome for Android for now hence why NDEFReader objects does not exist on desktop platforms.

What do you mean by "The trouble is the button does not accept input."? Can you share a screenshot?

Which version of Chrome do you use? It's better to use Chrome Canary

aernan commented 4 years ago

This permissions box pops up. When I try to press "Allow" it never presses. I can't confirm the permission.

On Tue, Feb 11, 2020, 9:57 PM François Beaufort notifications@github.com wrote:

Web NFC is implemented only in Chrome for Android for now hence why NDEFReader objects does not exist on desktop platforms.

What do you mean by "The trouble is the button does not accept input."? Can you share a screenshot?

Which version of Chrome do you use? It's better to use Chrome Canary https://play.google.com/store/apps/details?id=com.chrome.canary&hl=en

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NOtherDev/whatwebcando/issues/61?email_source=notifications&email_token=AAIE5CBZZZDUXBYD7C2OY6TRCOFVRA5CNFSM4KTJE3KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELPQ55Q#issuecomment-585043702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIE5CHD6MOW6IHYOVIGAQLRCOFVRANCNFSM4KTJE3KA .

beaufortfrancois commented 4 years ago

Can you share a screenshot?

aernan commented 4 years ago

Yes. I tried replying to the email with the attachment but that did not work. How do I share the screenshot?

beaufortfrancois commented 4 years ago

Maybe https://imgur.com/?

aernan commented 4 years ago

https://imgur.com/ci0kV78 thanks that was good advice.

aernan commented 4 years ago

I installed chrome canary and repeated the steps. It works there. I guess that chrome stable is not allowing it.

On Wed, Feb 12, 2020, 11:54 AM François Beaufort notifications@github.com wrote:

Maybe https://imgur.com/?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NOtherDev/whatwebcando/issues/61?email_source=notifications&email_token=AAIE5CCIPCFAACJNLMAIHU3RCRHYTA5CNFSM4KTJE3KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELSFFEY#issuecomment-585388691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIE5CHQXRJTHGSZ65NYHATRCRHYTANCNFSM4KTJE3KA .

NOtherDev commented 4 years ago

@beaufortfrancois What's the status of WebNFC Origin Trial? I can see there is a new one, is the previous one expired? Shouldn't it still work on stable 79?

beaufortfrancois commented 4 years ago

The origin trial is meant to start in Chrome 81: https://developers.chrome.com/origintrials/#/view_trial/236438980436951041 There was no previous one.

NOtherDev commented 4 years ago

Oh my. Sorry, I must have mixed it up with some other.

As you figured the issue was about the expected browser support, I'm closing it. Thanks!