Comments (7)
Same problem here, I think. I switched to version d08e93fce3 and it works.
from svgomg-twa.
Actually I might have a different error.
When I upgrade to com.github.GoogleChrome.custom-tabs-client:customtabs:91b4a1270b, I get the logcat error below.
Maybe my other dependencies are of the wrong version?
E/AndroidRuntime: FATAL EXCEPTION: main
Process: live.throne, PID: 10018
java.lang.IllegalAccessError: Method 'android.os.Bundle android.support.customtabs.CustomTabColorSchemeParams.toBundle()' is inaccessible to class 'androidx.browser.customtabs.CustomTabsIntent$Builder' (declaration of 'androidx.browser.customtabs.CustomTabsIntent$Builder' appears in /data/app/live.throne-EyZgOedElgYeooVfSZTF5w==/base.apk)
at androidx.browser.customtabs.CustomTabsIntent$Builder.build(CustomTabsIntent.java:746)
at android.support.customtabs.trusted.TrustedWebActivityIntentBuilder.build(TrustedWebActivityIntentBuilder.java:141)
at android.support.customtabs.trusted.TwaLauncher.launchWhenSplashScreenReady(TwaLauncher.java:185)
at android.support.customtabs.trusted.TwaLauncher.launchWhenSessionEstablished(TwaLauncher.java:178)
at android.support.customtabs.trusted.TwaLauncher.lambda$launchTwa$0$TwaLauncher(TwaLauncher.java:153)
at android.support.customtabs.trusted.-$$Lambda$TwaLauncher$f0OnWewitepqy4BDJ8g8HMz1oZ8.run(Unknown Source:8)
at android.support.customtabs.trusted.TwaLauncher$TwaCustomTabsServiceConnection.onCustomTabsServiceConnected(TwaLauncher.java:222)
at androidx.browser.customtabs.CustomTabsServiceConnection.onServiceConnected(CustomTabsServiceConnection.java:44)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1730)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1762)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
from svgomg-twa.
So I did a binary search through the versions of custom-tabs-client I saw on their github page. It turns out that this commit is causing my error: GoogleChrome/custom-tabs-client@59af545
Not sure what to do about that. In the meantime, if I use the version right before this from May 15th ('com.github.GoogleChrome.custom-tabs-client:customtabs:3e2f06a3b3'), I can use the splash screen loading feature, which was all I wanted for now. Maybe if I try again in a few months it will all magically be working?
from svgomg-twa.
@jahooma I am experiencing the same problem so I reported an issue
from svgomg-twa.
@jahooma @tobiasharle Are you using other libraries with the project? If not, it may be possible to disable jetifier (android.enableJetifier=false
in gradle.properties
) and then ensuring that you are not using other libraries in the apps build.gradle
.
The android-browser-helper depends on an alpha version of androidx.browser and should go stable once that library goes stable as well.
from svgomg-twa.
@andreban At the time of writing I wasn't aware of android-browser-helper. Using that instead of custom-tabs-client solved the issue for me.
from svgomg-twa.
Closing the issue, as it's a Support Library issue and being tracked on Chromium bugs here: https://bugs.chromium.org/p/chromium/issues/detail?id=983378
from svgomg-twa.
Related Issues (20)
- TWA top url bar not hiding HOT 2
- Unable to instantiate service androidx.browser.trusted.TrustedWebActivityService HOT 4
- how to use fcm push notification on TWA apk HOT 1
- Does TWA notification delegation handle sound also? HOT 9
- My TWA is crashing multiple times. HOT 7
- [Question] Adsense in PWA/TWA HOT 3
- Setting Notifications to true still asks for permission from user HOT 7
- Hide div in twa in-app browser HOT 1
- Running the TWA from a Chromebook just opens the URL in the browser and not a standalone window HOT 5
- TWA app can't run independently without running chrome browser first HOT 1
- Android TV app HOT 1
- open new a tab (url) inside of TWA by browser which is not inside of TWA HOT 1
- Update Android SDK studio to version 30 HOT 1
- Facebook Comments Plugin Not Working in The TWA HOT 1
- How to prevent app from going into background when a class 0 SMS (flash SMS) pops up thus preventing UPI verification.
- Android generating 404 errors on TWA website
- TWA asset ink is updated but address bar is visible HOT 4
- Android Browser Helper version HOT 2
- Multiple TWAs created for the same domain but google search only indexes one TWA HOT 1
- notifications only display when the phone is unlocked
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 svgomg-twa.