custom-tabs-client | Chrome custom tabs examples | Browser Plugin library

 by   GoogleChrome Java Version: Current License: Apache-2.0

kandi X-RAY | custom-tabs-client Summary

kandi X-RAY | custom-tabs-client Summary

custom-tabs-client is a Java library typically used in Plugin, Browser Plugin, React, Webpack applications. custom-tabs-client has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.

Chrome custom tabs examples
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              custom-tabs-client has a medium active ecosystem.
              It has 1389 star(s) with 384 fork(s). There are 114 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              custom-tabs-client has no issues reported. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of custom-tabs-client is current.

            kandi-Quality Quality

              custom-tabs-client has 0 bugs and 0 code smells.

            kandi-Security Security

              custom-tabs-client has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              custom-tabs-client code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              custom-tabs-client is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              custom-tabs-client releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              custom-tabs-client saves you 3613 person hours of effort in developing the same functionality from scratch.
              It has 7724 lines of code, 558 functions and 114 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed custom-tabs-client and discovered the below as its top functions. This is intended to give you an instant insight into custom-tabs-client implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            custom-tabs-client Key Features

            No Key Features are available at this moment for custom-tabs-client.

            custom-tabs-client Examples and Code Snippets

            No Code Snippets are available at this moment for custom-tabs-client.

            Community Discussions

            QUESTION

            Cannot hide URL bar in TWA/PWA app in Android
            Asked 2020-Feb-20 at 15:59

            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:16

            My 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 :)

            Source https://stackoverflow.com/questions/56577549

            QUESTION

            Trusted Web Activity - Address bar not hide (Chrome for Android 72)
            Asked 2020-Jan-29 at 08:11

            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:39

            You 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.

            Source https://stackoverflow.com/questions/54597728

            QUESTION

            TWA URL bar not hiding
            Asked 2020-Jan-20 at 17:21

            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:36

            It'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.

            Source https://stackoverflow.com/questions/58338648

            QUESTION

            Android App Startup Crash - customtabs.CustomTabsSession.validateRelationship
            Asked 2019-Oct-08 at 00:27

            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:30

            I 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.

            Source https://stackoverflow.com/questions/54714786

            QUESTION

            Cannot understand how to open a simple TWA inside an app (using AndroidX)
            Asked 2019-Sep-23 at 20:54

            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:54

            To 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.

            Source https://stackoverflow.com/questions/57741990

            QUESTION

            In Trusted Web Activity the address bar not hiding
            Asked 2019-Jul-28 at 19:49

            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:49

            It 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

            Source https://stackoverflow.com/questions/57233555

            QUESTION

            Trusted web activity - Digital assets link validation for intranet/private web app seem to be failing
            Asked 2019-Feb-05 at 17:22

            I've followed this doc to

            1. Create a wrapper Android app based on this sample project for my UI application which runs in non-public domain in our corporate servers.
            2. Add assetlinks.json in my Angular 6 PWA application, with SHA256 fingerprints of my release key.
            3. Deployed the signed apk to a Android 4.4.3 device running Chrome Dev 69 and Google 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:22

            Got 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.

            Source https://stackoverflow.com/questions/51734867

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install custom-tabs-client

            You can download it from GitHub.
            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

            Chrome Custom Tabs provides a way for an application to customize and interact with a Chrome Activity on Android. This makes the web content feel like being a part of the application, while retaining the full functionality and performance of a complete web browser.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/GoogleChrome/custom-tabs-client.git

          • CLI

            gh repo clone GoogleChrome/custom-tabs-client

          • sshUrl

            git@github.com:GoogleChrome/custom-tabs-client.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Browser Plugin Libraries

            Try Top Libraries by GoogleChrome

            lighthouse

            by GoogleChromeJavaScript

            chrome-extensions-samples

            by GoogleChromeJavaScript

            workbox

            by GoogleChromeJavaScript

            chrome-app-samples

            by GoogleChromeJavaScript

            web-vitals

            by GoogleChromeJavaScript