Syncing PDF annotations in React Native
By default, Nutrient Instant automatically synchronizes annotations with your Document Engine instance in real time. This is configurable, and you can instead choose for it to sync manually when your app requests it.
Using a network, especially a cellular network, is one of the most energy-intensive tasks on mobile devices. While we do our best to minimize the energy impact of Instant, it can be reduced further by disabling listening for changes from the server or by syncing less often after local changes are made.
Syncing after making local changes and listening for server changes can be configured separately. However, syncing always sends all local changes and fetches all changes from the server. It isn’t possible to fetch remote changes without pushing local changes or to push local changes without fetching remote changes.
Automatic syncing
By default, when you show a document managed by Instant in an InstantPdfFragment on Android and an InstantViewController on iOS , real-time syncing of annotations is fully automatic: Instant will push local changes to the server as they happen and listen for changes from the server.
Instant uses the network efficiently by coalescing changes with a one-second delay. You can reduce energy consumption at the cost of less immediate syncing by using Nutrient.setDelayForSyncingLocalChanges to increase the delay.