As reported couple of months ago, LoadData / SaveData did not work on Android Phone (never tested on iPhone) but work on Windows 10, and today, I re-write to test again a simple userid table but still fail on Android Phone.
- Open Apps on Android Phone (with Connection.Connected), so that I can cache (with SaveData) for the FIRST TIME.
- Then, I quit the apps, off the internet connection, and reload the apps
(a) in Win 10, it works and started to load (after about 10 seconds, a small data, 3 rows)
(b) in Android phone, nothing showed up
When I connect internet again, everything works as normal.
So, I can confirmed that LoadData and SaveData are NOT FIXED after several months.
I wish PG can test on a Small Data on ANDROID PHONE only to reproduce.
Best wishes and Merry Xmas.
Which version is your PowerApps Mobile app?
Which OS version is your Android phone?
Further, could you please show a bit more about your LoadData() function and SaveData() function?
I have made a test on my side and don’t have the issue that you mentioned. When I am online, the PowerApps app display as below:
When I am offline, the PowerApps app display well as below:
My Android phone OS version is 7.1.1 and My PowerApps Mobile app version is 2.0.681. The latest version of PowerApps Mobile app is 2.0.733, you could consider take a try to update your PowerApps Mobile app to the latest version and check if the issue is solved.
In addition, please check and see if the following article would help in your scenario:
Thanks for quick response.
I am using 2.0.733 (Android 6.0).
[I started this new version since testing from Hockey Apps]
The code is pretty straighforward
As I mentioned, PowerApps on Win 10 - Works perfectly but nt Android.
For Android Phone, in fact, when I Opened the Apps with Internet.Connected,
the ClearCollect works and display MyID data into a Gallery (I purposely added in to check, using MyID), and then it save into MyID. Subsequently, I turned off WiFi, Mobile data, and continue to use without problem and MyID still showed.
BUT, When I quit the apps and open again, then this DID NOT LoadData from MyID and in fact it should as it was already Saved (as of the last statement in the above coding function).
So, would you tried to repeat my way?
- Open apps with Connection,Connected
- Off the connection
- Quit the apps
- Open again...if you can see the DATA in Androidm that means I am totally in trouble with my phone / code.
(just curious, it works in Win 10 Apps....)
Just for info, I tested the SaveData and LoadData functions on my Android device and it works for me.
I'm using a slightly older version - v2.0.640 (Android 5.0)
The source data that I used was a large spreadsheet, and I was able to save and load 500 records with these functions.
Supposing you add a new screen to your app and add a new label with the formula:
If you navigate to this screen after calling the LoadData function while offline, do you get a non 0 row count?
This might help determine whether this is a screen/gallery display problem on Android, rather than a problem with the LoadData function.
Hope you find a solution to your problem!
I'm curoius about the use of the Connection.Connected. We've had another issue reported where the Connection status isn't working in some scenarios on Android. We're finding it hard to reproduce however. Can you please let me know the following so that I might have a better idea if this is related.
Can also confirm that a simple "Save Data", "Load Data" doesnt work on the PowerApps Android client (3.18043.21) on my Galaxy S8 (Android 8). Same code executes flawlessly on my iPad and iPhone.
It "appears" as if it is the Save Data portion that is failing (and therefreo nothing to load in teh load data command)....Android permissioning perhaps??
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.