A question about grouped push notifications in the background (FCM) - firebase-cloud-messaging

Can I send grouped push notifications in the background? like this . Based on my knowledge about front programming (mobile app), background cannot control with front so I have to group in the back side (server). This means I have to send push notifications from the back side grouping push notifications so that mobile can get push notifications grouped like the image I uploaded above. Are there additional options when I send notifications? Below is my code to send push messages to my device.

Related

Schedule many Push Notifications in React Naitve

I'm building an app where I'm using push notifications with help of Firebase Cloud Messaging and 'react-native-notifications' library. I managed to schedule a push notification in background.
Now I wonder, how can I schedule many push notifications (in background). Let's say, I have an array of strings and I want to make a push notification with a different string every day.
I know how I can make it with local notification but it means that the notification will not appear if the app is closed. Do you have an idea how it can be solved?
As I can see you managed to "show" a push notification when you are focused in the app.
If you want to send push notifications while your app is in the background you would need to use Firebase FCM.
Also if you need to send them in specific intervals I would recommend to use the Firebase callable functions to do so.

iOS 11 new notification center removes all delivered notifications after user make any action with one of them

I have an issue on iOS 11. All delivered notification automatically removing from notification tray after I select any action for one of them. This happens before my code start handling action. In iOS 10 everything is ok, all delivered notifications stay in delivered and disappear only notification where I proceed some action.
My app schedule reminders with custom action, 2 buttons Activate and Stop. User can receive many of them in one day, but its very important to keep already delivered notifications, because most of them is uniq and make different actions.
If it is iOS 11 new notification center behavior or known issue, where I can read about this? Thanks a lot for help.
Minimum deployment target in my app is iOS10 and I use new UNNotificationRequest for scheduling local notifications.

How to add media play/pause button into push notification bar?

I successfully created an apple push notification. I am receiving audio URL via push notification. I want to add media play/pause button into notification bar (custom notification bar), which functionality is that upon getting audio notification the user is able to play/pause receiving audio without opening an app.
Is it possible in iOS? I've searched through many web documents, but found nothing. So, can anyone help me out with this concept?

Saving all push notifications data got for an app when app is in terminate or inactive state

I'm new to iOS development and currently i'm working on push notifications.I have a requirement where I will get push notifications for different functionalities in an app. When app is in terminate or inactive state all notifications will display in system notifications panel. When I tapped on particular notification remaining notifications data is lost. Is there any thing like we can store all push notifications data and when launching we can execute one by one.
No, not on iOS.
Apps like facebook do this by keeping the state of the push notification on there server. Thus allowing a client to fetch the alerts and show their read state.

Detect when a user clears notification from the notification center

My app needs to know if a user deletes/clears the apps notifications from the notification center using the clear button.
Is there either away to detect when the user removes the notification from the notification center or grab an array of notification on the notification center?
You (ie App) cannot interact with NotificationCenter, NotificationCenter interacts with the user. A user can choose not to receive any push-notifications.
http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html