Taracque / ionic-plugin-callkit

Ionic/Cordova plugin for CallKit
36 stars 20 forks source link

How calls work (compose a number, bind an ID, etc..) #20

Open De-Lac opened 7 years ago

De-Lac commented 7 years ago

Hello. I don't understand how to choose who call. I saw that I can choose just "Name", and the system take the first with that name. This way is a bit rough...

  1. I can choose by phone number?
  2. Does the app is automatically bind to the mobile phone on which it is installed?
  3. Is it possible to call a number outside the app? I mean, I'd like to start a real native call from my app, just to monitor call info (duration, star time etc.)

Thank you

De-Lac commented 7 years ago

I have successfully implemented the plugin, and all the functions work. However I am still a bit confused about the usage of this plugin. Is this just to use native calling UI views? Then I guess I should implement the VOIP calls in a separate way. Right?

I am on IOS and the plugin acts like this: When I simulate the receiving call, the view shows. However, when I make a call nothing shows. Is it the correct behavior?

ghost commented 7 years ago

@De-Lac, this plugin only displays Call-kit views, not the connection for a call itself. As you said, you need to implement VoIP calls or something similar which contains the logic you need.

De-Lac commented 7 years ago

@nickmendes thanks. Is there a way to know the state also of the native calls? For example, 1) if there is already a native call in progress, 2) or to detect incoming calls

ghost commented 7 years ago

https://github.com/renanoliveira/cordova-phone-call-trap

ghost commented 7 years ago

Yes, use this plugin.

De-Lac commented 7 years ago

great! but I think it works just for Android :(