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.
Related
How To Send Firebase Push Notification from one app to another app connect to same project
I have Used http to send notification to specific device using token but i am unable to send to another app
I have Two App with Same Firebase project
One is Admin And Other is client
I want to send push notification from client app to Admin is this possible if yes than how.
When you have two apps installed on a single device, each of them will have a different FCM token, regardless of whether they part of the same Firebase project. So you can send a message to a specific app by sending it to the token for that app.
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.
Lets suppose some app developers use our SDK. Can we send push notifications to devices that use our SDK independently, without the help of hosted app?
I know that push is unique to every app , multiple push keys , settings can't be made.
But I just like to know if any other options are available.
Our goal is to send push for devices that use our SDK.
Thanks.
This is not possible using Apple Push Notifications. Sending an Apple Push Notification to an iOS Application requires a certificate that is unique for each application. You would need to receive the certificates from the developers of those apps.
In addition, the apps would have to register to APNS and send the device token to your server. This part can be done as part of your SDK, assuming the users of your SDK call some SDK method that performs the registration and sends the token.
I'd like to be notified of certain events on my webserver with a push notification from my website to my iPhone. Is this somehow possible, or do I have to install/create a special App for this?
In order to use Push Notification it would have to be a native iPhone app on your phone. You might be able to set up some sort of email notification coming from your website and turn on push notifications for your mail client on your iPhone.
In regards to #gnuf's post (Sorry it wouldn't let me comment on your post) Your web server can act as the Provider of Push Notifications but will still require a native application on the phone to receive the notifications.
You can definitely send notifications triggered from a website: you just have to hook up the backend to do so. See this previous post for more information.
Do we need to install an app to receive some push from a service ?
Is there a way to register an iphone somewhere (website / apple server) without having an app installed on the iphone to register to the push service ?
Apple Push Notification Service is to be used with native iOS applications. Without an application APNS cannot be used.
you are saying you want to push a message to a particular iphone, but not have it related to any app? This is basically a text message, and you could do this from a server remotely using SMS.
Yes, if you want to use Apple Push Notification Service, you will need an app.
But go have a try at notifio.com