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

android 12 error #223

Open
gosofttech008 opened this issue Jan 3, 2023 · 1 comment
Open

android 12 error #223

gosofttech008 opened this issue Jan 3, 2023 · 1 comment

Comments

@gosofttech008
Copy link

image

anyone help

@moeezahmad77
Copy link

moeezahmad77 commented Jun 22, 2023

Hi @gosofttech008,

I noticed that you're encountering an issue related to the rntwilliovoice.initwithaccesstoken method and a failure to resolve com.google.firebase.iid.FirebaseInstanceId. I can see that you're using the Twilio Programmable Voice library along with Firebase dependencies.

The error you're seeing is likely due to a conflict between different versions of the Firebase SDK dependencies. The FirebaseInstanceId class has been deprecated in newer versions of Firebase, and it has been replaced with FirebaseMessaging for handling messaging and token retrieval.

To resolve this issue, I would recommend the following steps:

  1. Make sure you're using the latest version of the Twilio Programmable Voice library. Check for any updates in the library's documentation or the GitHub repository.

  2. Update your project's Firebase dependencies to use the following versions:
    @react-native-firebase/app: ^8.4.7
    @react-native-firebase/messaging: ^7.1.7

  3. Alternatively, you can also find any other Firebase version in which FirebaseInstanceId is not deprecated and use a compatible/relevant version of the Firebase Messaging library as well.

Clean and rebuild your project to ensure all the dependencies are correctly resolved.

By following these steps, you should be able to resolve the issue related to FirebaseInstanceId

Let me know if you have any further questions or if there's anything else I can assist you with.

Best regards,
Moeez Ahmad

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

2 participants