I am developing a video call application with ionic 5
I would like to integrate a push notification like the one in the image when the user has an incoming call.
I tried OneSignal and FCM but didn't get good results.
do you have an API to recommend me?
Related
I have a flutter project which is running on iOS, Android and Web.
Now my challenge is to support push notification in Safari browser (webapp flutter).
I should be able to send custom payload in push notification.
I have gone though the below official documentation, but not getting how to pass custom payload with this approach and also there is NO CALLBACK defined to handle the push notification
https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html
Please help me out.
I'm trying out the push notifications for flutter apps, so I was wondering, is using FCM (Firebase Cloud Messaging) a must use for push notifications or not? Can I do this without FCM? NOTE:I tried using FCM and it works when the app is offline, in the background and foreground. I tried just the local push notifications with an alarm app and it only works while the app is in the background or foreground, not when the app is offline. I want to build a push notification system that sends data that works like this Some system -> My API -> My mobile App, can I work like that with a flutter app? Or do I need to go like this Some system -> My API -> FCM -> My mobile App. I know FCM is cross platform so is probably the best, but I just want to know my other options too.
Thanks in advance for your help and advice!
The OS shows push notifications, and it doesn't matter what kind of technology you're using to create the app. All you need is to get unique token and send it to the server, so it can send a notification to the phone. Thus, you need a service to do that for you. FCM is one of them. There are other options like OneSignal, Amazon AWS, Pusher and others.
I have an app built in flutter and I am sending certain notification via firebase messaging to a given device. When that device receives the notification, I would like that there will be an alarm a bit like when you receive a phone call. I would like the alarm to go on until the user do not open the notification.
Is there an easy way to achieve this in flutter? I s it even possible?
Thanks
How can I play the push notification more times in Ionic?
For example: When I received the push notification I would like to play the notification sound 3 times.
You could create a custom notification sound for your app, and pass the name of the file along with the push notification content.
This is possible in ionic and i had done it myself before.
Please refer the docs for custom notification sound and create your app's notification accordingly. That will be easier.
I am using One Signal push notifications in my ionic app. I want to show an alert when i receive a notification when my app is in background.
I tried using the platform pause and remuse functionality to check for background and foreground and then generate an alert when app was in background using ionic alert controller but was not able to produce the desired result.
I want a pop up dialog box like one in whastapp when u receive a message.
Can anyone please suggest a solution to this.
There is no way to achieve what you're trying to achieve through the use of OneSignal alone. The OneSignal plugin for Ionic has two calls to action:
handleNotificationReceived() & handleNotificationOpened()
The first one is called when the notification is received and the app is in the foreground.
And the second is called when the app is launched from the notification.
You would need some other service to record when notifications are sent to see if there were any when the app was launched by itself. If you use OneSignal's REST API to send notifications yourself, you can record when a notification is sent, and then when the app is launched by itself, you can fetch missed notifications or notification count from your own server. That's just one way you can do it.
But OneSignal is a push notification service, which send notifications. Even if you did FCM yourself and went through the scenario you mentioned, the results would be the same.
It's not a OneSignal issue. It's the way notifications are designed.