android-people icon indicating copy to clipboard operation
android-people copied to clipboard

Using from a foreground service?

Open catellie opened this issue 5 years ago • 0 comments

I've tried to adapt this code for use in a foreground service. That is, instead of:

notificationManager.notify(chat.contact.id.toInt(), builder.build())

... I would like to do:

startForeground(NOTIFICATION_ID, builder.build())

However, I've been unsuccessful in making it work (the equivalent code works fine in Android 10 with Bubbles turned on in Dev Settings). Are there further things needed to make this work is this a known limitation that no longer should work? Or is it just a bug in the beta?

catellie avatar Jun 24 '20 17:06 catellie