Repository navigation
Bugfix: schedule local notifications without a delegate - #555
Conversation
add() returned without enqueueing work unless a delegate was set and willPresent included banner or alert. Scheduling no longer depends on that callback. NotificationWorker also uses a platform status icon when the app has neither a notification icon nor a launcher icon, instead of failing on resource id 0.
|
Thank you for your pull request and welcome to the Skip community. We require contributors to sign our contributor license agreement (CLA), and we don't seem to have the user(s) @shiaho777 on file. In order for us to review and merge your code, for each noted user please add your GitHub username to Skip's .clabot file |
|
@cla-bot recheck |
|
Yes. When neither Head is |
|
Thanks for addressing my previous comment! Unfortunately, the pipeline now fails because I think we could use |
|
The fallback now takes a Context from Head is |
|
Looks good! I think we can merge it once CI passes 😊👍🏻 |
(cherry picked from commit fb1c589)
UNUserNotificationCenter.addreturned without scheduling anything unless a delegate was set andwillPresentincluded.banneror.alert. On iOS,addschedules the notification either way, andwillPresentruns only when a notification fires while the app is in the foreground.Scheduling no longer consults the delegate.
NotificationWorkeralso used to callIconCompat.createWithResourcewith resource id 0 when the app had neitheric_notificationnoric_launcher, which failed the worker. It now falls back toandroid.R.drawable.stat_notify_chat.