apache / apache/cordova-android

Android Splash screen get visible again after using `_system`

Open
#1,871 5 comments 4 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3.8k
Forks
1.6k
Avg merge
16h 18m
Merged PRs (30d)
11

Description

# Bug Report

## Problem
Splash screen get visible again after open a `_system` URL and return to app on Android devices.

### What is expected to happen?
Is expect to app hold the same state before open a url externaly (`_system` target).

### What does actually happen?
Using `_system` target, the URL opens as usual, but when the user returns to app, the splash become visible again for some milliseconds. In some cases, the app restarts.

Visual example:
https://github.com/SidiBecker/in-app-browser-splash-bug/blob/master/reports/report.gif

## Information

### Command or Code

```ts
this.inAppBrowser.create('https://google.com', '_system');
```

Full source-code: https://github.com/SidiBecker/in-app-browser-splash-bug

### Environment, Platform, Device

Android devices.
Cordova-android: 14.0.1
Android SDK levels that I tested and got this behavior: 33, 34, 35

### Version information

Ionic CLI : 6.20.5
Ionic Framework : not installed
@angular-devkit/build-angular : 20.3.12
@angular-devkit/schematics : 20.3.12
@angular/cli : 20.3.12
@ionic/angular-toolkit : 12.3.0

Cordova:

Cordova CLI : 13.0.0
Cordova Platforms : android 14.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 4 other plugins)

Utility:

cordova-res : not installed globally
native-run : 1.7.1

System:

NodeJS : v20.19.6 (C:\Program Files\nodejs\node.exe)
npm : 10.8.2
OS : Windows 10

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior using the linked full source-code example and the this.inAppBrowser.create('https://google.com', '_system') call on Android with Cordova-android 14.0.1. Trace the Android app lifecycle when returning from the external URL; done means the app retains its prior state without showing the splash screen or restarting.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.