facebook

Site Loader App Tutorial – Draft Posted

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #327852 Reply

    support-michael
    Keymaster

    Site Loader App – Tutorial

    Following is a DRAFT of a How-To article we are developing that demonstrates how to create a simple native site-loader app that many of you have requested. Here is the link to the Google Doc version of the article:

    https://docs.google.com/document/d/1gKK9Aliz9LXOoTfWiVSJ4Tp3kVa1zk_JZ7nJxfBM3wY/edit

    We will host the final version on the Learning Center.

    #338023 Reply

    xpert
    Member

    Dear wayne

    i have exactly build an iOS application as your Site Loader App – Tutorial.
    In the testcenter it works well. But, if i install the app on my mobile device, the website is not loading.

    i can see the start logo and after i get a blank site with iOS default background.

    I dont know whats wrong! Can You help me please?

    Thanks in advance
    xpert

    #338081 Reply

    xpert
    Member

    For Your information:

    I downloaded the Siteloader project files and installed on my iPhone 5 without modification. Unfortunately this is not working.:-(
    I would be very grateful if you could help me.

    Greez xpert

    #338138 Reply

    xpert
    Member

    Someone out there with same issue?

    #338171 Reply

    @xpert,

    In order to be sure that your redirect instruction is called when you just opened the app, you must wait for the Cordova Runtime Environment to be loaded and initialized by the app since the phoneui.showURL function uses ‘device’ variable that is being set by cordova on init, and docready happens before this. Please use next code to replace the phoneui.documentReadyHandler function:

    phoneui.documentReadyHandler = function() {
    
       document.addEventListener("deviceready", function() { 
          phoneui.showURL("http://google.com", "_self"); },
          false);
    }
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Site Loader App Tutorial – Draft Posted

You must be logged in to post in the forum log in