简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM