|
|
|
|
|
- Overview
- Implementation
- Necessary conditions
- Steps to follow
- Installing the replication server
- Defining the replication
- Programming the replication
Replication of mobile data (Android or iOS)
![HFSQL Classic HFSQL Classic](https://doc.windev.com/ext/images/us/HF.png?-2134303037) Available only with these kinds of connection
The Assisted Universal Replication is available in Android and iOS. This replication allows you to replicate data coming from different databases. Necessary conditions - The analysis must be shared between the WINDEV and WINDEV Mobile application (Android or iOS).
- The Master database must be an HFSQL database (Classic or Client/Server).
- The mobile database (Subscriber) must be an HFSQL Classic database.
- The structure of the database must be strictly identical on the two platforms.
Installing the replication server Reminders/Notes - IMPORTANT: The date and time time must be identical on the server and on the Android/iOS devices. The internal dates (the ones used by the replication in the HFSQL files) are in UTC.
- The setup package of the replication server is provided with WINDEV, WEBDEV and WINDEV Mobile. It is located in the "\Install\WDRServer" subdirectory of the IDE installation folder.
- If you own WEBDEV sites, the replication server and the WEBDEV Application Server can be installed on the same server.
Caution: Specific rights must be granted on the installation directory of replication server. Read rights and execution rights must be granted to the Internet user (IUSR_Computer_name account) on this directory (and in the sub-directories). Programming the replication In the Mobile application, the WLanguage functions must be used to perform the synchronization. The wizard for publishing the replication on the replication server provides a basic code:
ReplicOpen("replication name", "", "IP address", "login", "password")
ReplicSynchronize("replication name")
The following functions must be used:
| | ReplicInfo | Returns information about a replication. | ReplicInitialize | Initializes or reinitializes a replication defined by the replication editor (ReplicEdit). | ReplicOpen | Opens a replication in direct mode or with a replication server. | ReplicSynchronize | Synchronizes the data corresponding to a replication. |
Remark: In the code of the Android (or iOS) project, don't forget to configure the connection to the local database (HFSQL Classic file on the mobile device).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|