james_d
@james_d
Posts made by 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
-
RE: Walktrough
The code/pages is as followed:
- Welcome message
- Language switcher
- Ask for gps location (only IOs)
- Ask for push notification (only Ios)
- 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; }
-
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 pageDo you got any suggestions for that?
thanks!
-
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-IllustrationsBut 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?