Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
wangxusq
Contributor III
Contributor III

How to reconnect in QS mashup

Hi all,

I created a mashup and intergrated with my mobile. 

 When I click the mobile button, then call java to get a ticket, then skip to the mashup page . But when  I  click the iphone home button ,then the mashup will run in the backgroud. when I reopen the mashup page , then connection lost.

So my clients want to make it reconnect. So how to achieve this goal?

Thanks.

Labels (1)
1 Reply
Aiham_Azmeh
Employee
Employee

Hi,
Unfortunately, with the capability API's, you can't keep a session, each time you lose your connection, a reconnect is needed and a new websocket is created -> new session.

(not sure if this is possible but...) You maybe able to listen to window.on('focus blur', ...) and try to reconnect.