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.
Related
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
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%.
I have articles which are posted on Facebook for our subscribers and when a user clicks in one of the links they get re-directed to a mobile-site where they login, the problem is now after a a few days 2-3 days the mobile site asks them to authenticate again.
Im guessing Facebook in app browser clears my cookies but what i need to know is how does it manage its cookies especially for external sites. I tried the Facebook developer website there's no documentation on how this in app webview/browser works.
Background Info
Facebook in app browser is rather a webview which renders all the links which user's browse so instead of delegating the rendering to an external browser it handles everything on its own. This comes with limited functionality of course, Facebook added this in app browsing functionality to keep user's in session, because most of the time if user's make use of external browsers they don't come back into the app.
With the above background information Facebook browser is accessible to developer's in a sense that they may choose to use Deep-Linking if the browser doesn't conform to their specifications because the browser is closed i.e you can not modify or rather interact with it, thats why the deep linking functionality allows for developers to give user's an option to choose wether they wish to use their app this is if they have it installed in their mobile devices.
Cookies
Cookie management entirely depends on the In-app browser which if a user wishes to clear them then they can do so via their app settings. Since Facebook in-app browser manages its own cookies thus if a webpage is rendered by the in-app browser it will entirely depend of the in-app browser if its time to clear them from the device.
Deep Linking Overview
App Links is an open standard to deep link to content in your app. When someone using your app shares content to Facebook or another App Links-enabled app you can create a link that makes it possible to jump back into your app from that piece of content.
App Links work by adding metadata to existing URLs on the web so that they can be consumed by your app. If your app doesn't have a web presence with content you can annotate, you can also use a Facebook-provided service to host the data.
The Facebook's app for iOS and Android support App Links today. When the Facebook app comes across a link that supports App Links it will launch your app with the right information so someone can see the content immediately and quickly.
How App Linking Works
A person clicks on a story on Facebook
If someone shares a story on Facebook with content from your app, people can click on the story to view the content in your app. The URL shared to Facebook contains App Link metadata or be a Facebook-hosted URL.
Facebook app looks up the URL to see if it supports App Links
Once someone clicks on a story, the Facebook App does a lookup to see if the content supports App Links. if it does, the Facebook App takes people to your content, either in a web view or by launching your app and linking to the content, depending on the following criteria:
Whether people have your app installed
Whether the device is and Android or iOS device
Whether your app is mobile only
App Links has the following requirements:
If the content is a web page, your web page must include markup to let the app know what app should be launched.
If the content is mobile only, you must still supply a valid http(s) URL that hosts the App Link metadata. Facebook provides a Hosting API for App Links to make it easy for app developers to support App Links content without having to set up a web server.
In order to accept incoming App Links, your app will need to be set up to support them. We cover how to do that for both iOS and Android.
Launching Outbound Apps
It's possible for any app to do what the Facebook app does and add support to launch other apps based on App Links. If you've got an app where people want to click through to links instead of just going to inbound links, we've also provided a document that covers how to add support for the outbound navigation protocolto your app.
Is there any way to track UID across web to app on either IOS or Android. For example we have a mobile website which if accessed by a user will remember it. Then they are directed to download the app and when the app is opened, it would be great for the app to know that the user already opened a particular web page on our mobile web site. Without having a login, is it possible to accomplish this? This article seems to "hack" that process? Is there a cleaner way? http://www.hasoffers.com/blog/ios-cookie-tracking-wrong-mobile-app-tracking/
Facebook Tab application that I installed on my Page is not even viewable on smartphones.What are the different ways so that I can make them viewable?Is facebook doing something for it?
I can't paste the web link (URL) to my app as wall post.That's cheap.
Any other suggestion
As stated here, there is no way to view page tabs with apps on mobile Facebook website, you can only create mobile version of your app and user will be redirected to it when accessing from mobile device.
Facebook doesn't support page tab application on smartphones. So you need to make mobile application. However you can make page tab application and mobile application by same program.
https://shindan-social.herokuapp.com/sss2.salesforce.com/sites
I think this is helpful for developing your app. You know Facebook page use POST method by fetching page from your server. You can distinguish which browser user use from POST or GET methods and user-agent.