Moodle App - Synchronisierung: Unterschied zwischen den Versionen

Aus MoodleDocs
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Zeile 5: Zeile 5:
Wenn eine Aktivität, die Offline-Daten generieren kann, geöffnet wird, erfolgt eine Synchronisierung der Daten, wenn das Gerät sich mit dem Internet verbindet. Wenn Sie z.B. online sind und ein Wiki öffnen, werden alle Offline-Daten dieses Wikis synchronisiert.
Wenn eine Aktivität, die Offline-Daten generieren kann, geöffnet wird, erfolgt eine Synchronisierung der Daten, wenn das Gerät sich mit dem Internet verbindet. Wenn Sie z.B. online sind und ein Wiki öffnen, werden alle Offline-Daten dieses Wikis synchronisiert.


Furthermore, each activity type has an automatic synchronization process that runs regularly, usually every 10 minutes. Let's use wiki as an example. When the wiki synchronization process runs, it synchronizes all wikis that have offline data and haven't been synchronized in the last 5 minutes. This is to decrease the data usage of the app since the server might be down. This means that an activity could take up to 15 minutes to be synchronized in the worst case scenario. An example of the worst case scenario:
Des Weiteren gibt es für jede Aktivität einen automatischen Synchronisierungsprozess, der regelmäßig ausgeführt wird, normalerweise alle 10 Minuten.


# Time = 0. The wiki automatic sync process runs. Nothing to sync.
Nehmen wir als Beispiel ein Wiki. Wenn der Wiki-Synchronisierungsprozess läuft, werden alle Wiki-Aktivitäten synchronisiert, für die Offline-Daten vorliegen und die in den letzten 5 Minuten nicht synchronisiert wurden. Das geschieht, um die Datennutzung der App zu reduzieren. Das bedeutet, dass es im schlimmsten Fall 15 Minuten dauert, bis die Daten einer Aktivität synchronisiert sind.
# Time = 5 minutes and 1 second. The user opens a wiki with no offline data, so the synchronization is successful.
# Time = 5 minutes and a few seconds. The user generates some offline data for that wiki.
# Time = 10 minutes. The wiki automatic sync process runs again. The wiki has offline data, but it has been synchronized in less than 5 minutes (step 2), so it isn't synchronized again.
# Time = 20 minutes. The wiki automatic sync process runs again. Now the wiki is synchronized.


If an automatic synchronization runs when the device is offline, it will stop running until the device is online again. When the device is next online, all the automatic sync processes that were stopped will be run immediately, synchronizing the activities with offline data that weren't synchronized in the last 5 minutes. For example:
Beispiel für ein solches Wort-Case-Szenario:


# Forum sync process runs. Device is online, so it is executed.
# Zeit = 0. Der automatische Wiki-Synchronisierungsprozess wird ausgeführt. Nichts zu synchronisieren.
# Device goes offline.
# Zeit = 5 Minuten und 1 Sekunde. Ein Nutzer öffnet das Wiki, das aktuell keine Offline-Daten hat, es erfolgt eine Synchronisierung.
# Wiki sync process runs. Device is offline, so it stops being executed.
# Zeit = 5 Minuten und einige Sekunden. Der Nutzer generiert Offline-Daten für das Wiki.
# Device goes online.
# Zeit = 10 Minuten. Der automatische Wiki-Synchronisierungsprozess wird erneut ausgeführt. Das Wiki hat Offline-Daten, aber es wurde vor weniger als 5 Minuten (Schritt 2) synchronisiert, so dass keine erneute Synchronisierung erfolgt.
# Wiki sync process is executed since it was stopped. Forum isn't executed yet because it wasn't stopped, it will be executed after 10 minutes from step 1.
# Time = 20 Minuten. Der automatische Wiki-Synchronisierungsprozess wird erneut ausgeführt. Jetzt ist das Wiki synchronisiert.


Finally, in ''App Settings > Synchronization'' there is a setting "''Allow sync only when on Wi-Fi''". If this is enabled and the device is using a 3G/4G connection, the automatic sync processes won't be run; their execution will be delayed for 10 minutes until the device uses a Wi-Fi connection.
Wenn eine automatische Synchroniserung ausgeführt wird, während das Gerät offline ist, wird der Synchronisierungsprozess unterbrochen, bis das Gerät wieder online ist. Wenn das Gerät das nächste Mal online ist, werden alle unterbrochenen automatischen Ssofort ausgeführt und die Aktivitäten mit Offline-Daten synchronisert, die in den letzten 5 Muinuten nicht synchronisiert wurden.
 
Beispiel:
 
# Der Forum-Synchronisierungsprozess läuft. Das Gerät ist online, also wird der Prozess ausgeführt.
# Das Gerät geht offline.
# Der Wiki-Synchronisierungsprozess läuft. Das Gerät ist offline, also wird der Prozess abgebrochen.
# Das Gerät geht online.
# Der Wiki-Synchronisierungsprozess wird ausgeführt, da er unterbrochen wurde. Der Forum-Synchronisierungsprozess wird nicht ausgeführt, da er nicht unterbrochen wurde. Er wird das nächste Mal 10 Minuten nach Schritt 1 ausgeführt.
 
Unter ''App Settings > Synchronization'' there is a setting "''Allow sync only when on Wi-Fi''". If this is enabled and the device is using a 3G/4G connection, the automatic sync processes won't be run; their execution will be delayed for 10 minutes until the device uses a Wi-Fi connection.


