OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.56k stars 373 forks source link

Didn't find class "com.google.firebase.iid.FirebaseInstanceId" #1222

Closed tinyCoder32 closed 3 years ago

tinyCoder32 commented 3 years ago

Description: Followed up the setup multiple times making sure everything is done correctly, the user is being added to onesignal's user list with a "No Push Token" error, while it throws the below error in Android Studio:

image

I also followed the troubleshooting guide, and found out some outdated documentaion (like the one in onesignal's main home page!):

Example (the init function doesn't exist anymore)

image

Environment

  1. What version of the OneSignal React-Native SDK are you using? Latest currently (4.1.0)

  2. How did you add the SDK to your project (eg. npm) npm

Steps to Reproduce Issue:

  1. Install OneSignal SDK using npm
  2. Initialize the SDK for android with OneSignal.setAppId("XXX")
  3. User appears on the list with a No Push Token error

image

jkasten2 commented 3 years ago

@tinyCoder32 Thanks for reporting!