custom-tabs-client | Chrome custom tabs examples | Browser Plugin library
kandi X-RAY | custom-tabs-client Summary
kandi X-RAY | custom-tabs-client Summary
Chrome custom tabs examples
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Called when the TextView is clicked
- Bind the CustomTabService to the CustomTabsService
- Prepares the action button for the user
- Generate a URI of a bitmap
- Create activity description
- Creates an activity description
- Connects to the Service
- Wraps the given callback
- Selects the appropriate provider for the launch mode
- Get the LaunchMode for the Custom Tabs Service
- Sets the action button on the toolbar
- Called when the remote view is clicked
- Initializes the tab
- Updates the visualizations for a specific item
- Open a site - settings activity
- Initializes the view
- Initializes the Chrome Tabs
- Performs a bitmap on a file
- This method is called to configure the TwaView
- Grant a read permission to an intent
- Get the view at the specified position
- Create the View
- Initializes the web view
- Displays a notification with the specified channel
- Called when the activity is created
- Create the tab action
custom-tabs-client Key Features
custom-tabs-client Examples and Code Snippets
Community Discussions
Trending Discussions on custom-tabs-client
QUESTION
I'm attempting to get my PWA app working using the Google TWA guide here:
https://developers.google.com/web/updates/2019/02/using-twa
I've followed the guide completely from start to finish multiple times, but can't seem to get it to hide the URL bar at any point.
I have uploaded the apk(release) to Google Play Console, and allowed it to do the signing for me.
I've gone through basically all of the questions on SO, and none of the solutions seem to work for me, or I already have them set up correctly.
Things to note that I have tried and checked:
- I've copied the SHA256 fingerprint to my assetlinks.json file that was provided to me by the Play Console. Didn't work.
- I've used the manually generated SHA256 fingerprint that I set up in Android Studio in my assetlinks.json. Didn't work.
- Under both of the above conditions, I have tried manually loading the generated apk onto my phone instead of the apk from the Play Console. Didn't work.
- I've tried using Android Studio to install the app using developer mode with USB debugging on my phone (tried both release and debug flavours). Also didn't work.
- Tried changing the namespace in the strings.xml to "android_app" to match the namespace in the assetlinks.json file as a bit of a long shot. Didn't work.
- Confirmed that the assetlinks.json file works using the asset links generator: https://developers.google.com/digital-asset-links/tools/generator
- My assetlinks.json path is /.well-known/assetlinks.json
- My intents seem to work (clicking a link in Google search results will prompt to launch the app, and the association stays)
My build.gradle (Module)
...ANSWER
Answered 2019-Jun-27 at 00:16My default browser must have reset to the Samsung browser when I cleared out settings on my phone (Samsung Note 9) when I was troubleshooting the problem. I set the default browser to Chrome. It's working fine.
Thanks to andreban :)
QUESTION
I've followed this guide to learn how to use a Trusted Web Activity. All fine but the address bar still appear. At begin I think it was because when the app was looking for assetlinks.json the response was 404. Fixed it but no luck on removing the address bar. Am I missing something?
Chrome Version: 72.0.3626.96
Android Version: 7.1.2 (LineageOS 14.1)
assetlinks.json
...ANSWER
Answered 2019-Feb-17 at 23:39You may have opted into having Google Play sign your releases with a key they generated, and only use your key for the upload.
If you did, go to Google Play Console Release Management -> App Signing and copy the App signing certificate SHA-256 fingerprint and put it into the assetlinks.json
file.
QUESTION
we are tring to push in through our PWA to the Android Play store using TWA by using the codes from this github repository https://github.com/GoogleChromeLabs/svgomg-twa. By following the instructions to debug the digital asset links, I get the message:
...ANSWER
Answered 2019-Oct-11 at 11:36It's hard to know exactly what is happening without more information.
Is it possible that a redirect is happening? Ex: the validated domain used in launchUrl is https://example.com, but when opening the domain the user is redirected to https://www.example.com?
It would be helpful if you could paste the content for your application's build.gradle.
QUESTION
I followed Googles guidelines for the recent Trusted Web Activities and my app has been working fine on my device and some select emulators.
However, on certain devices and emulators (such as Google Pixel 2) I get an immediate crash on startup.
The logcat outputs:
...ANSWER
Answered 2019-Feb-16 at 13:30I have the same problem.
I noticed that if I update chrome to the last version (currently 72) the TWA works great. What is annoying is that there is no error message for the user to make him update chrome.
IMO this makes TWA currently not usable.
QUESTION
I am trying to open a TWA inside my app and have researched for 2 days.
I've already managed to create a single TWA app, no fuss, just edit the manifest and a few things more.
Now I need to have my own app - let's say the app has a splash screen activity at first which then opens the TWA inside the app. Can I launch a TWA inside my app through a simple splash screen activity, for example?
I did try to use CustomTabs
way, but it says it is deprecated and to use TrustedWebActivityIntentBuilder
instead, but there is 0, I repeat, ZERO documentation on how to use that!
Android development documentation is horrible. Among other things, the documentation pointers are out-dated. (Read videos on their channel linking to guides that are no longer valid for what is discussed in the video itself)
The closest thing I found was this sample project. This uses a shocking number of deprecated things rendering the adaptation of that method into my app completely useless. It also makes use of a countless number of custom Classes/Helpers created just for that project, leading me to a never ending marathon of copy-pasting each one of them just to find out that inside that one there are more that need to be copied over to the project.
...ANSWER
Answered 2019-Sep-23 at 20:54To my opinion there is a simpler approach.
First: declare your TWA activity in AndroidManifest.xml like shown below. Note that it won't start by default because it doesn't handle the android.intent.action.MAIN intent, so you can implement your own main activity.
QUESTION
After following the Using Trusted Web Activities page about TWA's and hiding the URL bar I have followed all the instructions to hide the URL bar, but surprisingly it's not hidden.
How can I solve this?
This is my assetlinks.json file :
...ANSWER
Answered 2019-Jul-28 at 19:49It seems the URL you are opening in the TWA is https://app.foodeye.org
, but the assetlinks is hosted on https://foodeye.org/.well-known/assetlinks.json
, which is a different origin.
You need to host the a assetlinks file on the same origin as the URL you are opening in the TWA. https://app.foodeye.org/.well-known/assetlinks.json
QUESTION
I've followed this doc to
- Create a wrapper Android app based on this sample project for my UI application which runs in non-public domain in our corporate servers.
- Add assetlinks.json in my Angular 6 PWA application, with SHA256 fingerprints of my release key.
- Deployed the signed apk to a
Android 4.4.3
device runningChrome Dev 69
andGoogle play services - 12.8.74
.
When I run the application, everything works fine except hiding the address bar, which makes it as a regular custom tab and not the "Trusted web" content.
I don't see any error in the log and not sure how to debug this scenario. Any help on this is appreciated.
...ANSWER
Answered 2019-Feb-05 at 17:22Got confirmation from Chrome team that they are using TWA assets link validation in server side using an API call and so this solution wont work for Private web apps. Said that, they are also considering to move that logic to browser to support this use case. Will update here when I have any update on this.
Update: As of Chrome Version 72, TWA(Trusted web activity) if available in Chrome stable version and the web asset validation(to make sure the web page is yours/same as the app its loaded to) happens in browser. So this solution can be implemented for private web apps for hosting inside enterprise environment.
Also, now PWAs can be packed as regular app using TWA solution and uploaded to Play store as an apk file. Documentation on this is still being updated as per one of Chrome developer. But the solution as such is ready for use.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install custom-tabs-client
You can use custom-tabs-client like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the custom-tabs-client component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page