Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: update freq in native code

Prateek Sunal8003b8a6b888
diff --git a/mobile/ios/Runner/AppDelegate.swift b/mobile/ios/Runner/AppDelegate.swift
index 886283c9a2..cbf287bc52 100644
--- a/mobile/ios/Runner/AppDelegate.swift
+++ b/mobile/ios/Runner/AppDelegate.swift
@@ -19,10 +19,11 @@ import workmanager
WorkmanagerPlugin.setPluginRegistrantCallback { registry in
GeneratedPluginRegistrant.register(with: registry)
}
+ var freqInMinutes = 30 * 60
// Register a periodic task in iOS 13+
WorkmanagerPlugin.registerPeriodicTask(
withIdentifier: "io.ente.frame.iOSBackgroundAppRefresh",
- frequency: NSNumber(value: 60 * 60))
+ frequency: NSNumber(value: freqInMinutes))
// Retrieve the link from parameters
if let url = AppLinks.shared.getLink(launchOptions: launchOptions) {