Open an Android app from a web browser - android

I'm opening an app from a web browser in android and I can't seem to find the way to open this app outside the browser itself. I mean, the app opens inside the browser. I've tried both of these ways:
1) intent://pinnacle.androidApp/#Intent;scheme=launch package=my.androidApp;S.content=WebContent;end
2) my.androidapp://cb
What's the proper way to do this in order to open the app outside the browser?
Thanks in advance.
UPDATE:
My app consists of a native android app with a web view that loads an angular web app. I think that the web browser is opening the web app instead of redirecting back to the android app with the web view.
It goes as follows:
The user opens an android app with a web view that loads an angular web app. Then the user is supposed to log in. Due to some recent changes that google implemented, I can't log in with google from a web view, so I have to open a web browser, log in and go back to the android app. This latter thing is the actual problem. It only works properly if the browser that I use is chrome.
I can't use android to log in because I'm using custom authentication as well to provide access to other web services.

Register a URI scheme for your app and launch it by calling the URI somewhere as a link in your web page. This works 100%.

Related

Route from URL with parameters to my PWA in iOS and Android instead of opening in browser

I have links we will be sending out the users to install the PWA and open it in the app with parameters. Currently, when they click on the URL (if they have to app installed or not) it directs them to the browser and NOT the app. I think I might need to update the manifest, but I'm not sure where to target or send them so it opens in the app instead. This is my first PWA, and it's going well except this issue. This is a mobile app with React.
you should look about deep-link https://en.wikipedia.org/wiki/Deep_linking

Chrome doesn't redirect user back to Flutter app

I've a Flutter application. We need to connect to our api at: Api.domain.com but they also need to redirect back to our application without iftame.
So we use firebase: app.page.link but this doesn't send the user back to the app.
How can i send the user back to our app from mobile chrome browser without an iframe.
I thought app://app_name/deeplink
To make deeplinking work on Chrome browsers, you will need to use Intent method, here you can find an example of how to do it:
https://developer.chrome.com/docs/multidevice/android/intents/

Trusted Web Activity for PWA in different sessions

I have a website for which i create two android Apps using Trusted Web Activity. When user login using App1 it it also show me login in App2. Is there any solution so that both Apps behave as a separate App? i want to use both Apps side by side.
Opening two TWA application is similar as opening two tabs in chrome browser.
It's is also possible that if ur logged in with Android chrome browser, ur also logged in with twa applications as well.
Browser's Local storage and cookies are all shared by chrome browser, pwa and twa.
Only thing unique is tab session.
Whenever you open a TWA application a single chrome tab is opened and when you click on any link you are still in same tab, so to achieve your goal you have to write you logic according to this.
It is worth noting that in IOS - the browser and PWA are completely separate (and therefore possibly App1 and App2 (I'm not an IOS user)). See https://www.netguru.com/codestories/how-to-share-session-cookie-or-state-between-pwa-in-standalone-mode-and-safari-on-ios which talks about how TO share between but therefore clearly shows IOS is different to Android/Chrome.

Open URL with external browser in Messenger

I'm building a (Facebook) Messenger chatbot which needs to send a URL to the user which may be handled by a specific application instead of a web browser.
By default messenger opens URLs in a integrated web view instead of delegating the task of finding a suitable app to the OS.
I cannot force my users to change their Messenger settings to disable the web view, so what is a way of telling messenger not to try and open my link in its embedded web view?
The issue is not and Android one since intent filters are set up and working correctly. Messenger simply doesn't publish an intent when the URL is clicked, and only displays it in a web view.
All URLs in FB Messenger open in their webview, but you can still use deeplinks to open a native app and launch a specific screen on the user's mobile device. That way, when the user clicks on a given URL / URL button, they will "switch" from the FB Messenger chatbot to an application on their mobile device.
To create a deeplink for your Android app, it seems that the Mobile Deeplinking Library highlighted on this website (Section 2.3) will help. It lists instructions and details about how to set up your own deeplinks for iOS and Android applications.
I've only done a bit of research into mobile deeplinking but I hope this helps solve the problem!

WebViews UID same as the apps UID?

Does someone know, if I launch android web-view window from my app, would it have the same UID as the app that lunched it. I am using Samsung phones, I think they use the Web-Kit browser, but I would also want to know for phones that use chrome.
I tried testing it, but I don't know if the traffic which was generated in built in web browser comes only from it or it includes traffic from the web view that I launched from my app.
WebView runs as a part of your application. Thus, if your app has an activity that uses WebView, and you load some URL in this WebView, all this will happen under your app's UID.
However, if your app launches an intent to view a URL, it will be handled by the browser app (Samsung browser or Chrome, for example), and that will run under its own UID.

Categories

Resources