there are examples here to get familiar to android push notification.
target platform is android 4.0+
.
don't forget to add following dependency to your module level gradle build script.
dependencies {
implementation "com.android.support:support-compat:27.1.1"
}