ios-2 #2
Reference in New Issue
Block a user
Delete Branch "ios-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:
Additional Notes
Add any additional notes about the PR here.
Fixed scheduleDailyNotification to read parameters directly from CAPPluginCall (matching Android pattern) instead of looking for wrapped "options" object. Improved BGTaskScheduler error handling to clearly indicate simulator limitations. Changes: - Read parameters directly from call (call.getString("time"), etc.) instead of call.getObject("options") - Capacitor passes options object directly as call data - Improved BGTaskScheduler error handling with clear simulator limitation message - Added priority parameter extraction (was missing) - Error handling doesn't fail notification scheduling if background fetch fails BGTaskScheduler Simulator Limitation: - BGTaskSchedulerErrorDomain Code=1 (notPermitted) is expected on simulator - Background fetch scheduling fails on simulator but works on real devices - Notification scheduling still works correctly; prefetch won't run on simulator - Error messages now clearly indicate this is expected behavior Result: scheduleDailyNotification now works correctly. Notification scheduling verified working on simulator. Background fetch error is expected and documented. Files modified: - ios/Plugin/DailyNotificationPlugin.swift: Parameter reading fix, error handling - doc/directives/0003-iOS-Android-Parity-Directive.md: Implementation details documentedView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.