-
Notifications
You must be signed in to change notification settings - Fork 102
notifications: support iOS custom icon/vibe/color #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if (notif_prefs) { | ||
| uint32_t pref_icon = attribute_get_uint32(¬if_prefs->attr_list, AttributeIdIcon, 0); | ||
| if (pref_icon != 0) { | ||
| if (pref_icon < 512) { |
There was a problem hiding this comment.
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 ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
jplexer
left a comment
There was a problem hiding this 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!
915910c to
572a60a
Compare
|
|
||
| //! 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 |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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>
572a60a to
9fa8568
Compare
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.