how can i make flutter app when user make video call agora to user his phone will ringing - flutter

i tried agora video call on my app but the problem is the next person phone not ringing . I tried to make next phone ringing like whatsapp using callkeep package put it not working

To add call notification you will have to setup signalling which can be easily done via Agora RTM. And based on when the message is received is you can trigger the callkeep package to make the phone ring.
You can read more about it here: https://docs.agora.io/en/Real-time-Messaging/faq/call_invite_notification

Related

Video call flutter and agora

I have implemented agora sdk in my flutter app , but when i tap on endCall button , if the one who tapped is the caller they both will end the call , but when i tapp on endCall from the receiver the video screen doesn't go away until the caller tap too on the endCall button .
When you start a call users create their own instance of Agora RtcEngine and when you join a channel using it every user needs to individually leave the channel from the frontend. However, if you want a host or a certain person to have the privilege such that when that user leaves the call gets ended for all the other users in the channel then you need to set up a kicking rule. This can be done by the RESTful APIs that Agora provides. You can have a look at it over here: https://docs.agora.io/en/rtc/restfulapi/#/Banning%20user%20privileges/createKickingRule

How to set up custom behaviour when receiving a notification in Flutter

I have an app built in flutter and I am sending certain notification via firebase messaging to a given device. When that device receives the notification, I would like that there will be an alarm a bit like when you receive a phone call. I would like the alarm to go on until the user do not open the notification.
Is there an easy way to achieve this in flutter? I s it even possible?
Thanks

Can a flutter app run code on receiving a push notification while Not Running

I have push notifications working and have both a data and notification part in them. In the data part is a tag that tells the app what updates are available for the user.
The problem is that I would like the app to fetch those updates even if the user does not tap on the notification.
With other apps, eg Whatsapp, a notification is shown. Without tapping this notification, and even when the app is not running, the app downloads the data. For example if the user switches to flight mode right after receiving the notification and then opens whatsapp, the message and/or picture is there, already downloaded and displayed in the app.
So the question is how to get an app written in Flutter to download something in response to getting a push notification, regardless of whether the app is in the foreground, background, or not running.
Checkout isolate mentioned in Flutter background processes with a link to Medium Executing Dart in the Background with Flutter Plugins and Geofencing
Checking with GitHub issue Flutter should provide an abstraction for background execution and issue comments/references after that you may find some other examples. Bottom line is people need more examples.

How to send sms with flutter in android and iOS

all my app is base on SMS communication, first I use this sms package (https://pub.dartlang.org/packages/sms) but it's only supported by android. It's work fine for this.
But I need also to implement my app on iOS, so I use this new package (https://pub.dartlang.org/packages/flutter_sms) but it's didn"t work for me... when I try to send SMS to 0123456789, native sms APP call me an error :" wrong format [0123456789]".but I never add [].
I tried also simple_sms plugin (https://pub.dartlang.org/packages/simple_sms) first I don't know if it's iOS compatible, and when I click on "send SMS" I'm redirected to the native SMS app ...
I see that URL_lancher can send SMS, but if I understand, URL_lancher call also the native app to send SMS...
I need something more transparent. So are there an other example to send simple SMS in ios and android or just iOS with flutter, without call a second page ?
thank you
There's no available Flutter plugin with iOS support for sending SMS directly without launching an SMS app. For Android, you can use telephony - this has support for sending SMS directly from your app.
You can also try exploring Twilio. However, this requires a network connection to be able to send an SMS.

OneSignal - Sending silent notifications that only increment badge (app in background)

My app (iOS) is in background and I want to send a push notification that won't display anything (silent) and that will only increment badge count on the app's icon.
I am still not clear on how to manage that.
Is it a parameter in the message body or in my handler code?
Thanks
Try to send a push notification with content-available=1
Turn on the content-available (iOS) or silent-notification (Android)
fields. This will cause your application to be automatically woken
up in the background whenever a notification is received (even if
it's not clicked). Your custom code must be write with native code,
Java on Android and Swift or Objective-C on iOS. See Apple's
content-available for iOS and our Android Background Data guides for
details on receiving and processing the event.
In your app, we
provide an API that you can use to run custom code when the above
occurs. Your custom code can then save a copy of the notification
content on the device in order to be displayed in an activity feed
when the app is next launched. Or it could save a copy of it on your
servers.
https://documentation.onesignal.com/v3.0/reference