79578088

Date: 2025-04-16 20:54:36
Score: 1
Natty:
Report link

Unfortunately, there is no direct way. Why?
Because Android only writes to the call log after the call is finished, and there is no system broadcast saying "a new entry was added to the call log."

But you can Workaround in this way:

You can listen to the call state using a plugin like phone_state, and then trigger an update after the call has ended.

Simple steps:

  1. Listen for changes in phone status (ringing, connected, ended).

  2. Wait 1-2 seconds on disconnected or ended (to give the system time to write to the call log).

  3. Then fetch call log again.

Enjoy!

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Hamed Esam