Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. james_d
    J
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    james_d

    @james_d

    0
    Reputation
    5
    Posts
    1085
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    james_d Follow

    Posts made by james_d

    • RE: Walktrough

      @munsterlander

      http://www.cfuze.com/

      I used the contact form, with a dropbox link

      posted in Developer Corner
      J
      james_d
    • RE: Walktrough

      @munsterlander
      I used your code, but it did not work, still have the same problem.

      • You can see the welcome screen load
      • You can press the back button on android devices

      Btw i used your site and shared the full index.html (old file from yesterday) file with you since i don’t want to share it here. Am I doing something wrong?

      And thanks for the help you that you have provided so far

      posted in Developer Corner
      J
      james_d
    • RE: Walktrough

      The code/pages is as followed:

      1. Welcome message
      2. Language switcher
      3. Ask for gps location (only IOs)
      4. Ask for push notification (only Ios)
      5. Login with facebook
      switch (e.target.id)
       {
        case "page-welc":
         if(localStorage.getItem("page-welc") == "true" && localStorage.getItem("page4") == "true"){
          sNavigator.pushPage('mainHome.html', {animation : 'slide'});
         }
         else{
          localStorage.setItem("page-welc","true");
         }
         break;
        case "slideTwo":
         if(localStorage.getItem("slideTwo") == "true"){
          sNavigator.pushPage('page2.html', {animation : 'slide'});
         
         }else{
          localStorage.setItem("slideTwo","true");
         }
         break;
        case "page2":
         if(localStorage.getItem("page2") == "true"){
          sNavigator.pushPage('page3.html', {animation : 'slide'});
         }else{
          localStorage.setItem("page2","true");
         }
         break;
        case "page3":
         getCurrentLocation();
         if(localStorage.getItem("page3") == "true"){
          sNavigator.pushPage('page4.html', { animation : 'slide' } )
         }else{
          localStorage.setItem("page3","true");
         }
         break;
        case "page4":
         showPushNotificationDialog();
         if(localStorage.getItem("page4") == "true"){
          sNavigator.pushPage('mainHome.html', {animation : 'slide'});
         }else{
          localStorage.setItem("page4","true");
         }
         break;
        
       }
      
      posted in Developer Corner
      J
      james_d
    • RE: Walktrough

      First of all thank you, I have updated the script into the following:

      if(localStorage.getItem("page1") && localStorage.getItem("page4"))
          // perform walkthrough
      else
          // show one time screens
      

      I now i have the remaining "bugs"
      When you restart the application, you see the first screen for a few micro seconds.
      And on a android device when you press the “back” button it opens the the first walktrough page

      Do you got any suggestions for that?

      thanks!

      posted in Developer Corner
      J
      james_d
    • Walktrough

      Hi there,

      I have developed a Walktrough, that explains the app. And asks the right permissions on a iphone.
      example: https://dribbble.com/shots/2377487-Walkthrough-Illustrations

      But now i’m stuck at the following. I cant make the walktrough a one time thing that only shows when you install the app for the first time (or delete and re-install)

      I’m wondering is there a special code/script that i can use to create a walktrough that is only visible for first time user?

      posted in Developer Corner
      J
      james_d