apache / apache/cordova-plugin-inappbrowser

InAppBrowser IOS options not working

Open
#537 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report
The InAppBrowser does not behave as expected on IOS with the additional options.

## Problem
toolbarposition=top does not work
toolbarcolor=#46b919 does not work

### What is expected to happen?
We expected that setting the options does change the InAppBrowsers look as described.

### What does actually happen?
Options are ignored, color is still the default color and the toolbar is still at the bottom.

## Information

We tried to use the usewkwebview=yes option, which made the toolbar to appear in the right color and at the top of the screen but the page didn't load anymore.

### Command or Code

This is the string we used for the options
toolbarposition=top,toolbarcolor=#46b919,closebuttoncaption=Back

### Environment, Platform, Device

Tested on IPhone XR and Iphone 10 with IOS 12.4.1

### Version information

Cordova: 9.0.0 (cordova-lib@9.0.1)
Ionic Framwork: 4.12.0
cordova-plugin-ionic-webview: 4.0.1
cordova-plugin-inappbrowser: ~3.0.0

## Checklist

- [x] I searched for existing GitHub issues
- [ ] 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 issue on iOS 12.4.1 with cordova-plugin-inappbrowser ~3.0.0 using toolbarposition=top, toolbarcolor=#46b919, and closebuttoncaption=Back. Inspect the iOS option handling and compare behavior with usewkwebview=yes; done means the toolbar position and color options work without preventing the page from loading.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.