I have set up push notifications in my app using firebase. My question is how do I retrieve all the notifications I have previously sent so I can display them in an iOS app. Is there a firebase API for this? I have looked through the firebase documents and don't see any API for retrieving notifications.
There is no API for this, you can use Firebase Analytics however to log events when incoming messages are opened.
Related
I'm trying to make the app open automatically when it receive the push notification, i am using Firebase Cloud Messaging and i've already read here about the same problem but i don't quite understand on how to use it for flutter
It's not possible to automatically launch the app once a notification has been received from Firebase Cloud Messaging. As mentioned in the docs, payloads received while the app is in the background can only be handled when the user taps on the notification.
I am working on an iOS app in Swift and Firebase as Realtime DB.
Its an app that sends motivational quotes to users via Firebase Push Notifications. Currently, I am using Firebase Compose message to send notifications.
Using firebase is there a way in which Users can specify what time of the day they want to be notified?
e.g. Daily once - 12PM; Daily twice - 12PM, 8PM.
I am using Cloud Functions to get the user details required for sending notifications and triggered them with cronjob.
I would like to send a notification in every state (app in background or running) when some data in firebase are changed the database. Do I need to use push notification from firebase?
I use the xxx.keepSync(true) to sync with the firebase db. May I use this detect the change and how can I send the notification in the status bar?
You can use firebase cloud functions.
Refer to firebase documentation for details.
I want to use firebase but on of the features to this is when the application is in background I want to be notified (maybe create a notification) when the data is changed. Is it possible? Firebase supports this?
iOS has some limitations on this topic, but, I want to know if Firebase SDK support this feature or how i can implement this?
For Android, I think i can use a service to keep data updated and notify the users.
Nope. You'll have to roll your own for that.
See:
Best way to implement push notifications with Firebase
Does firebase handle push notifications?
Using Firebase to send and receive push notification for an iOS app
Real-time Push notifications with Firebase
https://www.quora.com/How-do-you-send-a-push-notification-with-Firebase
https://groups.google.com/forum/#!topic/firebase-talk/NcsozbcxEP4
https://groups.google.com/forum/#!topic/firebase-talk/t1MhR_qhohI
I am create a firebase based chat application for iOS. One of the features is to send push notification to the users in the same chat room (if they are offline).
I can't find a firebase function (for iOS) that can be used to send push notifications to the user.
Is it possible?
Displaying alert badges and notifications on iPhone applications is accomplished through Apple's Push Notification system. Since the application is not running on the user's phone when they receive notifications, the APN will have to be triggered from your server-side code.
You'll probably want to create a server-side module that listens for changes to your chat Firebase. When a message appears for a user that is offline, you'll have to schedule a remote notification with the APN. That latter part has nothing to do with Firebase, but has extensive documentation on Apple's developer web site.
I'm not sure if a web application can display alerts or badges. Otherwise this approach will only work if you create a native wrapper for your Firebase chat application.