Skip to content

[Bug] RegistrationIntentService not found #1244

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

Closed
kadko opened this issue Mar 20, 2023 · 1 comment
Closed

[Bug] RegistrationIntentService not found #1244

kadko opened this issue Mar 20, 2023 · 1 comment

Comments

@kadko
Copy link

kadko commented Mar 20, 2023

[REQUIRED] Please fill in the following fields:

  • Pre-built SDK from the website or open-source from this repo: _____
  • Firebase C++ SDK version: 9.2.0, 10.6.0
  • Problematic Firebase Component: firebase-messaging
  • Other Firebase Components in use: firestore, auth, analytics
  • Platform you are using the C++ SDK on: Windows
  • Platform you are targeting:Android

[REQUIRED] Please describe the issue here:

After I add messaging service to my project app started to crash with this error.
It builds without error but " .... RegistrationIntentService not found" error at runtime.
If I comment out this line it works firebase::messaging::Initialize(*app, &listener);
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Steps to reproduce:

setup firestore, auth, analytics and messaging lib,
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur? when i start app after building APK in my device its crashing with mentioned error
This could be a description, log/console output, etc.

E/firebase: Java class com/google/firebase/messaging/cpp/RegistrationIntentService not found. Please verify the AAR which contains the com/google/firebase/messaging/cpp/RegistrationIntentService class is included in your app.

E/firebase: clazz

A/firebase: Java class com/google/firebase/messaging/cpp/RegistrationIntentService not found. Please verify the AAR which contains the com/google/firebase/messaging/cpp/RegistrationIntentService class is included in your app.

A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 26939 (GLThread 73389), pid 26894 (t.rotatingballs)

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Relevant Code:

problematic line is:

firebase::messaging::Initialize(*app, &listener);

// TODO(you): code here to reproduce the problem
@kadko kadko changed the title [Bug] [Bug] RegistrationIntentService not found Mar 20, 2023
@kadko
Copy link
Author

kadko commented Mar 20, 2023

I followed instructions on https://github.com/firebase/firebase-cpp-sdk and its worked now.
I defined required libs here
apply from: "$gradle.firebase_cpp_sdk_dir/Android/firebase_dependencies.gradle"
firebaseCpp.dependencies {
gma
auth
messaging
firestore
analytics
}

and copied permission and intent tags from this https://github.com/firebase/firebase-cpp-sdk/blob/8f3e19226639a3b91e5d879cdf5f3d867dbf8db4/messaging/AndroidManifest.xml

@AlmostMatt AlmostMatt added needs-attention Need Googler's attention api: messaging and removed new New issue. api: auth labels Apr 7, 2023
@AlmostMatt AlmostMatt removed the needs-attention Need Googler's attention label Apr 7, 2023
@firebase firebase locked and limited conversation to collaborators May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants