divolt-android icon indicating copy to clipboard operation
divolt-android copied to clipboard

Divolt opens as a Chrome Custom Tab and not a PWA

Open daemonspudguy opened this issue 3 years ago • 5 comments

Divolt doesn't appear to work as a PWA, as this apk which is supposed to act like any other PWA if I understand how TWAs work, opens a Chrome Custom Tab. The Revolt app opens as a PWA, for what it's worth.

daemonspudguy avatar Aug 02 '22 02:08 daemonspudguy

The Divolt and Revolt apps are pretty much the same thing, the only difference is that one of them opens up Divolt and that one (for whatever reason) still shows the address bar.

Unfortunately I'm not sure what's causing it. My best guess is that there's a string value somewhere that still leads to app.revolt.chat being the trusted URL instead of divolt.xyz. But if that was the case then I'd have no idea where it is.

ggtylerr avatar Aug 02 '22 03:08 ggtylerr

This in the twa-manifest might be it, but I don't know.

image

daemonspudguy avatar Aug 03 '22 03:08 daemonspudguy

It's not. That's the package ID, which the only thing it changes is the path to source files. (It's staying as chat.revolt.app.twa so upstream changes don't break that much)

ggtylerr avatar Aug 03 '22 03:08 ggtylerr

There's mismatch between the packageId in the manifest and the gradle scripts.

daemonspudguy avatar Aug 03 '22 03:08 daemonspudguy

Application ID =/= Package ID.

ggtylerr avatar Aug 03 '22 03:08 ggtylerr