Is there a way to display full chat message in push notifications?
Push notifications are only displaying first few characters of the message on both Android and iOS.
I bet you are using automatic push notifications that were enabled in admin panel. In order to customise push notifications itself you need to create and send pushes by yourself (just disable automatic ones in admin panel).
Here is example on how to do it: http://quickblox.com/developers/SimpleSample-messages_users-ios#Send_Push_Notifications_from_application_.28via_API.29
Related
Thanks to Firebase and FlutterFire, it's easy to send regular notifications from the servers to the users' devices. Those notifications include a title, a body, and an image url. But what about creating a no-that-simple notification, like Telegram's or WhatsApp's?
The simple question is to avoid sending a Notification from the server, and instead set the data field to the push message. But according to the FlutterFire documentation:
Data only messages are considered low priority by devices when your application is in the background or terminated, and will be ignored
So, it sounds like if we want to have a reliable delivery system, we should add a Notification to our push messages. But that notification is so simple. And, again, according to the documentation:
If your message is a notification one (includes a notification property), the Firebase SDKs will intercept this and display a visible notification to your users (assuming you have requested permission & the user has notifications enabled)
So: If I want a reliable system, I have to send Notifications, but I do it, I can't tell FlutterFire to use my custom notifications.
So the question is: how to show custom notifications with FlutterFire?
What I want to achieve is something like this:
I'm going to try setting the priority of the push notification.
You can however explicitly increase the priority by sending additional properties on the FCM payload:
On Android, set the priority field to high.
On Apple (iOS & macOS), set the content-available field to true.
On the server side code, it looks like:
message.setAndroidConfig(AndroidConfig.builder().setPriority(AndroidConfig.Priority.HIGH).build());
message.setApnsConfig(ApnsConfig.builder().setAps(Aps.builder().setContentAvailable(true).build()).build());
I would like to send marketing push notifications that can go to the Notification Center and topics (such as breaking news) that could be very frequent in my case only as badge (I.e not persistent and only visible once the user is in the home screen but not on lock screen)
So the typical permission request for notification includes
[.alert, .sound, .badge]
But there is no method or place that I can found to process the incoming notification and tell it to ONLY show as badge. Is it even possible to do so?
This is for Swift 4and iOS min sdk 10.
Send it as a silent notification, using the content-available key, and add a Notification Service Extension that updates the badge for you.
Can it possible to send push notification in Android TV through FCM?
If it is possible then how can we send push notification through FCM and how to show it in Android TV?
Yes, you can send notifications to Android TV, they will arrive to your service.
Now that since there is no system tray, there is no default UI got them, so you need to do that yourself, you can't use the default behavior and you can't use notification manager.
I think notification will appear just as recommendations and not as "notification".
One option will be using toasts or even a notification-android-tv
I'm using Firebase for push notification. Problem is i want to send push notification for some mobile phones but when i'm sending push notification it will send notification to all installed mobile app
You would need to get the mobile token and then store it somewhere on your server.
Then you can send to specific devices using the mobile token.
Just in case, i actually wrote a full guide on how to implement push notifications to your ionic app here
I have integrated the Microsoft App Center push notification feature in one of my UWP apps. Now I'd like to let the user decide if he wants to receive push notifications or not.
According to the SDK I can Enable or disable App Center Push at runtime, but this will not actually disable anything...
disabling the App Center Push in the SDK will NOT stop your application from receiving push notifications.
So, is there even anything I can do?
Can't seem to find the exact solution but would like to offer the following workarounds:
App Center allows to create Audiences to target different segments of app users when sending push notifications. You could create an Audience for those who don't want to receive push notifications and simply avoid them when sending the pushes.
There's a way to unregister for push notifications sent from Dev Center. If you used the later instead of App Center to send notifications your problem would be solved.
To get pushes from App Center it's required that an app calls AppCenter.Start(...) method on start-up. What if it doesn't?