Launch flutter app which is in terminated or background state when FCM data message arrives (in android OS only) - flutter

I am trying to build a video call app using Twilio in a flutter. I am able to receive FCM (Firebase cloud messaging) data messages. I just want to launch my app from within the onBackgroundMessage. Can anyone point me in the right direction?

Related

How to make push notifications target a flutter app?

Using firebase web, I want to trigger a notification in a flutter app from a dashboard. In other words, I want to target the flutter app whenever I make certain changes in the dashboard using firebase cloud messaging.
Can I do that? Or do I have to write separate codes in both the flutter app and the web app?
when you trigger a notification in a flutter app from a dashboard. You can choose which app to push (Android/iOs/web)
Just to add more on Vu Thanh's answer, you can use the User Segment in the Messaging console to select the Flutter app you want to send notifications to. You can read about a related post here.

How to store FCM in Flutter app when it is background

How to store FCM in Flutter app when it is background??
I have no problem receiving background FCM messages with the flutter app
However, I try to collect such records and show them to users
In this case, As soon as I receive fcm in the background, can I immediately save it to the local DB using sharedpreference or sqlite?? Or is it a part that I need to save separately in the database?

what are the limits of what a Flutter app can't do vs a native iOS/Android app

I'm new to Flutter having been burned attempting to use PWA/Chrome to create a mobile app with native behaviour. So I don't get fooled again. I'm trying to understand what, if any, are the restrictions of Flutter on mobile.
Specifically, my app needs the following features (I'll use the Android terms but the equivalent iOS features also apply):-
receive Firebase Cloud Messages
those messages to be silent (ie. they are consumed by the app rather than go straght to a notification)
background http access (an Android Service)
local storage (more SQL-Lite than KV pairs)
Raise device notifications ...
... such notifications to have a deep link into the app, and ...
... have the ability to send a reply from the notification without opening the app
intercept incoming SMS (Android Telephony.Sms.Intents )
desktop widget
read the user's Gallery
access Location
intelligently guide the user to enable any necessary app permissions, such as Location, read Gallery, notifications, lock screen, etc
Is this kind of native behaviour within Flutter's realm?
Flutter, over the past years has grown mature enough to be doing all the above functionalities.
Here is the list of packages that you can use to make the app.
receive Firebase Cloud Messages ==> firebase_messaging 12.0.2
those messages to be silent ==> notifications 2.0.1
background http access ==> background_fetch
local storage ==> shared_preferences
Raise device notifications ==> in_app_notifications
deep link into the app ==> Can use branch.io
have the ability to send a reply from the notification ==> using platform channels
intercept incoming SMS ==> Telephony
desktop widget ==> currently not possible using flutter, MacOS yes, in some ways.
read the user's Gallery ==> Photo_Gallery
access Location ==> Location(Fine Access)
intelligently guide ==> Coach_Mark

Flutters Push Notifications without FCM or is it a must?

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.

IBM MobileFirst Push Notification in IPhone - when the app is closed, pushNotificationReceived method is not triggering for the received notification

I am developing an application for IPhone, where I have to store all the notifications coming to the app using JSON Store.
In IBM Mobilefirst Push Notifications API, pushNotificationReceived is triggered when any notification is received in the app. So using this method, I can able to store the notifications in JSON Store.
When the app is closed [Not running in the background], the notification is successfully sent to the device.
But when I open the application by clicking the received notification, pushNotificationReceived method is triggering only for the notifications received when the app is closed.
Is this the default behavior of IBM MobileFirst?
If so, is there any work around to solve this issue.
I have seen that there are native API's available for handling the received notifications. Is that the only way to solve this?
Or Is there any native listener available only for receiving the notifications when the app is closed?
If tapping the notification in the Notification Center, the pushNotificationReceived should be called.
If tapping the app icon after a notification was received, the pushNotificationReceived API will not be called.
This is the expected behavior in iOS.
If (1) is not working for you as well, I suggest that you will test the sample Hybrid app to see whether it works for fails for you there as well - it should work: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/push-notifications-overview/push-notifications-in-hybrid-applications/event-source-notifications-in-hybrid-applications/