"Phonecall" for incoming calls

Now it is working in simulation. Thank you.
But the the block blocks
returns error “The operation Text cannot accept the arguments: , [nothing]”.
Thank you

I have the same problem

returns error “The operation Text cannot accept the arguments: , [ nothing ]”.

I believe the problem here is that your phone isn’t providing the phone number of the call that just ended. So it is getting a “null” value. This is probably our issue (MIT) to fix, though we would need to figure out what the correct value to supply is. In any event try something like this:


P.S. You should be able to literally drag this image into your blocks editor…


1 Like

Sorry, but with


I have the error “The operation is text empty? cannot accept the arguments: , [nothing]”
Instead it works with: if get phonenumber = " "

OK. Good to know. Thanks.


It seems that I can’t know the number of an ingoing call. I wanted to send a SMS to a caller after I rejected the call because I was busy: but without his number I can’t send any SMS. Some hint? Thank you.

Which version of Android are you running? I think that on newer versions the app needs to request the permission READ_PHONE_STATE in order to read the phone number of the incoming caller.

I’ve just checked and indeed we should be requesting the permission. Did you see a prompt for permission when you start the app or add the PhoneCall component in the companion. If not, do you see the permissions in the settings app (Android 6+).

Android version 9.
Please tell me how I can set the permission.
Thank you

Sorry. Only the if get phonenumber = " " works, but the texting the phoneNumber doesn’t.
It seems that the phoneNumber is NOT = " " but his content is not accepted by text. I don’t know! Tell me about this. Thank you.

Thanks for the additional info @berlioz. We’ll look into replicating this on an Android 9 device and see whether there’s a fix.

Any update on this? @ewpatton or @jis? I’m happy to help test on my Android 9 device if that helps.



I forgot to include my blocks. I’m actually trying to capture the phone number when the call is started. (Looking to create an enhanced caller ID app.)


As with the others, I’m getting the [nothing] error.

Is this a permissions issue? Something else?

I was able to confirm this using an emulator running Android 9. I’m not yet sure what we can do to fix it but at least we can reproduce the issue on our end.

Edit: I have a potential fix:

1 Like

Awesome, thanks @ewpatton! Any idea how long it usually takes the team to get this into prod? I’m completely new to the project, so I don’t really have any idea what to expect.

Thanks, again!

@dhelland We’re aiming for the next companion release to be at the end of the month. If you’re not already subscribed to the announcement category, you should do so as we will let people know when we update the test server with new features.

1 Like

The proposed fix is now up on ai2-test. Please see @jis’s post here:


I have tested successfully sending a predefined text message in response to a missed phone call automatically without having to touch phone using the latest app companion version 256 1 tu. Declining the request of play protect. Thanks MIT team.


PhoneCallEnded event still do nothing
is it will be fixed soon?

1 Like

I don't know if your issue is solved or not because it has already been a year, but this event is still not working in my app, I deleted the MIT companion and installed it again, but nothing changed.
is this error from the developers of MIT or is it from my app ?

Are you seeing issues in the companion or in a compiled app? If you're trying to test in the companion, you need to make sure to install the version from our website because Google does not allow us to distribute a version of the companion through the Play Store with this feature.