bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Web Share Target - problem with redirect in Angular projects with TWA (PWA works fine)

Open keved93 opened this issue 4 years ago • 4 comments

Hey, I developed an application using Angular 11 where the Web Share Target works fine with PWA but not TWA. Both variants are recognized by the other apps.

I built the TWA with PWABuilder which uses Bubblewrap. The redirection to the desired route does not work for my TWA project.

Link to the project: https://websharetarget.peneo.de - is a very simple pwa with web share target function

keved93 avatar Apr 30 '21 12:04 keved93

Would you be able to share your twa-manifest.json file and the application APK so I can try to reproduce?

andreban avatar May 25 '21 16:05 andreban

Hey @andreban, i couldn't find the twa-manifest.json in the source code of the app that was created with PWABuilder.

Source Code from the TWA Android App and the APK https://websharetarget.peneo.de/android/source.zip https://websharetarget.peneo.de/android/app.apk

keved93 avatar May 26 '21 12:05 keved93

@keved93 maybe you can have a look at how the https://squoosh.app/ implemented the worker/frontend communication. https://github.com/GoogleChromeLabs/squoosh/blob/2bf0b904cd3ebf831c9b47e6f59ab508ae968f81/src/sw/util.ts#L46-L62

The redirection to the desired route does not work for my TWA project.

What happens? Does the POST request happens at all? Which redirection do you mean?

oliverpool avatar Sep 11 '21 10:09 oliverpool