Splash screen always auto hiding on iOS

14 posts, 0 answers
  1. Aaron
    Aaron avatar
    2 posts
    Member since:
    Sep 2013

    Posted 02 Oct 2013 Link to this post

    Hey there,

    First of all... wonderful product. Tools like ION have made it ridiculously easy to allow our client to check out their app with zero effort :)

    I've been testing my app in both ION and directly on my phone (with an ad-hoc provisioning profile), but it seems that the AutoHideSplashScreen preference isn't honored when I set it to false. Prior to using Icenium, I was building this directly in Phonegap, and the preference worked fine there. The app I'm building involves reading JSON data from a local file and building out the content with Handlebars.js, so I don't want to hide the splash screen until that process is finished.

    It seems like the splash screen is being hidden automatically whenever the deviceready event fires. I've triple-checked my iOS config.xml in Icenium (I'm using Mist since I'm on a Mac) and AutoHideSplashScreen is definitely set to false. I've tested on multiple devices, both iOS 7 and 6.1. Cordova version is 3.0.0.

    Does this sound like a bug, or am I overlooking something? Thanks so much for your help!
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Oct 2013 Link to this post

    Hi Aaron,

    First, thank you for the kind words - much appreciated!

    I've tested this feature on our default Kendo template and it seems to be working just fine i.e. the splashscreen never disappears until you invoke .hide(). So it is not a bug on our end and I suspect it is something specific with your project. Can you confirm that your exact app imported as is in Phonegap does show the splashscreen?

    Also we see that according to Cordova SplashScreen API, there is an iOS quirk that requires you to use timeout, although this was not necessary in our test, you could give that a try.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Aaron
    Aaron avatar
    2 posts
    Member since:
    Sep 2013

    Posted 04 Oct 2013 Link to this post

    Hi Steve,

    Thanks for the feedback. Would you mind also testing the default "Blank" template, as that's the one I'm using for this project?

    I also created a new Phonegap/Cordova project locally and pulled over the relevant files from my Icenium project, and the splashscreen is working perfectly there.

    Thanks for your help in looking into this!
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Oct 2013 Link to this post

    Hello Aaron,

    It seems in my initial tests I was targetting Cordova 2.7 by mistake, after testing on 3.0 I was able to reproduce the problem. A quick search in the Cordova issue tracker, shows that this is a known problem in v. 3.0 and that it has been resolved in Cordova 3.1.

    We already tested the fix locally and would apply it in our next release in mid November. Let me know if you can't wait for the fix and I would explain how to apply it manually with the current version.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  5. Plamen Ratchev
    Plamen Ratchev avatar
    15 posts
    Member since:
    May 2009

    Posted 09 Oct 2013 Link to this post

    Hi Steve,

    I have the same problem. Can you please explain how to fix it, I cannot wait until mid November as I have to release my app very soon.

    Thank you!

    Plamen Ratchev
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Oct 2013 Link to this post

    Hi Plamen,

    It is not a very pretty solution and I would recommend sticking to Cordova 2.7 if this is important feature for  your app and you're not using anything Cordova 3.0 specific. Anyway, here it is:
    1. Push your app to a git repository. Navigate to the .proj file inside the app folder, open it and delete org.apache.cordova.core.splashscreen from <CorePlugins>.
    2. Download the splashscreen core plugin from Cordova (https://github.com/apache/cordova-plugin-splashscreen). You can delete docs and test folders as they are not needed and you can also delete all platform specific stuff that Icenium does not support (i.e. everything except Android and iOS)
    3. Import this as Custom Plugin inside your Icenium app.

    That's it. Once you build your app, the AutoHideSplashScreen would be working as expected.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  7. Plamen Ratchev
    Plamen Ratchev avatar
    15 posts
    Member since:
    May 2009

    Posted 10 Oct 2013 Link to this post

    Thank you Steve!
  8. Plamen Ratchev
    Plamen Ratchev avatar
    15 posts
    Member since:
    May 2009

    Posted 06 Nov 2013 Link to this post

    Hi Steve,

    I just wanted to check if this problem was fixed in the new Icenium update that was just released. I upgraded and the problem seems to still exist.

    Thank you!

    Plamen Ratchev
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 06 Nov 2013 Link to this post

    Hi Plamen,

    The fix is in Cordova 3.1 and we're still targeting Cordova 3.0, so no, the fix is not yet available out of the box.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  10. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 07 Nov 2013 Link to this post

    Hi Plamen,

    As several other users have hit this problem we decided to update the splashscreen plugin for the upcoming hotfix next week. Still the solution I provided is completely working, do you have any problems?

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  11. Plamen Ratchev
    Plamen Ratchev avatar
    15 posts
    Member since:
    May 2009

    Posted 07 Nov 2013 Link to this post

    Hi Steve,

    Yes, the solution you provided works, but I prefer to get the native fix on the long run.

    Thank you,

    Plamen Ratchev
  12. Plamen Ratchev
    Plamen Ratchev avatar
    15 posts
    Member since:
    May 2009

    Posted 22 Nov 2013 Link to this post

    Hi Steve,

    You noted that the hotfix will be available last week, but I still see the issue. Do I have to do anything on my side, or maybe the hotfix was not deployed as scheduled?

    Regards,

    Plamen Ratchev
  13. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Nov 2013 Link to this post

    Hello Plamen,

    Correct, not deployed as scheduled. Other urgent things came out and we had to leave this one out. It would be updated for the new release in mid December at latest!

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  14. Plamen Ratchev
    Plamen Ratchev avatar
    15 posts
    Member since:
    May 2009

    Posted 22 Nov 2013 Link to this post

    Thank you Steve!
Back to Top