markokas Posted January 14, 2023 Share Posted January 14, 2023 Hi all, Any idea how to read NFC tag on Android with Unigui app? Br, Marko Link to comment Share on other sites More sharing options...
irigsoft Posted January 15, 2023 Share Posted January 15, 2023 23 hours ago, markokas said: Hi all, Any idea how to read NFC tag on Android with Unigui app? Br, Marko If you can read NFC in a web browser (Chrome), then with Android + WebView you can too. https://web.dev/nfc/ https://googlechrome.github.io/samples/web-nfc/ You can send from Android app to Webview some variables or perform functions : https://stackoverflow.com/questions/11752052/passing-data-from-java-class-to-web-view-html https://www.quora.com/How-do-you-pass-data-to-WebView-in-Android https://medium.com/@sreeharikv112/communication-from-webview-to-native-ios-android-app-6d842cefe02d 1 Link to comment Share on other sites More sharing options...
markokas Posted January 15, 2023 Author Share Posted January 15, 2023 Thanks, I have checked Chrome reading NFC tags on Android works. How to get nfc ID info to Unigui app (without Android app)? Use HtmlFrame and AjaxCall to unigui? Br, Marko Link to comment Share on other sites More sharing options...
irigsoft Posted January 16, 2023 Share Posted January 16, 2023 12 hours ago, markokas said: How to get nfc ID info to Unigui app (without Android app)? did You try this, using javascript ? read NFC in a web browser (Chrome). https://web.dev/nfc/ https://googlechrome.github.io/samples/web-nfc/ with javascript: https://stackoverflow.com/questions/71650275/reading-nfc-tags-in-the-browser https://code-boxx.com/read-write-nfc-javascript/ google it: https://www.google.com/search?q=read+nfc+tag+with+javascript&oq=read+nfc+tag+with+javascript&aqs=chrome..69i57j0i22i30j0i390l2.7184j0j7&sourceid=chrome&ie=UTF-8 Link to comment Share on other sites More sharing options...
markokas Posted January 16, 2023 Author Share Posted January 16, 2023 Yes. https://googlechrome.github.io/samples/web-nfc/ works fine on Android Chrome. If put this sample code in HTMLframe and send AjaxRequest to Unigui app is right approach? Br, Marko. Link to comment Share on other sites More sharing options...
irigsoft Posted January 16, 2023 Share Posted January 16, 2023 3 minutes ago, markokas said: If put this sample code in HTMLframe and send AjaxRequest to Unigui app is right approach? I am not sure. maybe You can try to using UniSession.AddJS 1 Link to comment Share on other sites More sharing options...
Kattes Posted July 5, 2023 Share Posted July 5, 2023 On 1/15/2023 at 6:57 PM, markokas said: Thanks, I have checked Chrome reading NFC tags on Android works. How to get nfc ID info to Unigui app (without Android app)? Use HtmlFrame and AjaxCall to unigui? Br, Marko This is exactly how it works, but don't forget that you need SSL connection for testing, i.e. HTTPS, otherwise you have no access to the reader and only get error messages. Kind regards, Kattes Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now