Hi @patrickfraser2 ,
Do you want to build an offline and online app?
Could you tell me what problem that you have when building this app?
I need to know where should I start to help you.
Usually we build an offline and online app in this way:
1)set the first screen's OnVisible:
If(Connection.Connected,
ClearCollect(LocalTweets, Twitter.SearchTweet("PowerApps", {maxResults: 100}));
UpdateContext({statusText: "Online data"})
,
LoadData(LocalTweets, "Tweets", true);
UpdateContext({statusText: "Local data"})
);
LoadData(LocalTweetsToPost, "LocalTweetsToPost", true);
SaveData(LocalTweets, "Tweets")
//justify whether you are connected. If yes, you will load data to collection. If no, you will load data from local file and save data to local file.
2)All the button's OnSelect to update data source should be like:
If (Connection.Connected,
Twitter.Tweet("", {tweetText: NewTweetTextBox.Text}),
Collect(LocalTweetsToPost, {tweetText: NewTweetTextBox.Text});
SaveData(LocalTweetsToPost, "LocalTweetsToPost")
);
UpdateContext({resetNewTweet: true});
UpdateContext({resetNewTweet: false})
//if you are connected, you will update data source. If you are not connected, you will save data to local.
To sum up, when the app starts and updates data, you will save/load data to different places based on your status.
When connected, load/save to collection and data source. When not connected, load/save to local.
I suggest you learn these two functions: SavaData/LoadData:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-savedata-loaddata
These two docs both describe in details about how to create this kind of app:
https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps
Best regards,