nfc

NDEFReader in TypeScript

不羁的心 提交于 2021-01-04 10:12:29
问题 I'm trying to use NDEFReader() for NFC scan/write in React. This feature works from Chrome 81 (you can try it on your mobile in Chrome beta today on links below). GoogleChromeNfcSample, WhatWebCanDoTodayNfc To enable this feature, you need to go into chrome://flags/ and enable Experimental Web Platform features . The problem is that I can't make this work in React. I use create-react-app with TypeScript and console output: Cannot find name 'NDEFReader' I think that this causes a webpack check

Use onNewIntent(…) in a fragment

走远了吗. 提交于 2020-12-15 06:48:09
问题 I have a problem. I want to use a the method onNewIntent(...) and getIntent(...) . Unfortunately the fragment do not know this intent. How can I use this method in my fragment? This fragment should be able to read an NFC tag, so I need the intent. I would be very happy to receive an answer. I thank you in advance. Below you can see my code. public class UserFragmentGeldaufladen extends Fragment { private Dialog epicDialog; private NfcAdapter nfcAdapter; private PendingIntent pendingIntent;

Use onNewIntent(…) in a fragment

故事扮演 提交于 2020-12-15 06:47:12
问题 I have a problem. I want to use a the method onNewIntent(...) and getIntent(...) . Unfortunately the fragment do not know this intent. How can I use this method in my fragment? This fragment should be able to read an NFC tag, so I need the intent. I would be very happy to receive an answer. I thank you in advance. Below you can see my code. public class UserFragmentGeldaufladen extends Fragment { private Dialog epicDialog; private NfcAdapter nfcAdapter; private PendingIntent pendingIntent;

NFC Write and read tags between Android & iOs

这一生的挚爱 提交于 2020-12-15 06:39:04
问题 Need to have some information about NFC reading and writing tags, with phonegap in IONIC I would like to make an app with shared data between 2 mobiles, I want to know if it's possible to read and write it between two phones using a different OS like Android and iOs. Do you know if it's possible or if it will have any limitation with this use? 回答1: Without having a real NFC Card to acts as intermediary between devices, due to lacking NFC support in iOS iOS <=> iOS is impossible iOS <=>

NFC Write and read tags between Android & iOs

≯℡__Kan透↙ 提交于 2020-12-15 06:37:21
问题 Need to have some information about NFC reading and writing tags, with phonegap in IONIC I would like to make an app with shared data between 2 mobiles, I want to know if it's possible to read and write it between two phones using a different OS like Android and iOs. Do you know if it's possible or if it will have any limitation with this use? 回答1: Without having a real NFC Card to acts as intermediary between devices, due to lacking NFC support in iOS iOS <=> iOS is impossible iOS <=>

iOS NFC Background reading not catched by Application

孤街醉人 提交于 2020-12-09 05:34:31
问题 I try to implement NFC Background reading on iOS. I setup my application: added the string "applinks:www.example.com" to my entitlements for associated domains add associated domains to Entity Settings in App profile The problem is that after scanning the NFC Tag in background there is only shown a notification to open the URL within Safari browser. It is the same URL which I have added in "applinks:" setting. In fact it is the same problem like in following link where the user solved the

iOS NFC Background reading not catched by Application

夙愿已清 提交于 2020-12-09 05:33:18
问题 I try to implement NFC Background reading on iOS. I setup my application: added the string "applinks:www.example.com" to my entitlements for associated domains add associated domains to Entity Settings in App profile The problem is that after scanning the NFC Tag in background there is only shown a notification to open the URL within Safari browser. It is the same URL which I have added in "applinks:" setting. In fact it is the same problem like in following link where the user solved the