Firebase Услуги в AndroidManifest.xml:Firebase толчок уведомление (услуги не вызывается из манифеста, когда я запустить приложение)
<service
android:name="com.MyApp.app.services.MyFirebaseIDService"
android:enabled="true">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<service
android:name="com.MyApp.app.services.MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
Мои Gradle Libs:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':viewPagerIndicator')
compile 'com.viewpagerindicator:library:[email protected]'
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.android.support:recyclerview-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta3'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta3'
compile 'com.squareup.okhttp3:okhttp:3.0.0-RC1'
compile 'com.squareup.retrofit2:converter-scalars:2.0.0-beta3'
compile 'com.google.code.gson:gson:2.4'
compile 'com.google.guava:guava:19.0'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'de.hdodenhof:circleimageview:1.2.1'
compile 'com.github.PhilJay:MPAndroidChart:v2.2.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compile 'com.flaviofaria:kenburnsview:1.0.7'
compile 'devlight.io:navigationtabbar:1.2.5'
compile 'com.wdullaer:swipeactionadapter:2.0.0'}apply plugin: 'com.google.gms.google-services'
Я добавил onCreate на мои классы ударной бомбы:
@Override
public void onCreate() {
super.onCreate();
Log.v("Test", "Service Created");
}