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

Can not resolve Symbol FirebaseInstanceId . I am unable to run the build , build gets failed . #1147

Open
Ankitanni opened this issue May 13, 2021 · 5 comments

Comments

@Ankitanni
Copy link

Before openning an issue

  1. Reproduce it with the example project in this repo.
  2. If you can't receive iOS notification, make sure you can receive notification using quickstart-ios project provided by Firebase team

When openning an issue, please include following information for better support

  1. What version of RN and react-native-fcm are you running?
  2. What device are you using? (e.g iOS9 emulator, Android 6 device)?
  3. Is your app running in foreground, background or not running?
@Nghiatran2611
Copy link

I am also facing the same problem

"react-native": "0.59.10"
"react-native-fcm": "16.2.4",

Running on android device and android emulator is failed

My project is not running suddenly with the following error. Please help.

Screen Shot 2021-05-20 at 4 09 12 PM

@teckbeng-payboy
Copy link

this project is deprecated

@BarshaPal
Copy link

dependencies
{
implementation 'com.google.firebase:firebase-core:17.2.1'
}
use this dependency in your build.gradle Module dependency

@rupakTj
Copy link

rupakTj commented Feb 23, 2022

as per official doc - https://firebase.google.com/docs/cloud-messaging/android/client#retrieve-the-current-registration-token

with
implementation 'com.google.firebase:firebase-messaging:23.0.0'

need to use -
FirebaseMessaging.getInstance().token.addOnCompleteListener(OnCompleteListener { task ->
if (!task.isSuccessful) {
toast(getString(R.string.fcm_token_fetch_error))
return@OnCompleteListener
}
val token = task.result
updateFcmToken(token)
})

@fayeqfayez1
Copy link

fun setNewFcm() {
    FirebaseMessaging.getInstance().token.addOnCompleteListener { task ->
        if (!task.isSuccessful) {
            return@addOnCompleteListener
        }
        if (task.result != null) {
            val token: String = task.result
            AppSharedData.setFcmToken(token)
        }
    }
}

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

6 participants