Can't add Firebase FCM for notifications on my app (SDK Android 5.0). Why?

Viewed 20

Using LTS Android Studio, I made an app with the SDK of Android 5.0. I connected the app with Firebase but on step 2 of "Add FCM to your app", does not work. In fact, it does not do anything.

Trying to add implementation 'com.google.firebase:firebase-messaging:23.0.8' on build.gradle, doesn't help either. Throws a compilation error. I have to use classpath 'com.google.firebase:firebase-messaging:23.0.8' for it to compile properly, but when I launch the notification on Firebase, it does not receive it.

I indeed added the Internet permission on the manifest. Doesn't work either.

Any help is appreciated.

Edit: I was adding the library to the wrong place + Firebase takes some minutes to send the notification.

1 Answers

Because google is end support of android 5 lollipop.You need to add sdk 21 means android naugat android 7 least requirement to use latest sdk in android devices.

Related