How to open Microsoft outlook app from android browser using custom protocol? - javascript

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

Related

Registering a Custom href Protocol on Windows Mobile in JavaScript

I am developing a web-based mobile application, My application has a button that takes the user to the dialer where a USSD code is ready for the user to dial. This works fine on Android Devices and iOS devices.
Trigger USSD
On Windows 10 Mobile that link triggers the People App or the Skype App. If this was a native app I know I could register a URI protocol to trigger the dialer. Is there a workaround in JavaScript I can use to target the dialer (Or Phone App) specifically such as registering a custom href protocol maybe.
For my understanding, like you said, the app itself is responsible for registering custom URI or catch the intent of existing URI, even from the browser. On Android, the user can choose from all the application that catch the intent what application he wants to use.
I think that the answer should be what kind of protocol the Phone app uses, then use this protocol in order to 'target' the dialer.
It seems there is no protocol of Phone app being exposed, but you can use the PhoneCallManager.showPhoneCallUI method to launch the built-in phone call UI with the specified phone number and display name.
Windows.ApplicationModel.Calls.PhoneCallManager.showPhoneCallUI(phoneNumber, displayName);

React Native: Opening URLs in Android (Equivalent to LinkingIOS.openURL)

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

An alternative to URL schemes on Android?

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

How to open an app from web on Android

I create 'iframe' element, use the http scheme to open an app on Android Device, it works fine if the app is installed.
When the app is not installed, I use setTimeout function setting window.location = marketurl,
it will open market, and it works fine on Android Browser, but it doesn't work on chrome 25+.
I only see an error message in my browser.
What should I do?
I believe there are some new changes to the functionality in Chrome for Android v. 25 and later. You may need to implement Intent. This is created to prevent unsafe app open from the browser.
Here is one example from Google Chrome for developers that will open the Zxing barcode scanner app.
Take a QR code
Reference: https://developer.chrome.com/multidevice/android/intents
It is no longer possible to launch an Android app by setting an
iframe's src attribute. For example, navigating an iframe to a URI
with a custom scheme such as paulsawesomeapp:// will not work even if
the user has the appropriate app installed. Instead, you should
implement a user gesture to launch the app via a custom scheme, or use
the “intent:” syntax described in this article.

Invoking installed mobile facebook app(Any platform android, iphone, bb e.t.c) from html or javascript code/page running on same device?

I'm wondering if it is possible to invoke installed Facebook and twitter mobile app on any platform either Android, i-phone, BB e.t.c. thru some html/java script /jquery code.
for e.g.
Open Email
Hope i'm clear to you all.
Any code-snippet would highly be appreciated.
mrana
Well, in android is posible:
When we click on a link the browser sends an intent to the OS.
Check this article for more information:
http://blog.jayway.com/2009/09/24/the-browsable-category-revealed/

Categories