cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Offline (LoadData) mode Not working if i exit the app.

Hello everyone,

 

I'm facing a problem.

I Use powerApps to build an app which includes offline mode.

I use the following framents of code :

 

On form Submit:
if(!
Connection.Connected;

SaveData(
NonSynchro;
"IrritantsNonSynchro"
)

;

SubmitForm.....

)

 

App Start :

LoadData(
NonSynchro;
"IrritantsNonSynchro";
true
)

 

When i am in offline mode my collection : NonSynchro is not empty. I display te number of items.

I Save Data as explained then if i close the app and reopen it the loaddata in the OnStart gives me an empty colllection.

 

The version of my powerapps client is : 3.20101.19

My android version is 10.

 

Thank you for your time.

 

Bye

 

3 REPLIES 3
Highlighted
Responsive Resident
Responsive Resident

Re: Offline (LoadData) mode Not working if i exit the app.

Hi @RemiDevPoint 

 

This should actually work. The only problem could be the device you're testing it on.

 

Save/Load data only works for devices that can download the entire app to your local storage. E.g. mobile devices or with your PowerApps Windows app.

 

In a browser, for example, it won't work. If you've been testing it with your browser, you have your answer.

 

Kind regards,


Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.

Highlighted
Regular Visitor

Re: Offline (LoadData) mode Not working if i exit the app.

Hello isabasu.

Thank you for the reply. 

I test it with the powerapps client not the browser. 

I Opened it when the service was online. 

And after i launched it in plane mode (the app was the only one dispayed on the service in offline mode because this was the only i launched).

Everything seems to append well when i savedata.

But when i close and restart my app loaddata does not brings me any rows.

Bye remi.

Highlighted
Responsive Resident
Responsive Resident

Re: Offline (LoadData) mode Not working if i exit the app.

Could you try it on an android/iOS device as well?

Also, try to use a different collection name for LoadData() to troubleshoot.


Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,390)