Project

General

Profile

Feature #174

android app

Added by Josip Almasi 4 months ago. Updated 17 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
01/04/2024
Due date:
% Done:

0%

Estimated time:

Description

Web apps can be released to google play and 'installed' like native android apps.
This guy did it, and was nice enough to explain it: https://forum.babylonjs.com/t/game-village-craft/40007/37

History

#1

Updated by Josip Almasi 3 months ago

  • Status changed from New to In Progress
  • Assignee set to Josip Almasi

Manifest and icons added, android app builds as in https://developer.chrome.com/docs/android/trusted-web-activity/quick-start

#2

Updated by Josip Almasi 3 months ago

For full screen mode - assetlinks.json

#3

Updated by Josip Almasi 3 months ago

So the process is straightforward, but not simple.

Requirement:
npm i -g @bubblewrap/cli

Then,
bubblewrap init --manifest=https://www.vrspace.org/manifest.json
creates the keystore.

keytool -printcert -jarfile app-release-signed.apk|grep SHA256|head -1
prints the key.
This key needs to exist in .well-known/assetlinks.json on the web. The same file must specify package_name, in this case org.vrspace.www.twa.
Without this key available on the web, android app can't go full screen, it displays address bar.

Thus, everything that's needed to create the app is on the web.

Then
bubblewrap build
bubblewrap install
build and install the app on the device.
The device has to be connected via usb, and some settings have to be changed to allow installation; that really depends on the device.

The app is finished but not published to android store yet. Nothing is cached.

#4

Updated by Josip Almasi 3 months ago

  • Status changed from In Progress to Resolved
#5

Updated by Josip Almasi 3 months ago

... OR, if the app is signed by google, .well-known/assetlinks.json needs to contain SHA-256 certificate fingerprint found under App Signing section.

#6

Updated by Josip Almasi 17 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF