Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background color doesn't work #138

Open
gasci opened this issue May 28, 2024 · 8 comments
Open

Background color doesn't work #138

gasci opened this issue May 28, 2024 · 8 comments

Comments

@gasci
Copy link

gasci commented May 28, 2024

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

@riderx
Copy link
Contributor

riderx commented Jun 14, 2024

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

@gasci
Copy link
Author

gasci commented Jun 14, 2024

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

@riderx
Copy link
Contributor

riderx commented Jun 14, 2024

Can you share a screenshot?

@gasci
Copy link
Author

gasci commented Jun 14, 2024

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
Copy link
Contributor

riderx commented Jun 14, 2024

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

@gasci
Copy link
Author

gasci commented Jun 14, 2024

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

@WcaleNieWolny
Copy link
Contributor

Hey, I believe that I found your issue.

For reference, I set the backgroundColor to red
image

Right now, the backgroundColor really doesn't work, but it also influences the toolbar:

image

Furthermore, the toolbar colors don't work as well

@gasci
Copy link
Author

gasci commented Sep 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants