question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output application crashes when `orientation !== 'default'` and device is Android 8.0 / API Level 26 / Oreo or lower

See original GitHub issue

Describe the bug After running bubblewrap build TWA is generated but app will not run after apk install on android device or AVD emulator. apk installs fine but app will not start: “APP_NAME keeps stopping, Close app”

To Reproduce Steps to reproduce the behavior:

  1. bubblewrap init --manifest https://my-twa.com/manifest.json
  2. bubblewrap build
  3. “Generated Android APK at ./app-release-signed.apg”
  4. “Generated Android app Bundle at ./app-release-bundle.aab”
  5. “Overall result: PASS”
  6. Copy apk to android device
  7. Install apk (success)
  8. Start APP (fail)

Expected behavior App running on android device

Screenshots PWA Lighthouse test: pwa_light Bubblewrap doctor: doctor_valid Bubblewrap build: build App failed to start: 172434354_887175795348325_1582872131228340967_n

Desktop (please complete the following information):

  • Windows 10 Enterprise
  • Chrome 89.0.4389.114 (64-bit)

Smartphone (please complete the following information):

  • Device: Xperia ZX
  • OS: Oreo 8.0
  • Browser: Chrome 89.0.4389.105

Bubblewrap version: 1.11.1

Additional context config.json: {"jdkPath":"C:\\Users\\MY_USER\\.bubblewrap\\jdk\\jdk8u282-b08","androidSdkPath":"C:\\Users\\MY_USER\\AppData\\Local\\Android\\Sdk"}

bubblewrap doctor: Your jdkpath and androidSdkPath are valid.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
andrebancommented, Apr 12, 2021

In the directory with the project generated by Bubblewrap, you will see a twa-manifest.json file. Also feel free to DM details via on Twitter (@andreban), so you don’t share publicly.

0reactions
andrebancommented, Apr 16, 2021

twa-manifest.json will be fine with default. To use the same value on both the Web Manifest and twa-manifest, you can just use any.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android 8.0 Behavior Changes
These behavior changes apply to all apps when they run on the Android 8.0 (API level 26) platform, regardless of the API level...
Read more >
Lock screen orientation when targeting Android API 27 with ...
Presently, the best solution is to change your targetSdk to 26. This is an issue released by google that it will be fixed...
Read more >
Release Notes - Helpshift for Android - Developer Guide
On a lower-end Android device, the mobile app that embeds a Helpshift SDK ... Prevented a crash due to Android OS 8.0 bug...
Read more >
Vuforia Engine Release Notes | VuforiaLibrary
Updated Vuforia Engine to build with Magic Leap SDK version 1.0.0. ... has increased the minimum supported API level for Android to 26...
Read more >
Android version history
The version history of the Android mobile operating system began with the public release of ... Google Pixel devices and its stable version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found