Taracque / ionic-plugin-callkit

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

Native views not visible on Android #21

Open Lorempn2 opened 7 years ago

Lorempn2 commented 7 years ago

Hi,

Thank you for this great plugin! I have a question, I am able to report an incoming call and I hear the audio / vibration. However, the native android call view is not visible. I just see my app and hear the sound. Do I have to grant permissions or something?

I run the app on a Android device, viaionic cordova run android

Kind regards,

Marcel

ghost commented 7 years ago

@Lorempn2, theres no Callkit natives views for Android, just for iOS.

osterland commented 6 years ago

Hi Folks, first of all - thanks for this great plugin! Got it working with ios + voip pushes - flawless! To clear things up: Could anybody provide me some more detailed information about what we get on android? No Native Screens - ok. But all i got atm - is a horrible loud ringing on my android device and this only if i'am in app. So long story short - is it possible to start the app and get a ring sound with this?

Taracque commented 6 years ago

On android when you call reportIncomingCall it should bring MainAcitvity of your app to the front, and keeps the screen on, dismisses the keyguard, etc. If this is not working for you, you should check that your AndroidManifest.xml that it has an activity android:name="MainActivity" (that should be the first one in the Application tag)

osterland commented 6 years ago

ty @Taracque for making things clear. esp the keyguard part is missing in our current android implementation... we give it a shot tomorrow ;)

Taracque commented 6 years ago

Keyguard should be dismissed by the plugin. If it doesn't work, then either your main activity is not called MainActivity or there is a bug in the plugin.