ionic-plugin-callkit icon indicating copy to clipboard operation
ionic-plugin-callkit copied to clipboard

Native views not visible on Android

Open Lorempn2 opened this issue 7 years ago • 5 comments

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

Lorempn2 avatar Sep 04 '17 15:09 Lorempn2

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

ghost avatar Sep 05 '17 10:09 ghost

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?

osterland avatar Oct 25 '17 10:10 osterland

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)

Taracque avatar Oct 25 '17 10:10 Taracque

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

osterland avatar Oct 25 '17 22:10 osterland

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.

Taracque avatar Oct 26 '17 07:10 Taracque