13
Views
3
Comments
How to show the feedback to the user when the device is offilne. ?
Application Type
Mobile

Hi friends

I am struck in movie assignment that how to provide the feedback to the user when the device is in offline and come to online feedback to user

Please provide me right details.

Rank: #658

Dear Anil 

The Use Case for your requirement will work as below -

  • Ensure you are using offline database in mobile phone.
  • When internet connection is not there, you may ask to enter feedback and it will get saved in the local database (Mobile Phone)
  • Remember you will need to save already those movies details in phone where you want to ask for feedback like the movie in watchlist, movie seen, or anything... 
  • Then as the connection back you will need to trigger the sync operation. 


You can use the component and it may solve the purpose: https://www.outsystems.com/forge/component-overview/1638/offline-data-sync-patterns

Please check this learning video for the better understanding: https://www.outsystems.com/training/courses/162/local-storage/?LearningPathId=1 

Also, look into this document for help: https://success.outsystems.com/Documentation/10/Developing_an_Application/Use_Data/Offline?_gl=1*1du83rl*_ga*MjAzNDM2NzE3Ni4xNjExMDMzNjQ0*_ga_ZD4DTMHWR2*MTYxMjQxMzg4OC4zMi4xLjE2MTI0MTQ0MTQuMzk


Many Thanks

mvp_badge
MVP
Rank: #19

Hi Anil Kumar,

Can you please tell us what exercise exactly (a link or title of the exercise as well as what training are you following would help a lot).

Regarding Offline/Online status detection, you can use OutSystems UI's GetNetworkStatus client action to check current status (documentation here).

There's also the OutSystems UI's NetworkStatusChange block you can add to your Layout to trigger an event when the Offline/Online status changes... check the same documentation location but a bit lower in the document for more info about it.

Hope these help!

Champion
Rank: #676

Hi Anil,

You can use "GetNetworkStatus" client action as shown below. This action will return boolean value depend on you network status and using that value you can call your feedback message.

Hope this will help you.

Regards,

-VS-