Sami
Posts: 0
Joined: Mon Jun 29, 2015 9:24 pm

How to avoid the startscreen ? (after being logged in)

Hello,

I wonder how can i avoid the startsreen after my users logged in :

1) Step one : Login (Startscreen = Login page)
2) Step 2 : I use the app through it's differents screens
3) Step 3 : Logout
4) Step 4 : I stop the app (erase from android background, not a pause)
5) Step 5 : I start the app (not a resume, but a real start)

I still have a token information in my localstorage so i can test it's value on the startscreen page on device ready or load or pageshow event to directly navigate to the landing page (if i'm already connected).

The problem is that the app show the startscreen for a short time (1 or 2 seconde)

Do you think it's possible to directly show the landing page when starting the app (according to the value of a localstorage variable or another kind of test) instead of showing the startscreen ?

Thank you,
Sami

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to avoid the startscreen ? (after being logged in)

Hello Sami,

Do you need redirect user to the last page? You can write page's name into storage variable on page show event and use this JS on the startscreen:

Apperyio.navigateTo(Apperyio.storage.lastPage.get());

here lastPage - storage variable with page's name

Sami
Posts: 0
Joined: Mon Jun 29, 2015 9:24 pm

How to avoid the startscreen ? (after being logged in)

No problem to access last page (or antoher page).

The problem when i start the mobile app:

If i redirect my startscreen to my "home page" whith the javascript Apperyio.navigateTo('Homepage'); on an event like
Device ready or page load or page show, it's always show my STARTSCREEN for a short time.

Why i need is to prevent the app to show the STARTSCREEN and directly access the 'Homepage'

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to avoid the startscreen ? (after being logged in)

Sami, you can use addition splash screen, which will be start page. It can be empty page, without any UI elements.
It happens because of app logic: there is can be only one start page.

Sami
Posts: 0
Joined: Mon Jun 29, 2015 9:24 pm

How to avoid the startscreen ? (after being logged in)

ok, thanks it's clear now (i redirect on start page "Page Show event" according to localStorage variable value)

Return to “Issues”