Thanks for the great advice. I have tried to look into the problem deeper and so far I conclude that the Call screening block itself is working fine.
However, my flow before the "Call screening" block contains "Call Incoming" and it seems to be the one that affects the problem I described.
My flow consists of:
- Call incoming "When ringing"
- Log " Log call from {Number} on {Line}"
- Call screening
- Log "Screen call from {Number} with {Status}"
- Other routins...
The app in foreground:
04-19 14:09:51.046 I 40@1: Flow beginning
04-19 14:09:51.048 I 40@55: Call incoming
04-19 14:10:59.908 U 40@72: Log call from +48XXXXXXXXX on 2
04-19 14:10:59.909 I 40@53: Call screening
04-19 14:11:00.064 U 40@73: Screen call from +48XXXXXXXXX with 1
04-19 14:11:00.065 I 40@5: Contact query?
04-19 14:11:00.079 I 40@64: Database query
04-19 14:11:00.118 I 40@68: Expression true?
The app not in foreground:
04-19 14:00:04.959 I 39@1: Flow beginning
04-19 14:00:04.959 I 39@55: Call incoming
04-19 14:00:14.632 U 39@72: Log call from +48XXXXXXXX on 2
04-19 14:00:14.632 I 39@53: Call screening
04-19 14:03:19.820 I 39@53: Stopped by user
The author of this thread also has a flow starting from this block. It is interesting to understand their impact on each other.
This flow has been with me for a long time and worked properly on 11 and 12 versions of Android, it stopped working only after I changed my phone and moved to Android 14.