Enhance Shared Alarm Notifications to Support Full Alarm Feature Set

Open
#939 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
dart
Domain
mobile

Research direction

The issue names no files, tests, or entry points, so first locate the shared alarm payload, its serialization and deserialization, the notification UI, and the acceptance flow. Compare these with locally created alarms and add coverage for configuration preservation, backward compatibility, and acceptance; done means shared alarms retain all supported properties without crashes or inconsistencies.

Written by the indexing model from the issue text.

Description

Summary

The current shared alarm functionality allows users to send and accept alarms via in-app notifications. While the core flow works, it only supports a limited subset of alarm properties. This issue aims to extend the shared alarm system to fully support all existing alarm features, ensuring parity between locally created and shared alarms.

Problem

Shared alarms currently do not preserve the complete configuration of an alarm. When a user accepts a shared alarm, certain properties are either lost or reset to default values. This leads to inconsistencies and a degraded user experience.

Examples of missing or partially supported features may include:

  • Custom ringtones
  • Snooze duration and behavior
  • Repeat schedules (custom days)
  • Labels or notes
  • Conditional triggers (e.g., weather, location)
  • Advanced alarm settings (dismiss challenges, etc.)

Expected Behavior

When an alarm is shared and accepted:

  • The recipient should receive the full alarm configuration.
  • The accepted alarm should be identical to the sender’s version.
  • All features supported by a regular alarm should also work for shared alarms.

Scope of Work

1. Data Model Updates
  • Extend the shared alarm payload to include all alarm properties.
  • Ensure serialization/deserialization supports new and existing fields.
  • Handle optional and future fields safely.
2. Notification Improvements
  • Update in-app notification UI to display relevant alarm details:

    • Time
    • Label
    • Repeat schedule
  • Ensure clarity when users receive a shared alarm.

3. Acceptance Flow
  • On accepting a shared alarm:

    • Reconstruct the alarm using the full configuration.
    • Avoid fallback to default values unless explicitly missing.
4. Backward Compatibility
  • Ensure previously shared alarms (with partial data) still work.
  • Add fallback handling for missing fields.
5. Feature Parity Validation
  • Verify that all alarm features behave identically for:

    • Locally created alarms
    • Shared and accepted alarms

Acceptance Criteria

  • Shared alarms preserve all supported properties.
  • No loss of configuration during share/accept flow.
  • UI clearly reflects shared alarm details.
  • Existing shared alarms continue to function without crashes or inconsistencies.
  • Tests cover serialization, deserialization, and acceptance logic.
Dominant language
Dart
Stars
115
Forks
227
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CCExtractor/ultimate_alarm_clock

All issues in CCExtractor/ultimate_alarm_clock

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.