Moodle App - Synchronisierung: Unterschied zwischen den Versionen

Aus MoodleDocs
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
{{Übersetzen}}{{Mobile}}
{{ÜbersetzenVergeben}}{{Mobile}}
Es gibt zwei Möglichkeiten, Daten zwischen der Moodle-Site und der Moodle App zu synchronisieren.
Es gibt zwei Möglichkeiten, Daten zwischen der Moodle-Site und der Moodle App zu synchronisieren.



Version vom 10. Juli 2019, 11:26 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.

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:

  1. Time = 0. The wiki automatic sync process runs. Nothing to sync.
  2. Time = 5 minutes and 1 second. The user opens a wiki with no offline data, so the synchronization is successful.
  3. Time = 5 minutes and a few seconds. The user generates some offline data for that wiki.
  4. 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.
  5. 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:

  1. Forum sync process runs. Device is online, so it is executed.
  2. Device goes offline.
  3. Wiki sync process runs. Device is offline, so it stops being executed.
  4. Device goes online.
  5. 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.

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.

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.