Theres a feature in the docs to track upload and download progress. i want to create a loading screen that shows the download progress of the initial sync. Here’s the code in the docs:
useEffect(() => {
const progressNotificationCallback = (transferred, transferable) => {
// Do whatever with the values, set state, etc
};
realm.syncSession?.addProgressNotification(
Realm.ProgressDirection.Download,
Realm.ProgressMode.ReportIndefinitely,
progressNotificationCallback,
);
return () => realm.syncSession?.removeProgressNotification(progressNotificationCallback);
}, [ ]);
Pretty straight forward, but when i run this, nothing happens. I’ve read some forums from a few years ago saying this was a known issue, especially with the download feature, but wanted to know when this will be fixed