iPhone app hangs on splash screen, how to debug?

11 posts, 0 answers
  1. Jurgen
    Jurgen avatar
    5 posts
    Member since:
    Dec 2013

    Posted 25 Feb 2014 Link to this post

    I've built an app with the Windows client, and all is working fine for Android. But iPhone is giving me some troubles. It isn't going further than the splash screen.
    I've connected an iPhone to the AppBuilder and the app is deployed to the device, but when running the app, the Web Inspector isn't doing anything.
    So, how can I debug it and figure out what is going wrong? Or, what are the possible causes why the app is hanging on the splash screen?
  2. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 26 Feb 2014 Link to this post

    Hi Jurgen,

    Since any number of issues might be causing your app to hang on the splash screen, would you mind sharing some more details such as your onDeviceReady event and any SplashScreen settings, or even a jsFiddle sample? Ideally, we could take a look at your project with your permission, if you share the email address for your Telerik Platform account and the name of the project.

    About debugging the app - after you launch the debugging tools, you should be able to set breakpoints and explore your code from the Web Inspector. The debug tools, when running on device, are identical to the ones for the simulator. Have you been able to launch the Web Inspector from within the Windows client as per the instructions in the docs? (This video shows how to launch the WebInspector. After the deployment, somewhere around 0:27, I am launching the app on device which makes Web Inspector expandable). You have probably been able to get debugging going, but I am enclosing this information just in case someone else is also keeping an eye on this discussion.

    Thanks for your assistance! 

    Regards,
    Iva Koevska
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  3. Jurgen
    Jurgen avatar
    5 posts
    Member since:
    Dec 2013

    Posted 26 Feb 2014 in reply to Iva Koevska Link to this post

    Hello, 

    I have followed the docs and in the video, you get an arrow before the "Web Inspector"-label. I have not.

    You may look into the project (how do I send my mail address to you?).

    Kind regards,
    Jurgen
  4. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 27 Feb 2014 Link to this post

    Hello Jurgen,

    When the WebInspector does not become expandable, this is usually an indication that debugging on device is not actually working.

    There is an array of reasons for that:
    • The application package is not built with a development provisioning profile. This is the most common problem especially when building and deploying straight to device. If you have multiple provisioning profiles and certificates, the Windows client might be picking an Ad Hoc one. To ensure that you are using a development provisioning profile, set it up in the Project Properties.
    • The app is not built in Debug mode
    • You haven't started the app on the device. (Since you've indicated that the WebInspector is not doing anything while running the app, in your case, this would not be the issue.)

    Would you mind double-checking if these requirements are met? Debugging on device might be a very demanding and tricky task in terms of getting the prerequisites right.

    If you are still unable to debug your issue, we'll further discuss how to assist you. Thank you for your time and patience! 

    Regards,
    Iva Koevska
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  5. Jurgen
    Jurgen avatar
    5 posts
    Member since:
    Dec 2013

    Posted 27 Feb 2014 in reply to Iva Koevska Link to this post

    Hello,

    I think I have everything in the right place.
    • The application package is not built with a development provisioning profile. This is the most common problem especially when building and deploying straight to device. If you have multiple provisioning profiles and certificates, the Windows client might be picking an Ad Hoc one. To ensure that you are using a development provisioning profile, set it up in the Project Properties.
      iOs Development provisoning Certificate selection
    • The app is not built in Debug mode. 
      Debug mode is on
    • You haven't started the app on the device. (Since you've indicated that the WebInspector is not doing anything while running the app, in your case, this would not be the issue.)
      App is started, phone is connected.


  6. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 03 Mar 2014 Link to this post

    Hi Jurgen,

    Thanks for your patience and for verifying all the necessary prerequisites.

    The problem with not getting debugging on device going might be the fact that you're not going past the splash screen and no web views are actually being loaded. It would be great if we could take a look at your project and attempt to identify the issue.

    I can suggest a few courses of actions, let me know which one is your preferred one.

    • Continue this conversation in public. This will require you to post here both a project name and email address you're using for your account, in case it's different than the one you're using here. Alternatively, you can upload a copy of your project on the internet and post a link to it here.
    • Convert this conversation to a private one. You will still have to post a project name and email address (after I do the conversion) but these will not be available in public. However, this approach will hide all information that has already been posted here and it might be useful to other users tackling debugging on device.
    • Submit another support request for the Telerik Platform since you have active support for it. This would be the best way to go since the information here will remain public and accessible to other users. You will also be able to attach a copy of your project privately in the support request. If you decide to go with this approach, please, post a link to this thread for tracking purposes.

    Let me know how you want to handle this. Thanks!

    Regards,
    Iva Koevska
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  7. Jurgen
    Jurgen avatar
    5 posts
    Member since:
    Dec 2013

    Posted 03 Mar 2014 in reply to Iva Koevska Link to this post

    Hi, I'don't know where I can do the third option. I'm connected with the same account.
    And it says: "Your license has expired or does not include dedicated support. Please visit Renewals and Upgrades or contact your license holder."
  8. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 04 Mar 2014 Link to this post

    Hi Jurgen,

    It seems that due to your license type you will not be able to submit a support ticket. However, you can submit your inquiry as a general feedback here. Please, do so. This will open a private thread in which you can attach files (a copy of your project and any logs, screenshots, or videos) and share the details of your login and project name.

    Once you submit the general feedback request, please, update this thread including the ID of the general feedback request. I will make sure that it is assigned to our support team for further investigation.

    Once we have your issue figured out, I will make sure to update this current thread so that other users can benefit from the solution. Once again, thank you for your time and patience.

    Regards,
    Iva Koevska
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  9. Jurgen
    Jurgen avatar
    5 posts
    Member since:
    Dec 2013

    Posted 04 Mar 2014 in reply to Iva Koevska Link to this post

    Hello,

    ID = 794203
  10. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 04 Mar 2014 Link to this post

    Hello Jurgen,

    Thank you for the assistance! We will process your private support request and as soon as we have more information about the issue, we will update this thread as well.

    Regards,
    Iva Koevska
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  11. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 12 Mar 2014 Link to this post

    Hello,

    This is a follow up reply after investigating Jurgen's issue in a private thread.

    The web inspector was not firing due to the fact that the web view was not loaded since the app was not getting past the splash screen. To get the app past the splash screen, the onDeviceReady was modified to include only the splash screen handling and exclude all other app initialization code.

    function onDeviceReady() {
        setTimeout(function() {
        navigator.splashscreen.hide();
    }, 5000);
          
    }


    Regards,
    Iva Koevska
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!
Back to Top