I need to support the launching of native apps from a web application. Considering that not all the apps support URL schemes, is there an alternative to launch native apps from Web without URL scheme on Android?
I'm looking for JavaScript solutions that will work on Android 4.4.
Did you have a look at this-https://developer.chrome.com/multidevice/android/intents..I think native apps and chrome webview on phone must be supporting this.
If your app is a hybrid one-you can try this:
You can have a method called launchNative(appName) in your native code and call it from javascript.refer-Native code calling JS in Android webapps
Related
I want to create a chrome extension and use the Sheets API to do something, so I have reviewed two tutorial.
this article
https://medium.com/swlh/oauth2-openid-chrome-extension-login-system-29285323882f
is using lauchWebAuthFlow to achieve the Authentication, but using Web Application as Application Type.
And this video,
https://www.youtube.com/watch?v=5grkEnYytF4
is using getAuthToken, but the Application Type is Chrome App.
I want to ask when to use Chrome App and when to use Web Application?
For further asking, I want to ask if I want to use my chrome extension not only in Google Chrome but at least with Microsoft Edge, which Authentication method is recommended to do, and if I am using that method, how I can use that method to use the Sheet API.
Thank you.
I need to implement NFC (near field communication) in a PWA (progressive webapplication)
Every browser I have tested (Chrome MacOSX, Safari MacOSX, Safari iOS, Chrome for android) does not include the navigator.nfc object in navigator and it seems impossible to make use of this API: https://w3c.github.io/web-nfc/#conformance.
Is it possible to use NFC in any way in a PWA? Or do I have to develop a native application for this functionality?
Web NFC API is available only in Chrome for Android and that too when a flag is enabled(try about:flags) enabled.
Unless you are targeting your app for some internal corporate app where you can set the flag in all targeted users browser, I would recommend go with native code or wrapper(cordova or have a native app send in the details via web sockets)
This API is not making much progress since 2015 and so you can expect no magic to happen anytime soon. So don't rely on this API if you are targeting this for a critical app, especially when you cant control the end users browser settings.
From chrome 81 you can use NFC
https://blog.chromium.org/2020/02/chrome-81-near-field-communications.html
Im trying to use webRTC API such as getUserMedia and RTCPeerConnection for my app which is built with the cordova framework.
I am wondering if its possible for webRTC to work on both Android and iOS since my video chat app is a hybrid app (js and html) which is supposed to manage the entire p2p video chat by itself, unlike pc versions which require a web browser for the webRTC communication.
Yes, It is possible to get them to work. Keep in mind, the architecture of cordova application is reliant on a Web View rendering of your application. That web view will need to provide the WebRTC APIs to consume in JavaScript. This thread suggest the web view in iOS 11 does not support it. In fact, it is pretty new to Safari all together. This documentation says that the latest versions of Android Web Views do have support. WebRTC is a collection of technologies that enables RTC, and there are native libraries for accomplishing this. I have seen a couple of plugins for Cordova that enable access to native code so you are not as reliant on the Web View.
cordova-plugin-iosrtc
phonertc
Good luck!
The below code works in iOS browsers but doesn't work in android browser. does anyone used custom protocol to launch outlook from android? Appreciated your help.
ms-outlook://compose?to=example#email.com&subject=Subject&body=Message
I don't think you can do this with Outlook.
Outlook for Android app must have implemented Deep Linking to handle ms-outlook:// protocol and some methods to parse parameters in your url compose?to=example#email.com&subject=Subject&body=Message
If you want to send new message in the Outlook app on Android, you need to use next url: ms-outlook://emails/new?to=example#mail.com&subject=subject&body=body
I'm aware that when using React Native to develop for iOS, I have access to the LinkingIOS and WebView modules to work with URLs. Is there any sort of equivalent for Android? All I'm looking to do is open the URL in the device's browser.
I know that the contributors are working on implementing WebView in Android:
https://facebook.github.io/react-native/docs/known-issues.html#views
https://github.com/facebook/react-native/issues/2701
But is there anything I can use in the meantime?
Again, All I need is an equivalent to LinkingIOS.openUrl(url) for Android.
Try this module https://github.com/ivanph/react-native-webintent for opening urls in the default browser.
With the latest release of React Native (0.21), they provide module Linking to handle incoming as well as outgoing web url.
This can work both on Android and iOS without platform specific.
There is IntentAndroid to open URL.
Example
IntentAndroid.openURL(url)
Please refer to official doc for more info
https://facebook.github.io/react-native/docs/intentandroid.html#content