Auto redirect to page if hasn't action on screen


#1

i’m new to ionic, how to auto redirect to page if hasn’t action on screen ?
please help me. thanks


#2

You can use #setInterval see below code

var TaskAutoRefresh30 = setInterval(() => {
        clearInterval(TaskAutoRefresh30);
        this.navCtrl.push('YourPageWhereYouRedirect')
}, 30000);

#3

i want only redirect to page if i don’t have action on screen. if i click, tap, swipe… i don’t want auto redirect.
with your code default 30s auto redirect to page


#4

Hi, with your code, I tried to redirect to my tab 5. however it state that select is null any help? thabkyou.