Skip to content

Conversation

@asyba
Copy link
Contributor

@asyba asyba commented Jan 12, 2026

iOS support for custom icon/vibe/color notifications.

The custom vibe pattern is not supported for the moment, it requires more work on the mobileapp side. FW should be fine.

PR mobileapp: coredevices/mobileapp#99

Tested on iOS only with Duo2.

if (notif_prefs) {
uint32_t pref_icon = attribute_get_uint32(&notif_prefs->attr_list, AttributeIdIcon, 0);
if (pref_icon != 0) {
if (pref_icon < 512) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please avoid hardcoding magic numbers ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@gmarull gmarull requested a review from jplexer January 13, 2026 14:47
Copy link
Member

@jplexer jplexer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than the magic number (that gerard pointed out) this looks good to me!

@asyba asyba force-pushed the ios-support-vibe-icon-color branch from 915910c to 572a60a Compare January 14, 2026 18:35
@asyba asyba requested a review from gmarull January 14, 2026 18:46

//! Maximum resource ID value that is considered a system resource.
//! Resource IDs below this threshold need SYSTEM_RESOURCE_FLAG set.
#define MAX_SYSTEM_RESOURCE_ID 512
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is that related to e.g.

#define MAX_RESOURCES_PER_STORE 256
#define MAX_RESOURCES_FOR_SYSTEM_STORE 768

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done added import from resource_storage_impl

Signed-off-by: Federico Bechini <federico.bechini@gmail.com>
@asyba asyba force-pushed the ios-support-vibe-icon-color branch from 572a60a to 9fa8568 Compare January 15, 2026 19:23
@gmarull gmarull merged commit 661db0a into coredevices:main Jan 15, 2026
30 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.

3 participants