Hide status bar on splashscreen

4 posts, 0 answers
  1. Jeelig
    Jeelig avatar
    31 posts
    Member since:
    Feb 2013

    Posted 03 Oct 2014 Link to this post

    Hi,
    I'm using appbuilder to build iOS apps. Actually, I have on issue.
    In my app, I want the status bar to have a specific color. In the deviceready event, I added this :
        StatusBar.backgroundColorByHexString("#00A084");
    It works perfectly. Except that when the app is launching, on top of the splashcreen you can see that the status bar is still black, which is quite normal since the "deviceready" event hasn't been catched yet.
    What concerns me the most is that, in the properties of the project, for iOS, I choosed statusbar style "hidden".
    I tried all the options of status style and in the splashscreen, the status bar is still black!

    Do you have any idea how to have the splashscreen covering the status bar? Or not having a black status bar on splashscreen?

    Thank you
  2. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 07 Oct 2014 Link to this post

    Hello,

    The option in the Properties of the project works only for iOS 6.1 and earlier. To change this for newer iOS versions, you have to specify this in the info.plist file. To get access to the info.plist file in Telerik AppBuilder right click on your project -> Edit Configuration -> info.plist. Open the file and add this key at the bottom after all other keys:
    <key>UIStatusBarHidden</key>
    <true/>

    Try this out and let me know the results.

    Regards,
    Martin Yankov
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Jeelig
    Jeelig avatar
    31 posts
    Member since:
    Feb 2013

    Posted 07 Oct 2014 in reply to Martin Yankov Link to this post

    Still the same black status bar when on splashscreen.
    Thanks anyway, but that's not the solution
  4. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 08 Oct 2014 Link to this post

    Hello,

    This solution works for me. Can you please open a support ticket and send a sample app or your app, so that I can investigate this and provide a solution.

    I am looking forward to your reply.

    Regards,
    Martin Yankov
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top