pui.onoffline and reconnection

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Bruno97
Profound User
Posts: 61
Joined: Wed Jul 16, 2014 8:35 am
First Name: BRUNO
Last Name: HAJJAR
Company Name: APLUS INFORMATIQUE
Phone: 0664771058
Address 1: 9 AVENUE HENRI MATISSE
Address 2: IMMEUBLE MATISSE
City: NICE
Zip / Postal Code: 06200
Country: France
Contact:

pui.onoffline and reconnection

Post by Bruno97 »

Hi,

The pui.onoffline event fires when Profound UI cannot make a connection to the server.. ok !
Now, if in case of a loss of connection I display an offline screen like indicated here, how can I get back to my program when the connection is restored ?

Example : let's imagine 3 similar screen formats.
1) Display of an screen format 1.
2) Loss of connection, enter key is pressed.
3) pui.offline event fires and displays an offline version of screen format 2.
4) Connection is back !
5) Enter key is pressed.
6) What do I need here to display the online version of screen format 3 ??

It seems that the pui.onoffline is not triggered from an already offline screen, right ?

Thanks,
Bruno
Scott Wagers

Re: pui.onoffline and reconnection

Post by Scott Wagers »

Bruno,

I'm looking into how this event should work. I'll let you know what I find out about this.

Thank you,
Scott
Scott Wagers

Re: pui.onoffline and reconnection

Post by Scott Wagers »

Bruno,

I found out the once the offline mode is detected the app would need to be restarted after the connection is reestablished. Your offline screen can allow data to be stored on the device locally, then when the connection is available and the app is restarted the stored data can be resubmitted using the pui.submitResponse() function.

Thank you,
Scott
Bruno97
Profound User
Posts: 61
Joined: Wed Jul 16, 2014 8:35 am
First Name: BRUNO
Last Name: HAJJAR
Company Name: APLUS INFORMATIQUE
Phone: 0664771058
Address 1: 9 AVENUE HENRI MATISSE
Address 2: IMMEUBLE MATISSE
City: NICE
Zip / Postal Code: 06200
Country: France
Contact:

Re: pui.onoffline and reconnection

Post by Bruno97 »

Scott,

Thank you for your time. It's not the reply I was hoping to read, but I'll deal with it !

Bruno
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 7 guests