Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wrapped a Vue js web app using android to make it TWA(Trusted Web App).

Now I want to send firebase_token and other data from the Android part to the webapp in TWA. As all the Apis are on a web app and I don't want to call any API in Android.

In WebView we can send data from Android to the webapp using "WebViewController.evaluateJavascript()" but I don't know how can i send data from my Android(java) to web app.

What I have tried:

I implemented my own LauncherActivity and override getLaunchingUrl() to add extra parameters to the URL.But its working in runtime.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900