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
pui.onoffline and reconnection
-
- 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
Bruno,
I'm looking into how this event should work. I'll let you know what I find out about this.
Thank you,
Scott
I'm looking into how this event should work. I'll let you know what I find out about this.
Thank you,
Scott
Re: pui.onoffline and reconnection
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
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
-
- 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
Scott,
Thank you for your time. It's not the reply I was hoping to read, but I'll deal with it !
Bruno
Thank you for your time. It's not the reply I was hoping to read, but I'll deal with it !
Bruno
Who is online
Users browsing this forum: No registered users and 0 guests