What happens if the same record is changed offline on two devices?
An edit conflict occurs. The rule for resolving it is set in advance: the latest edit wins, changes are merged field by field, or the user is shown both versions and asked to choose. Without such a rule data can be silently lost, so offline mode is designed together with synchronisation rather than added later.
More in the guide to building desktop programs.