Comments (18)
Can you confirm the version of the Support Library being used? The latest version is
91b4a1270b
.
How do we find the latest version?
From Google's documentation, they says to use 7a2c1374a3
. But this didn't work for me. Is there way to find the latest version support library? How we will know when a new version is released?
91b4a1270b
also didn't work for me. From Logcat it says,
java.lang.IllegalAccessError: Method 'android.os.Bundle android.support.customtabs.CustomTabColorSchemeParams.toBundle()' is inaccessible to class 'androidx.browser.customtabs.CustomTabsIntent$Builder'
From a different example, I got this version 7ab7178ae0
and it worked for me.
from svgomg-twa.
+1 to that. The Feature Request is being tracked in this issue: http://crbug.com/989606 It'd be great if you could chime in and add any details you can on what you are building.
from svgomg-twa.
Can you confirm the version of the Support Library being used? The latest version is 91b4a1270b
.
from svgomg-twa.
We were using an earlier version but updated to 91b4a1270b on Friday. Over the weekend we've still seen some instances of the same error.
from svgomg-twa.
Can you confirm those errors are happening on the latest version of your app (the one that uses the latest version of the library).
from svgomg-twa.
Yes, the errors are happening on the latest version.
from svgomg-twa.
Thanks for confirming. Can you file a bug against the library using this template?
from svgomg-twa.
@andreban - We are using latest library version (91b4a1270b) for our TWA but we are seeing similar errors.
from svgomg-twa.
Yes, the errors are happening on the latest version.
@Jcholerton - Did you file bug with chromium team as suggested by @andreban ?
from svgomg-twa.
Filed a bug -
https://bugs.chromium.org/p/chromium/issues/detail?id=1004115
from svgomg-twa.
See this - https://bugs.chromium.org/p/chromium/issues/detail?id=988346
from svgomg-twa.
(sorry for the noise!)
@andreban This issue has been fixed on the custom-tabs-client, I think all we need to do is update the version we depend on.
from svgomg-twa.
@rockeynebhwani Could you update to the latest version and let us know if you still see the issue on that?
I have updated svgomg-twa
to use the latest on #51
from svgomg-twa.
@andreban - I have asked our dev team to upgrade to latest version but currently we are blocked on rolling out our app to more users due to paypal issue (on another thread we talked about) so it may take some time before new users download the app. We don't want to roll out to more customers with known issue with Paypal
from svgomg-twa.
Closing the issue here, in favour of tracking in chromium bugs.
from svgomg-twa.
Got a similar error today in the logs, should this be filed in chromium bugs instead?
Huawei HUAWEI Y7 Prime 2018 (HWLDN-Q), 3072MB RAM, Android 8.0
java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3303)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1994)
at android.os.Handler.dispatchMessage (Handler.java:108)
at android.os.Looper.loop (Looper.java:166)
at android.app.ActivityThread.main (ActivityThread.java:7529)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)
Caused by: java.lang.IllegalStateException:
at android.app.Activity.onCreate (Activity.java:1081)
at androidx.core.app.ComponentActivity.onCreate (ComponentActivity.java)
at androidx.fragment.app.FragmentActivity.onCreate (FragmentActivity.java:6)
at androidx.appcompat.app.AppCompatActivity.onCreate (AppCompatActivity.java:42)
at com.google.androidbrowserhelper.trusted.LauncherActivity.onCreate (LauncherActivity.java)
at android.app.Activity.performCreate (Activity.java:7383)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1218)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3256)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1994)
at android.os.Handler.dispatchMessage (Handler.java:108)
at android.os.Looper.loop (Looper.java:166)
at android.app.ActivityThread.main (ActivityThread.java:7529)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)
from svgomg-twa.
@AlexBorsody filing on https://bugs.chromium.org/ or https://github.com/GoogleChrome/android-browser-helper is best - This repository is a demo app that uses the library.
It's also helpful to attach AndroidManifest.xml
and build.gradle
, so we know which parameters are being passed to the LauncherActivity, which support library version is being used, etc.
This specific error seems to come from the onCreate, which is really the entry-point for the application and the issue happens on a call to the framework (super.onCreate()
).
The stack trace doesn't gives a full picture (eg: error message), but I wonder if it's related to this section of code: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/oreo-release/core/java/android/app/Activity.java#986, although we don't request an specific orientation (we to target Android10 and use a transparent Activity).
from svgomg-twa.
OK I think I see what it is, it would be cool if there was a way we could fix the orientation to portrait. The "added from home screen" version respects the orientation set in the website's manifest.json so portrait is locked in that version but not in the TWA build.
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.