Currently, I'm building one chat application using react native amplify, it works fine when both users are online and are on the same screen ( stack screen to be specific ), I'm able to show push notifications to users for the new message using a react-native-push-notification package (local push notification).
I want to extend this functionality for app running in the background (similar to Whatsapp) and show push notifications if any new message comes for the user. I attempt to do so using FCM service, but found it's might not be best for messaging, and mostly used for campaigns.
Any better idea, how to do this?
You can take a look at react-native-push-notification and OneSignal libraries
Related
I'm using Firebase to send notifications to my React Native frontend. Notifications come through fine when the app is closed, but user's don't receive the notification while they are inside the app. How can I force the notification through every time?
the notifications are received but not showing when the app is open (foreground) you will have to use this or similar solution to show the notification on the screen in this case.
check this link
I have used it on android and iOS with no problems.
You can't "force" them but you can handle them
I am using OneSignal in my Flutter application to receive notifications. I have created my own table within Flutter to save notifications but I cannot save messages that have been sent whilst the app has been terminated. However, I have found that the OneSignal package has it's own database installed on the device which captures everything no matter what state the application is in! So, to avoid duplicating data I want to use this database instead. It is located outside of the flutter app folder which is my issue (see image below).
How do I access this database? Does anybody know if it is the same on iOS (I haven't been able to check at this time).
Many thanks.
It's important to understand that if an app has been terminated, any onReceived handler will not be fired. We don't recommend using the local db at all. Your best bet is to use the respective notification extender services for each platform. Though you will have to write native code for this! Cheers
Edit:
ANDROID - NotificationExtenderService - This can be setup to receive silent notifications when your app is not running or to override how notifications are shown in the notification shade. See the Background Data and Notification Overriding section to set this up.
Hey guys I am using firebase push notifications in the web application, I am showing the notification via the service worker as mentioned in the firebase documentation.
the problem is when I open the browser , I see multiple push notifications stacked upon one another , as its very annoying to see many push notifications , is there any way to combine push notifications into one, based on some attribute.
As far as I know, you cannot group them. That is why many users tend to turn off notifications in their mobile devices because it is annoying. You have to follow the basic principles of push notifications.
It must be timely
It must be relevant to the users
I am in the beginning stages of developing a react native mobile application. I wanted to get insights on the following on a conceptual level relating to the below.
Say the application goes into the suspended state (as mentioned here) at which point there is no application code being executed. Subsequently, the server sends a push notification based on some changes to the data. It seems that (at least on IOS) there is a way to use push notifications to initiate a download in the background. My questions are:
Is there a way to initiate this download in react native post a push notification when application is suspended?
Is there a way to synchronize the Firebase data with the application post such a push notification while the application is running in background if (1) above is possible?
Any hints on these will be of great help. Thank you.
I have a website. Currently I have been sending sms during some transactions as notification.
I want to use push notification instead of sms. But I don't have any mobile app.
How can I send push notifications without a app. Are there any way to do it?
Yes, Spontit enables you to send push notifications to all devices - desktop, iOS, Android, etc. You can do so for free and without your own app.
You can check out their API here.
As far as I know, there is no way to do this without developing an app for each platform (Android/iOS). You could also get away with something like a browser plugin. Essentially what your asking for is what your doing, an SMS or an Email. That is as close as you can get w/o an app. You can make a notification system on a website, but there is no way to push it to the user when they are not on your site w/o them downloading something like a plugin. :D
you can do this with https://pushed.co
they allow users to download their app and you push to the users with their app without needing to have your own mobile app