Detect incoming calls

how to dhow to detect incoming calls run in background

Using Blocks, you probably cannot. See PhoneCall

These are the only events available to a developer for use with the Phone component:

Events

IncomingCallAnswered(phoneNumber)

Event indicating that an incoming phone call is answered. phoneNumber is the incoming call phone number.

PhoneCallEnded(status,phoneNumber)

Event indicating that a phone call has ended. The status can be any of:

  • 1: Incoming call was missed or rejected
  • 2: Incoming call was answered and hung up
  • 3: Outgoing call was hung up.

PhoneCallStarted(status,phoneNumber)

Event indicating that a phone call has started. The status can be any of:

  • 1: Incoming call is ringing
  • 2: Outgoing call is dialled
1 Like

did incoming call Event work work in background ?

1 Like

No, not that I am aware. Using only blocks users cannot detect an incoming call in the background with the phone component.

You might be able to use a Background extension (for example Background Tasks extension [3.8 A] 🥳

) with the Phone component. Experiment (but I don't believe that would work; you could try). Otherwise search for a Phone extension or write your own extension or use the professional Android Studio to write your app (see this google android studio detect incomming phone call - Google Search )

1 Like