Official Content

Syntax

Synchronization.ResetOfflineDatabase()

Description

It returns the local database content of the offline App to its initial state. That means:

  • restoring the preloaded database if it exists, or
  • executing a Create Database in order to empty database tables.

This behavior is the same that happens when the Synchronization.Receive method returns the message Metadata error code received. Code: 2. In this case the database is automatically restored and a new Receive operation is performed.

Note: The method can only be used inside a Client-side Event

Scope

Objects Objects for Native Mobile applications development
Platforms Android, Apple iOS

Availability

As from GeneXus X Evolution 3 Upgrade 7

See also





Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant