cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tejaspatel1982
Level: Powered On

when I lose internet the application freezes

We have implemented load data and save data to handle offline scenario. this will not work in some cases like. when you click on submit button at that time you can check if internet is there or not and based on internet connectivity you store data locally or online.

 

but what about this case: when you press submit button at that time internet is there and you start transferring the data and immediately internet goes down. here app gets freezeing how to deal with such case? how to handle such scenario?

 

Thank you,

Tejas

3 REPLIES 3
PowerApps Staff HemantG
PowerApps Staff

Re: when I lose internet the application freezes

Is it for PCF custom controls ? You need to handle the offline disconnections in code for example if you are using HttpClient add a try catch and handle exception. Also 3rd party libraries like offline.js can be used which can capture the AJAX request and replay in case of disconnecion. Transactional  behaviour of the data upload might also need validation on server. 

 

Hemant 

tejaspatel1982
Level: Powered On

Re: when I lose internet the application freezes

I am not sure you are talking about PowerApps? is so then do you have any sample for this?

PowerApps Staff HemantG
PowerApps Staff

Re: when I lose internet the application freezes

this is for valid if you are using the pro-dev PCF capabilities ie writing TypeScrupt/JavaScript code. 

 

If thats not the case, it would help if you can attach a gif/screen shot so that I can repath the thread to appropriate place.

 

Hemant 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,762)