gotev/android-upload-service

Question: Are Group Notifications supported?

oevad opened this issue · 1 comments

oevad commented

Hi: I tried reading through the wiki documentation for Notifications and the example app, and I am not sure if creating Group Notifications (https://developer.android.com/training/notify-user/group) are supported. Are they? If they are, do you mind pointing me in the right direction? (Sorry, I am only just a beginner in Android, so I may have missed something while looking over the code.)

Thanks for the making the Upload Service! It really helps coders like me!

gotev commented

Hi @oevad 😃 glad it's useful!
That feature is long supported in the lib, but it was missing in the wiki. Just added it 😉 Thank you for the report!

The namespace you configure at the startup of the library

/**
* Namespace with which Upload Service is going to operate. This must be set in application
* subclass onCreate method before anything else.
*/
@JvmStatic
var namespace: String? = null
private set
get() = if (field == null)
throw IllegalArgumentException("You have to set namespace to your app package name (context.packageName) in your Application subclass")
else
field

is also used as the group ID for your notifications: