Skip to content

One-time configure() for notification text - #31

Merged
dmurphy5 merged 1 commit into
dylan/v9-2-cleanupfrom
dylan/v9-3-configure
Sep 1, 2026
Merged

One-time configure() for notification text#31
dmurphy5 merged 1 commit into
dylan/v9-2-cleanupfrom
dylan/v9-3-configure

Conversation

@dmurphy5

@dmurphy5 dmurphy5 commented Aug 24, 2026

Copy link
Copy Markdown

Diana builds the same notification text object for each startUpload call. This PR moves that text to a one-time configure() call.

The library writes the configuration to SharedPreferences. Thus a worker that WorkManager relaunches with no JS running builds its notification with the same text. If the app never calls configure(), the library uses its default text. The per-upload android options decrease to one flag: noNotification.

A TODO in Diana's backgroundUploadUtils.ts suggested this change.

Built and reviewed with a multi-agent workflow: a six-dimension adversarial review. Every confirmed finding was fixed inside its slice.

🤖 Generated with Claude Code

@dmurphy5
dmurphy5 marked this pull request as ready for review August 25, 2026 17:21
@dmurphy5 dmurphy5 changed the title v9 3/7: one-time configure() for notification text One-time configure() for notification text Aug 25, 2026
@dmurphy5
dmurphy5 force-pushed the dylan/v9-3-configure branch from 005ce21 to 30f6636 Compare August 25, 2026 17:35
@dmurphy5
dmurphy5 marked this pull request as draft August 25, 2026 17:38
@dmurphy5
dmurphy5 marked this pull request as ready for review August 27, 2026 18:33
@dmurphy5
dmurphy5 requested a review from elliottkember August 27, 2026 18:33
Notification text and identity are library-wide, not per-upload. The new
configure() persists them natively (SharedPreferences) so a worker
relaunched by WorkManager with no JS running builds the notification with
the configured text; the library defaults apply when configure() was never
called. Per-upload android options reduce to noNotification, which is
behavioral — it decides foreground-service survival. configure() is a
native no-op on iOS, which has no library notification.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dmurphy5
dmurphy5 force-pushed the dylan/v9-3-configure branch from 30f6636 to b89c473 Compare August 28, 2026 16:49
@dmurphy5
dmurphy5 merged commit 5c5f0f5 into master Sep 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants