Я получаю следующее сообщение об ошибке при попытке настроить Push Notification:Не удалось решить Intent службу Android
06-07 01:05:59.735 18708-18708/com.ebr.apps.ebr.development E/FirebaseInstanceId: Failed to resolve target intent service, skipping classname enforcement
06-07 01:05:59.735 18708-18708/com.ebr.apps.ebr.development E/FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.
У меня есть разные вкусы в Gradle:
Мой код Имя пакета: com.ebr. apps.ebr Мой продукт аромат пакет: com.ebr.apps.ebr.development
Я поместил Google-services.json в приложение/SRC/развитие
Manifest:
<permission
android:name="${applicationId}.permission.C2D_MESSAGE"
android:protectionLevel="signature"/>
<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<service
android:name=".GCM.PushNotificationService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
</intent-filter>
</service>
Я посмотрел на много примеров, но все еще получаю эту ошибку.
Вы должны пометить это как принятый ответ. :) –
В документации указано: «Значение должно быть больше -1000 и менее 1000». Итак, '10000' нарочно? https://developer.android.com/reference/android/content/IntentFilter.html#SYSTEM_HIGH_PRIORITY – shkschneider