flutter : How to get phone number of incoming call and SMS - dart

How do I get the phone number of an incoming call and SMS in flutter?

am not sure there are plugins for these actions yet but you can use PlatformChannels to accomplish your task.
you can also checkout this plugin

Related

Setting statusCallbackEvent on outbound calls with Voice SDK

Is there any way to change what events trigger the status callback? Normally you can use statusCallbackEvent but I can't seem to find a way to make this work for the Voice SDK's leg of the call. It works fine on the call leg of the outbound participant, but not the Voice SDK's call leg. I only get completed status event for this leg (and I also can get ringing from the called action url).
Things I tried without success:
Updating the call using the REST api to set statusCallbackEvent to initiated ringing answered completed when the outbound call starts
Setting statusCallbackEvent as an outbound parameter on the Voice SDK's token (in PHP you can set custom parameters using $clientToken->allowClientOutgoing(...) but it seems normal parameters cannot be modified)
I really wish you could set this on the TwiML Application so that any numbers calling out with that application set will just automatically use your set events. That or let me set the parameters on the client's token.
One way to fix this is just to poll for the information but that is an ugly hack and isn't real time.
Twilio developer evangelist here.
I don't think you can do what you're asking for here, but for good reason.
When you are placing the call from the Voice SDK, that call leg is then between the application and Twilio. You know the call was "initiated", because you started it. There is no "ringing" because Twilio is not a phone and won't ring. You know it is "answered" because a request is made to your voice URL defined by the TwiML app. And finally, you do get the "completed" event.
As you say, you do get the events for the outbound leg of the call from Twilio to another phone number.

Twilio Flow replying to "Send and wait for reply" not triggering next widget

I'm trying to set up a Flow with a Send and wait for reply widget (triggered with the REST API), however, the reply doesn't seem to trigger the next widget (handle_welcome...) and instead triggers the Incoming Message for the Flow (handle_incoming...).
Is there a way to set up a Flow so that it knows that the received SMS is a reply and not just a generic Incoming Message?
Here is a screenshot of the flow:
I only have one number set up and that is set to trigger the Studio Flow on an incoming message.
Also, I'm not sure if it makes a difference but I have Concurrent calls trigger enabled.
Make sure that you do not have the phone number associated to Service. I had created a service, associated the number and that seems to have short circuited the flow. I logged a ticket with Twilio and they kindly instructed me to remove it. Once I removed it, the flow worked as expected:
Remove the number (:warning: if this is not required for your service. Else, purchase a new number and use that with your flow)
Click Remove
References
Twilio Studio Rest v2
Twilio Execute Flow
Twilio Send & Respond Widget
To use the REST API trigger with a subsequent wait and reply widget, the phone number you send from can not be associated with a messaging service.
Remove that association and then you will be able to use the flow with both REST API trigger and incoming message trigger.

Twilio - programmatically taking incoming call

I am making an app with Twilio API to build a feature to track the call/sms statuses on UI.
For example, if I call to a Twilio number from my phone, on the UI the call status of the number will be dynamically changes.
But currently, as soon as i make an incoming call to the Twilio number, it received the call.
Is there any way that I can make the Twilio phone number take the incoming call programmatically? Just like the way we can hang up the call programmatically.
Thanks!
There is a webhook URL in Twilio account where you can configure your endpoint programmatically

Get incoming call information programmatically in iOS7

Can we get incoming call information(number) programmatically in iOS7?
I want to create an application so that at the time of any incoming call, my application cuts the call and sends a text message to that number.
Read this may be helpfull, Because in this user blocking calls according to number. where you can check your number How can I use private APIs to block incoming calls in an iOS application?
In this user getting info of incoming calls
There is a hack for this but you can't publish to the AppStore with it.
You can only use this in ad-hoc applications.

Intercept incoming call ios sdk (Non Jailbreak)

Hi i have tried for bundle of times and find out that iOS SDK does not give us access due to security reasons for getting following data;
Intercept an incoming call (Getting phone number from incoming call)
Read Call history
Intercept SMS (Getting phone number from incoming SMS and reading its contents)
Block an incoming call
etc
Here are some of the links resulting from my search about this issue:-
How can I get the callers phone number from an incoming call on iphone
http://iosstuff.wordpress.com/2011/08/19/accessing-iphone-call-history/
Programmatically get the number of the incoming call
Can I fetch details of the incoming call phone number in my applicaton?
Hook into incoming call?
handling an incoming call through an app in iphone xcode
Identify number of incoming call in iPhone
I also found that CoreTelephony CTCall object provide us only limited info, Just call state and its unique Id. But nothing else we can get by using CoreTelephony framework.
But, I have seen one application on app store that does gets incoming call phone number.
I wonder how this app
Callinize iPone App
works and gets incoming call info?
I also want the same thing to do with my app. But i did't find such a way to do. Please help if you can.
Thanks!
I'm late to the party here, but I was just reading the description of Callinize. They built an integration with the Asterix pbx system and it only works with Asterix. So this app does not really access iOS phone calls.

Resources