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

Doesn't work in Android 12 #108

Open
malanchito opened this issue Sep 15, 2022 · 2 comments
Open

Doesn't work in Android 12 #108

malanchito opened this issue Sep 15, 2022 · 2 comments

Comments

@malanchito
Copy link

Like in a similar issue opened here in May the function startListenerTapped doesn't get called

  startListenerTapped = () => {
      this.callDetector = new CallDetectorManager((event, phoneNumber)=> {
        if (event === 'Offhook') {
          console.log('Offhook')
        }
        ...
  }

When i check and request the permissions using react-native-permissions i get 'denied' when i check and 'blocked' when i request it (so on the device i don't get asked to allow the permission)

check(PERMISSIONS.ANDROID.READ_PHONE_STATE)
      .then((result) => {
         console.log("PERMISSIONS:",result)
         request(PERMISSIONS.ANDROID.READ_PHONE_STATE).then((result1) => {
          console.log("PERMISSIONS request:",result1)
        });
      })
      .catch((error) => {
        console.log("PERMISSIONS:",error)
      });
@ciaoamigoschat
Copy link

Even myself problem.
Patch applied: #105
but events are not called mine.

@paulrinaldi
Copy link

paulrinaldi commented Oct 10, 2024

Is anyone else using the config plugin with expo and seeing the following error?

{
  name: 'PluginError',
  isPluginError: true,
  code: 'INVALID_PLUGIN_IMPORT',
  cause: undefined
}

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

3 participants