Hi,
I have an app that uses SaveData to stores a Collection to the device if the user saves while being Offline.
The problem is, my original formula with the App.OnStart works fine as it always did but I do get the warning that Navigate is not suggested in .OnStart use the StartScreen property instead for better performance.
So not doing anything this still works, if I have Offline data it navigates to the StartFromShutDown screen else it navigates to the Start Screen.
App.OnStart
Set(
CurrentUser,
User()
);
LoadData(
QKontrollfrågaResultat,
"KontrollfrågaResultat_3Save",
true
);
If(
CountRows(
Filter(
QKontrollfrågaResultat,
ConnectedSave = "Nej"
)
) <> 0,
Navigate(
StartFromShutDown,
ScreenTransition.Cover
), Navigate(Start))
But if I change it to this, according to this post https://powerapps.microsoft.com/en-us/blog/app-startscreen-a-new-declarative-alternative-to-navigate-in-app-onstart/
The result is I always get the Start screen, even if I have Offline Data stored it never goes to the StartFromShutDownScreen
(The Actual Start screen is named Start)
App.OnStart
Set(
CurrentUser,
User()
);
LoadData(
QKontrollfrågaResultat,
"KontrollfrågaResultat_3Save",
true
)
-------------------------------------------------------------------
App.StartScreen
If(
CountRows(
Filter(
QKontrollfrågaResultat,
ConnectedSave = "Nej"
)
) <> 0,
StartFromShutDown, Start)
Any idea why this isnt working?