Note that the automatic sync processes will only run if the app is alive; if the app is closed, the data won't be synchronized until it is started again. Also, in iOS the app needs to be in the foreground (active) in order to execute the sync processes; if it is put in background (minimized) the processes won't be executed until the app is in the foreground again.
Note that the automatic sync processes will only run if the app is alive; if the app is closed, the data won't be synchronized until it is started again. Also, in iOS the app needs to be in the foreground (active) in order to execute the sync processes; if it is put in background (minimized) the processes won't be executed until the app is in the foreground again.

Version vom 10. Juli 2019, 12:14 Uhr

Baustelle.png Diese Seite muss übersetzt werden.
Es kümmert sich jemand darum, aber du darfst auch gern selbst mithelfen! Wenn du mit deiner Arbeit fertig bist, dann entferne die Vorlage {{ÜbersetzenVergeben}} aus dem Artikel.
Danke für deine Mitarbeit!

Es gibt zwei Möglichkeiten, Daten zwischen der Moodle-Site und der Moodle App zu synchronisieren.

Automatische Synchronisierung

Wenn eine Aktivität, die Offline-Daten generieren kann, geöffnet wird, erfolgt eine Synchronisierung der Daten, wenn das Gerät sich mit dem Internet verbindet. Wenn Sie z.B. online sind und ein Wiki öffnen, werden alle Offline-Daten dieses Wikis synchronisiert.

Des Weiteren gibt es für jede Aktivität einen automatischen Synchronisierungsprozess, der regelmäßig ausgeführt wird, normalerweise alle 10 Minuten.

Nehmen wir als Beispiel ein Wiki. Wenn der Wiki-Synchronisierungsprozess läuft, werden alle Wiki-Aktivitäten synchronisiert, für die Offline-Daten vorliegen und die in den letzten 5 Minuten nicht synchronisiert wurden. Das geschieht, um die Datennutzung der App zu reduzieren. Das bedeutet, dass es im schlimmsten Fall 15 Minuten dauert, bis die Daten einer Aktivität synchronisiert sind.

Beispiel für ein solches Wort-Case-Szenario:

  1. Zeit = 0. Der automatische Wiki-Synchronisierungsprozess wird ausgeführt. Nichts zu synchronisieren.
  2. Zeit = 5 Minuten und 1 Sekunde. Ein Nutzer öffnet das Wiki, das aktuell keine Offline-Daten hat, es erfolgt eine Synchronisierung.
  3. Zeit = 5 Minuten und einige Sekunden. Der Nutzer generiert Offline-Daten für das Wiki.
  4. Zeit = 10 Minuten. Der automatische Wiki-Synchronisierungsprozess wird erneut ausgeführt. Das Wiki hat Offline-Daten, aber es wurde vor weniger als 5 Minuten (Schritt 2) synchronisiert, so dass keine erneute Synchronisierung erfolgt.
  5. Time = 20 Minuten. Der automatische Wiki-Synchronisierungsprozess wird erneut ausgeführt. Jetzt ist das Wiki synchronisiert.

Wenn eine automatische Synchroniserung ausgeführt wird, während das Gerät offline ist, wird der Synchronisierungsprozess unterbrochen, bis das Gerät wieder online ist. Wenn das Gerät das nächste Mal online ist, werden alle unterbrochenen automatischen Ssofort ausgeführt und die Aktivitäten mit Offline-Daten synchronisert, die in den letzten 5 Muinuten nicht synchronisiert wurden.

Beispiel:

  1. Der Forum-Synchronisierungsprozess läuft. Das Gerät ist online, also wird der Prozess ausgeführt.
  2. Das Gerät geht offline.
  3. Der Wiki-Synchronisierungsprozess läuft. Das Gerät ist offline, also wird der Prozess abgebrochen.
  4. Das Gerät geht online.
  5. Der Wiki-Synchronisierungsprozess wird ausgeführt, da er unterbrochen wurde. Der Forum-Synchronisierungsprozess wird nicht ausgeführt, da er nicht unterbrochen wurde. Er wird das nächste Mal 10 Minuten nach Schritt 1 ausgeführt.

Unter App Settings > Synchronization there is a setting "Allow sync only when on Wi-Fi". If this is enabled and the device is using a 3G/4G connection, the automatic sync processes won't be run; their execution will be delayed for 10 minutes until the device uses a Wi-Fi connection.

Note that the automatic sync processes will only run if the app is alive; if the app is closed, the data won't be synchronized until it is started again. Also, in iOS the app needs to be in the foreground (active) in order to execute the sync processes; if it is put in background (minimized) the processes won't be executed until the app is in the foreground again.

Manuelle Synchronisierung

Wenn Sie offline Daten generieren, zeigt die App Ihnen eine Nachricht an, dass Daten zu synchronisieren sind. Wenn Sie dann ein "Pull-to-Refresh" machen (mit dem Finger oben auf dem Display nach unten wischen), dann werden die Daten nur für die angezeigte Aktivität synchronisiert (nicht für ander Aktivitäten).

Sie können die Aktivität auch synchronisieren, indem Sie das Kontextmenü rechts oben öffnen und auf Synchronisieren klicken.

Wenn Sie also in einem Wiki ein "Pull-to-Refresh" machen, wird nur das Wiki synchronisiert. Wenn Sie außerhalb einer Aktivität ein "Pull-to-Refresh" machen (z.B. in einem Kursabschnitt), passiert gar nichts.

Unter App Einstellungen > Synchronisation zeigt die App alle Moodle-Sites an, die in der App gespeichert sind. Wenn Sie auf den Refresh-Button neben einer Sie klicken, werden alle Synchronisierungsprozesse sofort ausgeführt, d.h. alle Aktivitäten mit Offline-Daten, die in den letzten 5 Minuten nicht synchronisiert wurden, werden synchronisiert.