Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27521] Android: Proxy more NotificationManager functions

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid-8
ReporterEmily Feder
AssigneeUnknown
Created2019-10-15T14:35:09.000+0000
Updated2019-11-06T16:54:22.000+0000

Description

I would like to be able to access android's [NotificationManager.deleteNotificationChannel](https://developer.android.com/reference/android/app/NotificationManager#deleteNotificationChannel(java.lang.String)),[NotificationManager.deleteNotificationChannelGroup](https://developer.android.com/reference/android/app/NotificationManager#deleteNotificationChannelGroup(java.lang.String)), and [NotificationManager.getNotificationChannels](https://developer.android.com/reference/android/app/NotificationManager#getNotificationChannels()) via the titanium api. I need the deleteNotificationChannel function to be able to implement the solution to [this issue](https://monzo.com/blog/2019/05/28/fixing-notifications-on-android).

Comments

  1. Sharif AbuDarda 2019-11-03

    Hello [~emilyafeder@gmail.com], Thanks for the ticket. Our engineers will look into it. Can you provide a PR on this? Thanks.
  2. Emily Feder 2019-11-04

    I don't have a PR for the change. I guess if it's not a priority for appcelerator to work on, I could take a look at making a contribution. I have never worked on the Titanium code base -- perhaps if you could point me to resources on how to do so?
  3. Michael Gangolf 2019-11-04

    [~emilyafeder@gmail.com] have a look at https://github.com/appcelerator/titanium_mobile/blob/754020ff2f97e0f3f8390e0f46bc631f4afa8c5a/android/modules/android/src/java/ti/modules/titanium/android/notificationmanager/NotificationManagerModule.java#L113 you could copy that and adopt it to the delete part. To build the SDK you can have a look here: https://github.com/appcelerator/titanium_mobile#building-locally
  4. Emily Feder 2019-11-06

    Thanks, that's very helpful.

JSON Source