push-notification

How to display action buttons in Android notification when app is closed?

旧城冷巷雨未停 提交于 2020-08-26 09:13:43
问题 I have an android app. With notifications we have to display some action buttons. When the app is open we have the liberty to construct the notification and display the action buttons. But when app is closed the notification is received in notification tray in android. Where an app developer don't have control to build ui and action buttons. how can we show the buttons now ? How the data is formatted from server side so that when it is received in app , we can see action buttons 回答1: Based on

TIme-based Notification Architecture

六眼飞鱼酱① 提交于 2020-08-24 04:00:46
问题 I am designing a notification service (server). I can have two kinds of notifications: one which is delivered immediately, and the other is delivered at some time in the future. Is there a framework to handle the future notifications? I know I can write background worker who can for example sample the DB to look for a notification which needs to be sent, but I sure millions tried to solve this problem already and I'd prefer to reuse a proven solution. I didn't decide yet on the framework / DB

Notify user when a date is near

有些话、适合烂在心里 提交于 2020-08-22 19:15:30
问题 I'm currently working on an Android app that uses several Firebase functions. In the Realtime Database I have a date (the date a book is due) and I need to notify the user when that date is near (say, 1 day before the date in the database). Firebase cloud functions doesn't seem to have a specific trigger to do this, as nothing in the database is changing. I have seen this thread, which can set an alarm/notification for a future date, but I don't know how to stop it once it's been set; I need