fix(ios): resolve build errors and add missing configureNativeFetcher method

Fixed Swift compilation errors preventing iOS build:
- Added explicit self capture [self] in closures in DailyNotificationReactivationManager
- Removed invalid BGTaskScheduler.shared.registeredTaskIdentifiers API call
- Fixed initialization order in DailyNotificationModel (verifyEntities after container init)

Added missing configureNativeFetcher method to iOS plugin:
- Implemented method matching Android functionality
- Stores configuration in UserDefaults for persistence
- Registered method in pluginMethods array
- Supports both jwtToken and jwtSecret parameters for compatibility

This resolves the runtime error "configureNativeFetcher is not a function"
that was preventing the test app from configuring the plugin.
This commit is contained in:
Jose Olarte III
2025-12-11 16:44:18 +08:00
parent 332dfbad75
commit 1bfd87a0e4
10 changed files with 292 additions and 79 deletions

View File

@@ -259,7 +259,7 @@ class DailyNotificationBackgroundTaskTestHarness {
/// - ETag validation
/// - Content caching
/// - Error handling
class PrefetchOperation: Operation {
class PrefetchOperation: Operation, @unchecked Sendable {
var isFailed = false
private static let fetchLog = OSLog(subsystem: "com.timesafari.dailynotification", category: "fetch")