Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
TWA (Trusted Web Activities):
Trusted Web Activities are a new way to integrate your web-app content such as your PWA with your Android app using a protocol based on Custom Tabs. A Trusted Web Activity runs a Chrome browser full screen in an Android app, meaning there is no browser UI visible in the app, including the URL bar.
Digital Asset Links :
TWA uses Digital Asset Links to certify ownership. The Digital Asset Links protocol and API enable an app or website to make public, verifiable statements about other apps or websites. For example, a website can declare that it is associated with a specific Android app, or it can declare that it wants to share user credentials with another website.
Steps to build PWA apk:
1. Add the Jetpack configuration in Project levelbuild.gradle. Under the allprojects section:
build.gradle
allprojects
2. Add Java 8 features Module level build.gradle. Under the compileOptionssection:
compileOptions
3. Add the TWA Support Library to the project. Under the dependencies section:
dependencies
4. Add TWA LauncherActivity to the AndroidManifest.xml.
5. Add Digital AssetLinks statement to remove the URL bar.
We can generate assets links file from URL https://developers.google.com/digital-asset-links/tools/generator. If you will not configure Digital Asset Links JSON file properly then APK will show the URL bar.
Package Name: “package_name” is the value of the applicationId attribute.
applicationId
SHA-256 Fingerprint: You can generate “sha256_cert_fingerprints” using below command in terminal Release command “keytool -exportcert -list -v \-aliaskeystorealias -keystore keystorefile.jks” Debug command “keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android”
At the last put generated file at your host in the folder “.well-known“. It will be accessible publicly https://example.com/.well-known/assetlinks.json.
References:
https://developers.google.com/web/fundamentals/integration/webapks
https://developers.google.com/web/updates/2019/02/using-twa
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.
Vincenzo Carrano
Administrator, Segshop
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.