CDVStatusBar.m : value conversion issue - IOS 8.4


#1

I’ve update XCODE and SDK to IOS 8.4

I recreate from scratch the Ionic project and XCODE I’ve this warning and in the emulator the statusbar don’t work ( before yes )

…/Plugins/cordova-plugin-statusbar/CDVStatusBar.m
…/Plugins/cordova-plugin-statusbar/CDVStatusBar.m:182:40: Implicit conversion from enumeration type ‘UIInterfaceOrientation’ (aka ‘enum UIInterfaceOrientation’) to different enumeration type ‘UIDeviceOrientation’ (aka ‘enum UIDeviceOrientation’)

Why?

Cordova CLI: 5.1.1
Gulp version: CLI version 3.8.11
Gulp local:
Ionic Version: 1.0.1
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
ios-deploy version: Not installed
ios-sim version: 4.1.1
OS: Mac OS X Yosemite
Node Version: v0.12.4
Xcode version: Xcode 6.4 Build version 6E35b

com.ionic.keyboard 1.0.4 "Keyboard"
cordova-plugin-console 1.0.1 "Console"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-dialogs 1.1.1 "Notification"
cordova-plugin-inappbrowser 1.0.1 "InAppBrowser"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-statusbar 1.0.1 "StatusBar"
cordova-plugin-whitelist 1.0.0 “Whitelist”


#2

I’ve commented this in my code and now I see status bar…

$ionicPlatform.ready(function () {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if (window.cordova && window.cordova.plugins.Keyboard) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
    }
    /*if (window.StatusBar) {
        StatusBar.overlaysWebView(false);
        StatusBar.styleLightContent();
    }*/

    /* $cordovaStatusbar.styleColor('white');
     $cordovaStatusbar.style(1);
     $cordovaStatusbar.overlaysWebView(false);
     $cordovaStatusbar.show();
    */

});