0

I am using GCM in my android application, to start my GcmIntentService service I have WakefulBroadcastReceiver

public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        ComponentName comp = new ComponentName(context.getPackageName(), GcmIntentService.class.getName());
        startWakefulService(context, (intent.setComponent(comp)));
        setResultCode(Activity.RESULT_OK);
    }
}

If the application is in foreground, everything works ok. But if the application runs in background, extra notification is generated, when I check logcat logs, there are messages from Firebase

09-22 14:10:56.392 28401-29137/com.myapp.android.debug W/FirebaseMessaging: Icon resource myicon not found. Notification will use app icon.

pepela
  • 423
  • 5
  • 17
Nininea
  • 2,671
  • 6
  • 31
  • 57

0 Answers0