Event indicating that a phonecall has started. If status is 1, incoming call is ringing; if status is 2, outgoing call is dialled. phoneNumber is the incoming/outgoing phone number.
???
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select “Download Blocks as Image”. You might want to use an image editor to crop etc. if required. Then post it here in the community.
That’s exactly the point.
I haven’t put any block yet, because I don’t know what block is needed.
I will explain what I need:
That my application will run in the background all the time (meaning that the application does not need to be opened, but it will work all the time even when it is closed).
That if someone calls the device (of course even when the application is closed) then the application will insert the phone number into the variable that is defined.
as the phone call component is written, it unregisters the broadcast receiver which listens to changes of the phone state when the app closes…so the phonecall component can’t be used to listen to events in the background…
here are the blocks of the not working test project
Great that you appreciate the blocks I prepared for you. .
You can use exactly these blocks together with a phone call extension, which first has to be written, but can have exactly the same functionality as the phone call component with the only difference to not unregister the broadcast receiver on closing the app
You can contact me personally if you want me to create that extension for a small fee.