Hi @berlioz
There are three events that are available on the PhoneCall component to examine incoming calls.
- PhoneCall.PhoneCallStarted: This event is run when a phone call starts (the line is ringing). The event has a status parameter that will be 1 if the call is an incoming phone call. The phoneNumber parameter will give you the caller’s number.
- PhoneCall.IncomingCallAnswered: This event is run when the user answers the phone call.
- PhoneCall.PhoneCallEnded: This event is run when the phone call ends. The status parameter will be 1 if the call was missed or rejected or 2 if the call was ended after being answered.
Depending on what you want to do, you may need to use one or more of those blocks. Lastly, you won’t be able to test this functionality if you use the companion from the Google Play Store as Google made us remove the functionality. However, the version we publish under App Inventor’s Help > Companion Information screen does include the functionality. Alternatively, you can compile your app every time.