hoxfon / react-native-twilio-programmable-voice

React Native wrapper for Twilio Programmable Voice SDK
MIT License
181 stars 152 forks source link

android 12 error #223

Open gosofttech008 opened 1 year ago

gosofttech008 commented 1 year ago

image

anyone help

moeezahmad77 commented 1 year ago

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