Comments (3)
Any updates on this?
from android-browser-helper.
I'm experiencing the exact same issue in my app right now. I'm using a custom Activity to show a splash screen on app start-up. When it disappears (by calling finish()
) the app disappears into the background without bringing back the TWA.
Is there any way of easily applying the fix you have @Zyxer22 to an Android package? I'm a web-developer mostly, and use patch-package
to apply patches to third party dependencies in the node ecosystem. How did you go about to apply your fix exactly?
from android-browser-helper.
If you look at the LauncherActivity that gets generated, it extends a similarly named one from a package. We decompiled that, grabbed the code, and created our own without the commented out bits I mentioned in the OP. It seemed to work, but we didn't move forward with that as a deployed solution. Maintaining our own 'branch' of this file wasn't something we wanted to do and we weren't sure what the other complications might be for removing the finish() call here. It seems pretty safe, but without more knowledge of how the package worked, it wasn't something we wanted to risk breaking larger parts of the app. If you run with the change, let us know what your experience looks like.
from android-browser-helper.
Related Issues (20)
- Make LauncherActivity more extensible to support third-party integrations HOT 3
- String app name overrides app's name HOT 2
- Notifications don't work in background HOT 3
- Set proper paddings when inmersive mode is enabled
- Play Billing Library Version Deprecation
- Consistent Google Play Billing error in TWA: clientAppUnavailable (Android 13, API 33 and above) HOT 3
- Bump the `com.google.android.gms:play-services-location` version in `locationdelegation` HOT 1
- Cannot repro the demo of twa post message HOT 4
- Post Message - onMessageChannelReady is not getting called HOT 1
- [BUG] Custom Tab doesn't appear in a bottom sheet HOT 1
- [BUG] Custom Tab height doesn't change HOT 1
- Demo site not working
- PostMessage request has failed due to an internal error on the browser message channel. HOT 2
- Base Plans are not supported in subscriptions
- Ok
- How to support activity embedding, cross-application embedding. HOT 1
- Isolating TWA local storage
- Not able to consistently launch another activity from the LauncherActivity
- onActivityResult not triggering when Activity is started by LauncherActivity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-browser-helper.