capacitor-mobilecron 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -260,10 +260,11 @@ public class MobileCronPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
260
260
|
|
|
261
261
|
// ── E2E test hooks (not for production use) ───────────────────────────────
|
|
262
262
|
|
|
263
|
-
/// Calls NativeJobEvaluator.evaluate() directly
|
|
263
|
+
/// Calls NativeJobEvaluator.evaluate() directly, fires pending events, and
|
|
264
|
+
/// emits nativeWake (mirrors what BGTaskManager does on real background wake).
|
|
264
265
|
@objc func testNativeEvaluate(_ call: CAPPluginCall) {
|
|
265
266
|
let events = NativeJobEvaluator.evaluate(source: "test_trigger")
|
|
266
|
-
|
|
267
|
+
handleBackgroundWake(source: "test_trigger")
|
|
267
268
|
call.resolve(["firedCount": events.count])
|
|
268
269
|
}
|
|
269
270
|
|
package/package.json
CHANGED