Page 1 of 2

How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 5:59 am
by Walter Lee

Hi,

I am writing a medical mobile apps which my friend suggested to ask user to agree the standard disclaimer page first before they can go to the main screen. How to set up such a splash disclaimer page with two buttons -
1/ ok to continue to main screen
and
2/ do not agree and get out of this app ?

Hope the user can just need to answer this the very first time and then no more such later.

Walter


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 6:25 am
by Maryna Brodina

Hello! It might be just a Start screen with two buttons:
first button navigates to another screen on Click event, on second button run JS codenavigator.app.exitApp();/code to exit the app.


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 6:53 am
by Walter Lee6181771

Wow ! Thank you ! Marina !

related q -
1/ any way to store this acceptance so it will not ask in the future ?

2/ what JS or others will it be if I like to call another app from a button ?
e.g. a button to call another app B from a button of app A ?


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 11:23 am
by Kirit Vaghela

I created a splash screen having only image from assets. Now I want to navigate second page after some seconds. How can I do that.


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 11:30 am
by Maryna Brodina

Hi Kirit! You would need to use JS to set timeout.


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 11:30 am
by Maryna Brodina

I'll update.


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 1:20 pm
by Maryna Brodina

[quote:]any way to store this acceptance so it will not ask in the future ?[/quote] use localStorage to store
[quote:]what JS or others will it be if I like to call another app from a button ?
e.g. a button to call another app B from a button of app A ?
[/quote] see http://www.tricedesigns.com/2012/08/1...


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 7:24 pm
by Walter Lee6181771

Thank you ! I am very beginner in JS and others.
So, any more example on how to use the localStorage will help me a lot !

I am thinking to add
1/ events onLoad to see if localStorage var Accept=true or not ?
2/ if not, then display this disclaimer page to ask for Accept button or Quit button
3/ if user hits Accept button, then set Accept=true and goto main screen

right ?

Any JS code will help me this new beginner a lot !
Thank you!

Walter


How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 8:38 pm
by Anton Artyukh5836028

How to Set up a splash screen for user to agree the disclaimer page before going to main screen ?

Posted: Tue Aug 27, 2013 8:52 pm
by Anton Artyukh5836028

Documentation

You on the right way.