Repository navigation
Fix scheduled SMS delayed delivery and missing dispatches (solves #35) - #39
Merged
mirarr-app merged 2 commits intoNov 22, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Solves #35.
Fixes an issue where messages scheduled for a specific time were delivered late (minutes to hours), never sent until the app was reopened or "Send now" was tapped, or remained indefinitely stuck in the "Scheduled" state. Also bumps version to
1.3.18(versionCode = 32).Root Cause
USE_EXACT_ALARMon Android 13+ and falling back toalarmManager.set(...)instead ofsetAndAllowWhileIdle(...)when exact alarms were restricted, alarms were batched and deferred to Doze maintenance windows.PowerManager.PARTIAL_WAKE_LOCK. When the device was asleep, the CPU suspended while awaiting carrier radio ACK (up to 20s), halting dispatch.% 100000request codes, risking collisions, whilecancel()usedFLAG_NO_CREATEwhich failed if not cached.ChatViewModelwas not deduplicating manual "Send now" triggers against in-flight dispatches.Key Changes
1.3.18(versionCode32) acrossapp/build.gradle.kts,metadata/com.miss.ga.yml, and added fastlane changelogs for English and Persian.USE_EXACT_ALARMinAndroidManifest.xmland registered fast boot, time-change, and exact alarm permission change broadcast receivers.PARTIAL_WAKE_LOCKsafely released infinally.setAndAllowWhileIdlefor fallback alarm paths.misga://scheduled_sms/{id}) and masked 31-bit request codes.isDispatchingchecks to prevent duplicate sends.onCreateandonResume.ScheduledMessagesBanner.rememberfrom exact alarm check inScheduleMessageDialogso permission changes from settings reflect immediately.ScheduledMessageTestfor overdue filtering, boundary conditions, request code & URI uniqueness, and fast-boot action constants.Verification
./gradlew test --rerun-tasks(all 24 tasks passed cleanly)../gradlew assembleDebug.