Instructor: The status bar of a PWA installed as a standalone app may not look the way you want it to. First let's open manifest.json. There we're going to make sure that the background color is white. Let's set a theme color to the React Logo blue color, so we can see what that does as well.
In index.html, we can find and change the theme color there, too. On iOS we only have a limited status bar customization, so we have to add a meta tag called apple-mobile-web-app-status-bar-style, which can only take three values -- default, black, or black translucent.
For this example, I know that default looks the best, but you'll have to experiment for your application, because there are some interesting intersections between the theme color, background color, and the app status bar style. Now we can build and serve that. I'm actually going to launch a second server here on another port.
I've been testing this on the iPhone already, and the iOS browser really aggressively caches the values for the status bar. By just changing the port number, it appears to iOS like a brand new application. If your status bar or any other value from your manifest on iOS isn't updating correctly, you may try a new port to see if that fixes the issue for development.
Now starting an Android, we can view the app and see the status bar area turn the React blue color, which matches the theme color. On iOS, we can navigate to the app in Safari and install it on the home screen.
When we boot the app in standalone mode, we see that the status bar has turned white with black text, which is the behavior for the default setting with this background and theme color combination. Notice that on iOS the theme color isn't displayed anywhere in the header though, because iOS doesn't let us set the status bar to fully custom colors.