Web Share Target - problem with redirect in Angular projects with TWA (PWA works fine)
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
Would you be able to share your twa-manifest.json file and the application APK so I can try to reproduce?
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 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?