I have a PowerApp for which I am trying to build offline capabilities.Below is a scenario which I am trying to achieve.Need suggestions.
I have timer API method which basically executes when I start and stop a timer method in the app. In ONLINE mode it works fine, but I want to allow users to start/stop a timer in OFFLINE mode as well. When the app is in offline mode, the API call fails as it is not connected . how do i bypass that situation and start and stop a timer in offline mode . Is there a way to achieve that ? Here is my API definition.
ClearCollect(colTimers, Time360.timerStartStop({_timerContract:{
Comment:txtDBTimerDescription.Text,
Running:"Yes",
IsPinned:"No",
CustomerAccount:tsLineCust.CustNum,
ProjectId:tsLineProj.ProjectId,
ProjectCategoryId:tsLineCat.CategoryId,
ParentId:0,
RecordId:0,
ProjectDataAreaId:If(Len(tsLineCust.DataAreaId) > 0, tsLineCust.DataAreaId, If(Len(tsLineProj.DataAreaId) > 0, tsLineProj.DataAreaId))
}}));