更新依赖项版本,优化后台任务管理器,添加后台任务自动启动功能,调整后台获取配置,移除冗余代码

This commit is contained in:
richarjiang
2025-09-05 16:52:00 +08:00
parent 8d71d751d6
commit 6af86800f2
6 changed files with 428 additions and 541 deletions

View File

@@ -1,6 +1,7 @@
import Expo
import React
import ReactAppDependencyProvider
import TSBackgroundFetch
@UIApplicationMain
public class AppDelegate: ExpoAppDelegate {
@@ -21,6 +22,8 @@ public class AppDelegate: ExpoAppDelegate {
reactNativeFactory = factory
bindReactNativeFactory(factory)
TSBackgroundFetch.sharedInstance().didFinishLaunching();
#if os(iOS) || os(tvOS)
window = UIWindow(frame: UIScreen.main.bounds)
factory.startReactNative(

View File

@@ -4,7 +4,6 @@
<dict>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.expo.modules.backgroundtask.processing</string>
<string>com.anonymous.digitalpilates.backgroundfetch</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>