Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit ad851dc

Browse files
committed
New post 🚀
1 parent 92a8e8b commit ad851dc

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed
Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
3-
title: "Publish your Progressive Web App onto the Google Play Store"
4-
description: "XXX"
3+
title: "Publish your Progressive Web App to the Google Play Store"
4+
description: "You can now publish your PWA to the Google Play Store using Trusted Web Activities"
55
date: 2019-06-15
66
image: XXXX
77
tags: [android, pwa, java, mobile application development, web development, javascript]
@@ -11,6 +11,20 @@ seo:
1111
authors: [fabrizio_duroni]
1212
---
1313

14-
**
14+
*You can now publish your PWA to the Google Play Store using Trusted Web Activities.*
1515

16-
---
16+
---
17+
18+
A few months ago I [transformed my blog into a Progressive Web App](/2019/03/03/github-pages-progressive-web-app.html). As you may already know PWA let your websites behaves like a native mobile app but there's one thing that was still missing: the possibility to publish on the App Stores. Because even if a PWA as the advantage to be searchable as astandard website, this days user are used to search ofr apps on the App Stores for each platform. Well, starting from february 2019 this problem has been solved on the Android platform with the release of [Trusted Web Activities](https://developers.google.com/web/updates/2019/02/using-twa "trusted web activities").
19+
In this post I will show you how I released the PWA of my blog to the Google Play Store using Trusted Web Activities (and also without writing a single line of Java code :smirk:).
20+
Let's start from the definition of what a Trusted Web Activities is, by quoting [the official Google developer website](https://developers.google.com/web/updates/2019/02/using-twa "trusted web activities").
21+
22+
>There are a few things that make Trusted Web Activities different from other ways to integrate web content with your app:
23+
>
24+
> * Content in a Trusted Web activity is trusted -- the app and the site it opens are expected to come from the same developer. (This is verified using Digital Asset Links.)
25+
> * Trusted Web activities come from the web: they're rendered by the user's browser, in exactly the same way as a user would see it in their browser except they are run fullscreen. Web content should be accessible and useful in the browser first.
26+
> * Browsers are also updated independent of Android and your app -- Chrome, for example, is available back to Android Jelly Bean. That saves on APK size and ensures you can use a modern web runtime. (Note that since Lollipop, WebView has also been updated independent of Android, but there are a significant number of pre-Lollipop Android users.)
27+
> * The host app doesn't have direct access to web content in a Trusted Web activity or any other kind of web state, like cookies and localStorage. Nevertheless, you can coordinate with the web content by passing data to and from the page in URLs (e.g. through query parameters, custom HTTP headers, and intent URIs.)
28+
> * Transitions between web and native content are between activities. Each activity (i.e. screen) of your app is either completely provided by the web, or by an Android activity
29+
30+
....

0 commit comments

Comments
 (0)