Despite changing the notification sound in the sound menu, Google chat app continues to use the hangouts sound. How do I change this? (I have uninstalled the app and re-installed several times)
Related
According to FCM official documentation:
On iOS, if the user swipes away the application from app Switcher, it
must be manually reopened again for background messages to start
working again
See:
https://firebase.flutter.dev/docs/messaging/usage/
However, any app with notifications that I can think of (Whatsapp, Facebook messenger, Tinder etc) will still notify the user if there's a new message, even if the app was swiped away. A different behavior will be a very bad UX (as a sidenote, background messages don't work on FCM ->APN -> client if the physical iPhone was restarted, see https://github.com/FirebaseExtended/flutterfire/issues/7785)
So FCM isn't the right way for iOS. I thought that APN might be the right way, but to my surprise, all of the APN packages seem to be dead (for example see https://pub.dev/packages/flutter_apns - was last pushed 6 months ago and authors stopped responding to issues).
Flutter is a popular framework which exists for years now, so there must be a way to implement notifications properly. What is that way?
I am using FCM to send notification. It is working fine on Samsung and mi devices but, not getting a notification in Oppo Vivo.
OPPO and VIVO always have issue with Notifications. They restrict app from doing any background task for saving battery. This is not just with Flutter but with native development too.
Solution:
Turn off battery saving mode of the mobile.
Remove app from restricting using battery in background.
Turn on Autostart for the app.
You will find respected intents for these setting screens.
I have some issues in Oppo user, but ignore this problem because they had restrict the app for saving battery feature. Even app like Whatsapp, notification become delay in oppo.
I am using ionic with the ionic native plugin FCM. I have everything working, except I am unable to get my device to play a custom sound. Is this supposed to be the sound that plays when app is not in foreground (because no sound should play in foreground)? I have followed the instructions and placed "sound":alarm1" in both the notification, and/or data payload, and removed the notification payload all together. alarm1.mp3 is in the res/raw directory as well. I have used "sound":"alarm1" and "sound":"alarm1.mp3" in all of the cases also. What am I missing? I need to get the device to play 1 of 3 sounds on receipt of FCM.
I continue to get the default device notification sound is all cases.
I've been trying to find something about this problem for a few days, but without any useful results. I'm working on a VoIP app for iOS (using an iPhone 4 running iOS 6.0) in Objective-c which uses remote notifications to notify the user about calls when the client is in background.
My issue is quite strange: When the app is in background and the screen is locked, notifications arrive and work perfectly - they ring, and open the app when opened. But when the application is in background, and the screen is unlocked - for example, we're on the home screen - notifications simply fail to appear, not giving any sign that something happened.
Anybody got any ideas where to look around? The app code handles push notifications correctly when they appear, so that shouldn't be an issue. The notifications get out of our server, so I'm starting to think that there is something about the device's settings. The app is set to a "banner" alert style, and its notifications are enabled.
When the app is running in the background, the notification does not appear. You need to catch it in the App Delegate application:didReceiveRemoteNotification:.
Implement this method and put a UIAlert to see when the notification arrives.
Can you have a program running in background respond to SMS? I basically want my program to sit in the background so the will be iOS4+ and when someone text messages you, the app can then do something with that text.
Can this be done?
I have seen that the question has been asked before, but it was before the iphone could have background apps.
No backgrounding is very limited on IOS. There is only a handful of stuff you can do. You can always send push notifications to get an alert while the app is not running in the foreground.
From Apple:
OS 4 delivers seven new multitasking services that allow your apps to
perform tasks in the background while
preserving battery life and
performance. These multitasking
services include:
Background audio - Allows your app to
play audio continuously. So customers
can listen to your app while they surf
the web, play games, and more. Voice
over IP - Your VoIP apps can now be
even better. Users can now receive
VoIP calls and have conversations
while using another app. Your users
can even receive calls when their
phones are locked in their pocket.
Background location - Navigation apps
can now continue to guide users who
are listening to their iPods, or using
other apps. iOS 4 also provides a new
and battery-efficient way to monitor
location when users move between cell
towers. This is a great way for your
social networking apps to keep track
of users and their friends' locations.
Push notifications - Receive alerts
from your remote servers even when
your app isn't running.
Local notifications - Your app can now
alert users of scheduled events and
alarms in the background, no servers
required.
Task finishing - If your app is in
mid-task when your customer leaves it,
the app can now keep running to finish
the task.
Fast app switching - All developers
should take advantage of fast app
switching, which allows users to leave
your app and come right back to where
they were when they left - no more
having to reload the app.
Nope. The only way for your application to be "called" when it's not already open is by sending a push notification.