I have a problem with the @capacitor/status-bar plugin from Capacitor.
On the platform iOS, I get the following error:
Unhandled Promise Rejection: Error: not implemented
Already importing the plugin causes the error.
import { StatusBar, Style } from '@capacitor/status-bar';
...
const hideStatusBar = async () => {
await StatusBar.hide();
};
I would appreciate any suggestions or hints.
The Version of Capacitor and Plugins are the following:
Capacitor: 3.2.4
Capacitor plugins for iOS:
@capacitor/[email protected]
@capacitor/[email protected]
@capacitor/[email protected]
** @capacitor/[email protected]**
Cordova plugin for ios:
[email protected]
try this one
import { Plugins, PluginRegistry, Capacitor } from '@capacitor/core';
const { SplashScreen, StatusBar }: PluginRegistry = Plugins;
if (Capacitor.isPluginAvailable('StatusBar')) { StatusBar.show() };