WebViews UID same as the apps UID? - android

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.

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

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 an Android app from a web browser

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%.

How to launch my app by typing the name of the app?

By clicking Link my of app on webpage it launch app properly. But I want when some one type name of my app in web browser it should launch my app instead of searching for app on google..
Currently I m doing this by using intent filter...
Actually I want when some type name of app in web browser "myapp_name:http://www.google.com" my app should launch and main_activity should get url(www.google.com or http:google.com) for further process.
There is no requirement for a Web browser to launch an app based on the user typing in a URL in the browser's address bar. In fact, I know of no browsers that support this, though some might exist.

Prevent browser from opening applications

I'm using soundcloud api and I'm trying to generate an access token from their OAuth2 authorization endpoint which is https://soundcloud.com/connect.
In the authentication process, I fire up an Intent to launch the default browser and go to the link specified above. The problem is, it automatically opens soundcloud's native app and shows a toast "There was a problem loading that URL" because the sc native app is set to open m.soundcloud.com and soundcloud.com URLs.
However, when I open the browser myself and enter the address manually, It works just fine without opening the sc native app. It is notable to mention that there exists an app on the store that opens the connect link above in the default browser without the native sc app popping up.
I was wondering if there is an intent filter or something to force the browser not to redirect to any 3rd party apps or to act as if I opened it manually without an Intent. I don't know if this makes any sense, but I hope you got the idea.

Categories

Resources