Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Answer not working in Android 11 #112

Open
mozhn opened this issue Mar 6, 2021 · 7 comments
Open

Answer not working in Android 11 #112

mozhn opened this issue Mar 6, 2021 · 7 comments

Comments

@mozhn
Copy link

mozhn commented Mar 6, 2021

Answer function does not work on android 11.

Listener does not get called.

cordova.plugins.CordovaCall.on('answer', () => {
  // code
});

Device info:

Android OS: 11
Phone model: Xiaomi Mi Note 10 Lite
@mozhn
Copy link
Author

mozhn commented Mar 13, 2021

I think this is a general problem.

same device and problem: react-native-webrtc/react-native-callkeep#341

@Qvadis
Copy link

Qvadis commented Mar 31, 2021

I'm facing the same issue in two devices:

  • Oppo Find X2 Lite
  • Pocophone F2

What I found is that the onAnswer method overwritten in MyConnectionService is never called. The onReject it is called as usual.

In the Pocophone, I saw a trace that may lead us somewhere:

android.app.RemoteServiceException: Bad notification(tag=null, id=1) posted from package com.google.android.dialer, crashing app(uid=10177, pid=22614): Couldn't inflate contentViewsjava.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Notification$MessagingStyle android.app.Notification$MessagingStyle.setConversationType(int)' on a null object reference at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2047) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:7876) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)

I'll keep investigating, any help would be appreciated.

Cheers,
Borja.

@mozhn
Copy link
Author

mozhn commented Apr 5, 2021

I'm facing the same issue in two devices:

  • Oppo Find X2 Lite
  • Pocophone F2

What I found is that the onAnswer method overwritten in MyConnectionService is never called. The onReject it is called as usual.

In the Pocophone, I saw a trace that may lead us somewhere:

android.app.RemoteServiceException: Bad notification(tag=null, id=1) posted from package com.google.android.dialer, crashing app(uid=10177, pid=22614): Couldn't inflate contentViewsjava.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Notification$MessagingStyle android.app.Notification$MessagingStyle.setConversationType(int)' on a null object reference at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2047) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:7876) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)

I'll keep investigating, any help would be appreciated.

Cheers,
Borja.

Hello, is there any improvement on the subject?

@mozhn
Copy link
Author

mozhn commented May 23, 2021

There is a new improvement.

react-native-webrtc/react-native-callkeep#420

@haythamforever
Copy link

any fix so far ?

@gss-karthik
Copy link

gss-karthik commented Feb 14, 2022

Couldn't be able to click ANSWER when I get a call.

cordova.plugins.CordovaCall.on('answer', (answerData) => {
console.log("Answered");
});
I could see the issue in
OPPO F19s ColorOS v11.1 Android 11
and POCO m3 pro .

Working In samsung phones.

@Qvadis
Copy link

Qvadis commented Jun 16, 2022

Apparently, it is fixed in devices with Android 12 OS (tested it with POCO F2 PRO)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants