How to implement iOS CallKit in Flutter to identify and store caller data within the app?

I am developing an app in Flutter and I need to implement iOS CallKit functionality to identify and store caller data within the app. I would like to know how to integrate CallKit into a Flutter application and what steps I need to follow to manage caller identification and data storage.

I have done some research and understand that I will need to write native Swift code to handle CallKit, but I am not sure how to properly integrate it with Flutter and manage communication between the native code and Dart code.

My specific questions are:

How do I set up CallKit in a Flutter project? What permissions and configurations do I need in the Info.plist file? How can I receive and handle incoming call data using CallKit? How can I communicate this data to the Dart code in Flutter to store and display it in the user interface?

Any code examples, tutorials, or advice would be greatly appreciated. Thanks in advance for your help.

I have tried several approaches to implement iOS CallKit in my Flutter app:

Online Forums: I have researched various online forums and discussion boards where developers share their experiences and solutions for integrating CallKit with Flutter. Unfortunately, I have not found a complete solution that addresses my specific requirements.

Pub.dev Packages: I have explored different packages available on pub.dev, such as flutter_callkit_incoming and flutter_callkit, and tried to implement them in my project. However, I have encountered issues with proper integration and communication between the native Swift code and Flutter.

GitHub Repositories: I have also looked at several GitHub repositories where developers have shared their implementations of CallKit in Flutter. While these repositories provided some insights, I was unable to achieve the desired functionality on my physical device.

Despite following the instructions and examples from these sources, I have not been able to get CallKit to work correctly on my physical device. I am expecting to be able to identify the caller, and store the caller data within my Flutter app.

CallKit has different and separate features, are you talking about incorporating a CallKit CallDirectory extension (this won't allow you to gather caller data by the way), or are you talking about adding VoIP functionality to your app?

How to implement iOS CallKit in Flutter to identify and store caller data within the app?
 
 
Q