Cap-go / capacitor-inappbrowser

Capacitor plugin in app browser with urlChangeEvent
MIT License
57 stars 37 forks source link

Background color doesn't work #138

Open gasci opened 1 month ago

gasci commented 1 month ago

The backgroundColor parameter doesn't change anything on iOS. It is always white.

riderx commented 2 weeks ago

did you tried with openWebView ? that the only one who work and it should be only black or white

gasci commented 2 weeks ago

I see the section safe-area-bottom always white on iOS. Maybe we need another parameter for that?

riderx commented 2 weeks ago

Can you share a screenshot?

gasci commented 2 weeks ago
const loading = await showLoading({ message: undefined });
await InAppBrowser.openWebView({
  url: modifiedUrl,
  toolbarType: ToolBarType.NAVIGATION,
  showReloadButton: reloadButton,
  isPresentAfterPageLoad: true,
  activeNativeNavigationForWebview: true,
  title: title,
  showArrow: false,
  backgroundColor: BackgroundColor.BLACK
}).finally(() => {
  dismissLoading(loading)
})

Here is my screenshot: Screenshot 2024-06-14 at 19 55 19

riderx commented 2 weeks ago

I don't understand the issue on your screenshot, the top bar is white it's normal the bottom is white

gasci commented 2 weeks ago

Yes, the backgroundColor and toolbarColor parameters have been completely ineffective somehow on iOS 17.5.