Notification not large image and icon not showing









up vote
2
down vote

favorite













showNotificationWithImage(bitmap)



i get notification but image is not showing
while helper works why is other one is not getting image icon i tested in api 23 image is not show and anyone can get blank image



I have posted code with imports what am i doing wrong what is affecting this issue



 package com.blipclap.creativegraphy.FirebaseService;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.RequiresApi;
import android.support.v4.app.NotificationCompat;

import com.blipclap.creativegraphy.Common.Common;
import com.blipclap.creativegraphy.Helper.NotificationHelper;
import com.blipclap.creativegraphy.HomeActivity;
import com.blipclap.creativegraphy.R;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;

import java.util.Objects;
import java.util.Random;

public class mFirebaseInstanceService extends FirebaseMessagingService
@Override
public void onNewToken(String s)
super.onNewToken(s);


Target target =new Target()
@Override
public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
showNotificationWithImageLevel26(bitmap);
else
showNotificationWithImage(bitmap);


@Override
public void onBitmapFailed(Exception e, Drawable errorDrawable)



@Override
public void onPrepareLoad(Drawable placeHolderDrawable)


;
@RequiresApi(api = Build.VERSION_CODES.O)
private void showNotificationWithImageLevel26(Bitmap bitmap)
NotificationHelper helper=new NotificationHelper(getBaseContext());
Notification.Builder builder=helper.getChannel(Common.title,Common.message,bitmap);
helper.getManager().notify(0,(builder.build()));


private void showNotificationWithImage(Bitmap bitmap) Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);


NotificationCompat.Builder notificationBuilder =new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);
NotificationCompat.BigPictureStyle style =new NotificationCompat.BigPictureStyle();
notificationBuilder.setAutoCancel(true)
.setDefaults(Notification.DEFAULT_ALL)
.setWhen(System.currentTimeMillis())
.setSound(defaultSound)
.setSmallIcon(R.drawable.creativegraphy)
.setLargeIcon(bitmap)
.setStyle(style.bigPicture(bitmap).bigLargeIcon(null))
.setContentTitle(Common.title)
.setContentText(Common.message)
.setContentInfo("Info")
.setContentIntent(pendingIntent);

if (notificationManager != null)
notificationManager.notify(new Random().nextInt(), notificationBuilder.build());




@Override
public void onMessageReceived(RemoteMessage remoteMessage)
if (!remoteMessage.getData().isEmpty())
getImage(remoteMessage);


private void getImage(RemoteMessage remoteMessage)
Common.message=Objects.requireNonNull(remoteMessage.getNotification()).getBody();
Common.title=remoteMessage.getNotification().getTitle();

if (!remoteMessage.getData().isEmpty())
Common.imageLink =remoteMessage.getData().get("image");
Handler handler=new Handler(Looper.getMainLooper());
handler.post(() -> Picasso.get()
.load(remoteMessage.getData().get("image"))
.into(target));





this helper class this is working fine image is shown above api 26



package com.blipclap.creativegraphy.Helper;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Build;
import android.support.annotation.RequiresApi;

import com.blipclap.creativegraphy.Common.Common;
import com.blipclap.creativegraphy.HomeActivity;
import com.blipclap.creativegraphy.R;

public class NotificationHelper extends ContextWrapper
private static final String CreativeGraphy_CHANNEL_ID = "com.blipclap.creativegraphy.PNCG";
private static final String CreativeGraphy_CHANNEL_Name = "PNCG";
private NotificationManager manager;


public NotificationHelper(Context base)
super(base);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
createChannel();


@RequiresApi(api = Build.VERSION_CODES.O)
private void createChannel()
NotificationChannel channel = new NotificationChannel(CreativeGraphy_CHANNEL_ID, CreativeGraphy_CHANNEL_Name, NotificationManager.IMPORTANCE_DEFAULT);
channel.enableLights(true);
channel.enableVibration(true);
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);

getManager().createNotificationChannel(channel);


public NotificationManager getManager()
if (manager == null)
manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
return manager;

@RequiresApi(api = Build.VERSION_CODES.O)
public Notification.Builder getChannel(String title, String body, Bitmap bitmap)

Notification.Style style =new Notification.BigPictureStyle().bigPicture(bitmap).bigLargeIcon((Bitmap) null);

Intent intent =new Intent(getApplicationContext(),HomeActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP










share|improve this question



























    up vote
    2
    down vote

    favorite













    showNotificationWithImage(bitmap)



    i get notification but image is not showing
    while helper works why is other one is not getting image icon i tested in api 23 image is not show and anyone can get blank image



    I have posted code with imports what am i doing wrong what is affecting this issue



     package com.blipclap.creativegraphy.FirebaseService;

    import android.app.Notification;
    import android.app.NotificationChannel;
    import android.app.NotificationManager;
    import android.app.PendingIntent;
    import android.content.Context;
    import android.content.Intent;
    import android.graphics.Bitmap;
    import android.graphics.Color;
    import android.graphics.drawable.Drawable;
    import android.media.RingtoneManager;
    import android.net.Uri;
    import android.os.Build;
    import android.os.Handler;
    import android.os.Looper;
    import android.support.annotation.RequiresApi;
    import android.support.v4.app.NotificationCompat;

    import com.blipclap.creativegraphy.Common.Common;
    import com.blipclap.creativegraphy.Helper.NotificationHelper;
    import com.blipclap.creativegraphy.HomeActivity;
    import com.blipclap.creativegraphy.R;
    import com.google.firebase.messaging.FirebaseMessagingService;
    import com.google.firebase.messaging.RemoteMessage;
    import com.squareup.picasso.Picasso;
    import com.squareup.picasso.Target;

    import java.util.Objects;
    import java.util.Random;

    public class mFirebaseInstanceService extends FirebaseMessagingService
    @Override
    public void onNewToken(String s)
    super.onNewToken(s);


    Target target =new Target()
    @Override
    public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from)
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
    showNotificationWithImageLevel26(bitmap);
    else
    showNotificationWithImage(bitmap);


    @Override
    public void onBitmapFailed(Exception e, Drawable errorDrawable)



    @Override
    public void onPrepareLoad(Drawable placeHolderDrawable)


    ;
    @RequiresApi(api = Build.VERSION_CODES.O)
    private void showNotificationWithImageLevel26(Bitmap bitmap)
    NotificationHelper helper=new NotificationHelper(getBaseContext());
    Notification.Builder builder=helper.getChannel(Common.title,Common.message,bitmap);
    helper.getManager().notify(0,(builder.build()));


    private void showNotificationWithImage(Bitmap bitmap) Intent.FLAG_ACTIVITY_SINGLE_TOP);
    PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);


    NotificationCompat.Builder notificationBuilder =new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);
    NotificationCompat.BigPictureStyle style =new NotificationCompat.BigPictureStyle();
    notificationBuilder.setAutoCancel(true)
    .setDefaults(Notification.DEFAULT_ALL)
    .setWhen(System.currentTimeMillis())
    .setSound(defaultSound)
    .setSmallIcon(R.drawable.creativegraphy)
    .setLargeIcon(bitmap)
    .setStyle(style.bigPicture(bitmap).bigLargeIcon(null))
    .setContentTitle(Common.title)
    .setContentText(Common.message)
    .setContentInfo("Info")
    .setContentIntent(pendingIntent);

    if (notificationManager != null)
    notificationManager.notify(new Random().nextInt(), notificationBuilder.build());




    @Override
    public void onMessageReceived(RemoteMessage remoteMessage)
    if (!remoteMessage.getData().isEmpty())
    getImage(remoteMessage);


    private void getImage(RemoteMessage remoteMessage)
    Common.message=Objects.requireNonNull(remoteMessage.getNotification()).getBody();
    Common.title=remoteMessage.getNotification().getTitle();

    if (!remoteMessage.getData().isEmpty())
    Common.imageLink =remoteMessage.getData().get("image");
    Handler handler=new Handler(Looper.getMainLooper());
    handler.post(() -> Picasso.get()
    .load(remoteMessage.getData().get("image"))
    .into(target));





    this helper class this is working fine image is shown above api 26



    package com.blipclap.creativegraphy.Helper;

    import android.app.Notification;
    import android.app.NotificationChannel;
    import android.app.NotificationManager;
    import android.app.PendingIntent;
    import android.content.Context;
    import android.content.ContextWrapper;
    import android.content.Intent;
    import android.graphics.Bitmap;
    import android.os.Build;
    import android.support.annotation.RequiresApi;

    import com.blipclap.creativegraphy.Common.Common;
    import com.blipclap.creativegraphy.HomeActivity;
    import com.blipclap.creativegraphy.R;

    public class NotificationHelper extends ContextWrapper
    private static final String CreativeGraphy_CHANNEL_ID = "com.blipclap.creativegraphy.PNCG";
    private static final String CreativeGraphy_CHANNEL_Name = "PNCG";
    private NotificationManager manager;


    public NotificationHelper(Context base)
    super(base);
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
    createChannel();


    @RequiresApi(api = Build.VERSION_CODES.O)
    private void createChannel()
    NotificationChannel channel = new NotificationChannel(CreativeGraphy_CHANNEL_ID, CreativeGraphy_CHANNEL_Name, NotificationManager.IMPORTANCE_DEFAULT);
    channel.enableLights(true);
    channel.enableVibration(true);
    channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);

    getManager().createNotificationChannel(channel);


    public NotificationManager getManager()
    if (manager == null)
    manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    return manager;

    @RequiresApi(api = Build.VERSION_CODES.O)
    public Notification.Builder getChannel(String title, String body, Bitmap bitmap)

    Notification.Style style =new Notification.BigPictureStyle().bigPicture(bitmap).bigLargeIcon((Bitmap) null);

    Intent intent =new Intent(getApplicationContext(),HomeActivity.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP










    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite












      showNotificationWithImage(bitmap)



      i get notification but image is not showing
      while helper works why is other one is not getting image icon i tested in api 23 image is not show and anyone can get blank image



      I have posted code with imports what am i doing wrong what is affecting this issue



       package com.blipclap.creativegraphy.FirebaseService;

      import android.app.Notification;
      import android.app.NotificationChannel;
      import android.app.NotificationManager;
      import android.app.PendingIntent;
      import android.content.Context;
      import android.content.Intent;
      import android.graphics.Bitmap;
      import android.graphics.Color;
      import android.graphics.drawable.Drawable;
      import android.media.RingtoneManager;
      import android.net.Uri;
      import android.os.Build;
      import android.os.Handler;
      import android.os.Looper;
      import android.support.annotation.RequiresApi;
      import android.support.v4.app.NotificationCompat;

      import com.blipclap.creativegraphy.Common.Common;
      import com.blipclap.creativegraphy.Helper.NotificationHelper;
      import com.blipclap.creativegraphy.HomeActivity;
      import com.blipclap.creativegraphy.R;
      import com.google.firebase.messaging.FirebaseMessagingService;
      import com.google.firebase.messaging.RemoteMessage;
      import com.squareup.picasso.Picasso;
      import com.squareup.picasso.Target;

      import java.util.Objects;
      import java.util.Random;

      public class mFirebaseInstanceService extends FirebaseMessagingService
      @Override
      public void onNewToken(String s)
      super.onNewToken(s);


      Target target =new Target()
      @Override
      public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from)
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
      showNotificationWithImageLevel26(bitmap);
      else
      showNotificationWithImage(bitmap);


      @Override
      public void onBitmapFailed(Exception e, Drawable errorDrawable)



      @Override
      public void onPrepareLoad(Drawable placeHolderDrawable)


      ;
      @RequiresApi(api = Build.VERSION_CODES.O)
      private void showNotificationWithImageLevel26(Bitmap bitmap)
      NotificationHelper helper=new NotificationHelper(getBaseContext());
      Notification.Builder builder=helper.getChannel(Common.title,Common.message,bitmap);
      helper.getManager().notify(0,(builder.build()));


      private void showNotificationWithImage(Bitmap bitmap) Intent.FLAG_ACTIVITY_SINGLE_TOP);
      PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);


      NotificationCompat.Builder notificationBuilder =new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);
      NotificationCompat.BigPictureStyle style =new NotificationCompat.BigPictureStyle();
      notificationBuilder.setAutoCancel(true)
      .setDefaults(Notification.DEFAULT_ALL)
      .setWhen(System.currentTimeMillis())
      .setSound(defaultSound)
      .setSmallIcon(R.drawable.creativegraphy)
      .setLargeIcon(bitmap)
      .setStyle(style.bigPicture(bitmap).bigLargeIcon(null))
      .setContentTitle(Common.title)
      .setContentText(Common.message)
      .setContentInfo("Info")
      .setContentIntent(pendingIntent);

      if (notificationManager != null)
      notificationManager.notify(new Random().nextInt(), notificationBuilder.build());




      @Override
      public void onMessageReceived(RemoteMessage remoteMessage)
      if (!remoteMessage.getData().isEmpty())
      getImage(remoteMessage);


      private void getImage(RemoteMessage remoteMessage)
      Common.message=Objects.requireNonNull(remoteMessage.getNotification()).getBody();
      Common.title=remoteMessage.getNotification().getTitle();

      if (!remoteMessage.getData().isEmpty())
      Common.imageLink =remoteMessage.getData().get("image");
      Handler handler=new Handler(Looper.getMainLooper());
      handler.post(() -> Picasso.get()
      .load(remoteMessage.getData().get("image"))
      .into(target));





      this helper class this is working fine image is shown above api 26



      package com.blipclap.creativegraphy.Helper;

      import android.app.Notification;
      import android.app.NotificationChannel;
      import android.app.NotificationManager;
      import android.app.PendingIntent;
      import android.content.Context;
      import android.content.ContextWrapper;
      import android.content.Intent;
      import android.graphics.Bitmap;
      import android.os.Build;
      import android.support.annotation.RequiresApi;

      import com.blipclap.creativegraphy.Common.Common;
      import com.blipclap.creativegraphy.HomeActivity;
      import com.blipclap.creativegraphy.R;

      public class NotificationHelper extends ContextWrapper
      private static final String CreativeGraphy_CHANNEL_ID = "com.blipclap.creativegraphy.PNCG";
      private static final String CreativeGraphy_CHANNEL_Name = "PNCG";
      private NotificationManager manager;


      public NotificationHelper(Context base)
      super(base);
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
      createChannel();


      @RequiresApi(api = Build.VERSION_CODES.O)
      private void createChannel()
      NotificationChannel channel = new NotificationChannel(CreativeGraphy_CHANNEL_ID, CreativeGraphy_CHANNEL_Name, NotificationManager.IMPORTANCE_DEFAULT);
      channel.enableLights(true);
      channel.enableVibration(true);
      channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);

      getManager().createNotificationChannel(channel);


      public NotificationManager getManager()
      if (manager == null)
      manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      return manager;

      @RequiresApi(api = Build.VERSION_CODES.O)
      public Notification.Builder getChannel(String title, String body, Bitmap bitmap)

      Notification.Style style =new Notification.BigPictureStyle().bigPicture(bitmap).bigLargeIcon((Bitmap) null);

      Intent intent =new Intent(getApplicationContext(),HomeActivity.class);
      intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP










      share|improve this question
















      showNotificationWithImage(bitmap)



      i get notification but image is not showing
      while helper works why is other one is not getting image icon i tested in api 23 image is not show and anyone can get blank image



      I have posted code with imports what am i doing wrong what is affecting this issue



       package com.blipclap.creativegraphy.FirebaseService;

      import android.app.Notification;
      import android.app.NotificationChannel;
      import android.app.NotificationManager;
      import android.app.PendingIntent;
      import android.content.Context;
      import android.content.Intent;
      import android.graphics.Bitmap;
      import android.graphics.Color;
      import android.graphics.drawable.Drawable;
      import android.media.RingtoneManager;
      import android.net.Uri;
      import android.os.Build;
      import android.os.Handler;
      import android.os.Looper;
      import android.support.annotation.RequiresApi;
      import android.support.v4.app.NotificationCompat;

      import com.blipclap.creativegraphy.Common.Common;
      import com.blipclap.creativegraphy.Helper.NotificationHelper;
      import com.blipclap.creativegraphy.HomeActivity;
      import com.blipclap.creativegraphy.R;
      import com.google.firebase.messaging.FirebaseMessagingService;
      import com.google.firebase.messaging.RemoteMessage;
      import com.squareup.picasso.Picasso;
      import com.squareup.picasso.Target;

      import java.util.Objects;
      import java.util.Random;

      public class mFirebaseInstanceService extends FirebaseMessagingService
      @Override
      public void onNewToken(String s)
      super.onNewToken(s);


      Target target =new Target()
      @Override
      public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from)
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
      showNotificationWithImageLevel26(bitmap);
      else
      showNotificationWithImage(bitmap);


      @Override
      public void onBitmapFailed(Exception e, Drawable errorDrawable)



      @Override
      public void onPrepareLoad(Drawable placeHolderDrawable)


      ;
      @RequiresApi(api = Build.VERSION_CODES.O)
      private void showNotificationWithImageLevel26(Bitmap bitmap)
      NotificationHelper helper=new NotificationHelper(getBaseContext());
      Notification.Builder builder=helper.getChannel(Common.title,Common.message,bitmap);
      helper.getManager().notify(0,(builder.build()));


      private void showNotificationWithImage(Bitmap bitmap) Intent.FLAG_ACTIVITY_SINGLE_TOP);
      PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);


      NotificationCompat.Builder notificationBuilder =new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);
      NotificationCompat.BigPictureStyle style =new NotificationCompat.BigPictureStyle();
      notificationBuilder.setAutoCancel(true)
      .setDefaults(Notification.DEFAULT_ALL)
      .setWhen(System.currentTimeMillis())
      .setSound(defaultSound)
      .setSmallIcon(R.drawable.creativegraphy)
      .setLargeIcon(bitmap)
      .setStyle(style.bigPicture(bitmap).bigLargeIcon(null))
      .setContentTitle(Common.title)
      .setContentText(Common.message)
      .setContentInfo("Info")
      .setContentIntent(pendingIntent);

      if (notificationManager != null)
      notificationManager.notify(new Random().nextInt(), notificationBuilder.build());




      @Override
      public void onMessageReceived(RemoteMessage remoteMessage)
      if (!remoteMessage.getData().isEmpty())
      getImage(remoteMessage);


      private void getImage(RemoteMessage remoteMessage)
      Common.message=Objects.requireNonNull(remoteMessage.getNotification()).getBody();
      Common.title=remoteMessage.getNotification().getTitle();

      if (!remoteMessage.getData().isEmpty())
      Common.imageLink =remoteMessage.getData().get("image");
      Handler handler=new Handler(Looper.getMainLooper());
      handler.post(() -> Picasso.get()
      .load(remoteMessage.getData().get("image"))
      .into(target));





      this helper class this is working fine image is shown above api 26



      package com.blipclap.creativegraphy.Helper;

      import android.app.Notification;
      import android.app.NotificationChannel;
      import android.app.NotificationManager;
      import android.app.PendingIntent;
      import android.content.Context;
      import android.content.ContextWrapper;
      import android.content.Intent;
      import android.graphics.Bitmap;
      import android.os.Build;
      import android.support.annotation.RequiresApi;

      import com.blipclap.creativegraphy.Common.Common;
      import com.blipclap.creativegraphy.HomeActivity;
      import com.blipclap.creativegraphy.R;

      public class NotificationHelper extends ContextWrapper
      private static final String CreativeGraphy_CHANNEL_ID = "com.blipclap.creativegraphy.PNCG";
      private static final String CreativeGraphy_CHANNEL_Name = "PNCG";
      private NotificationManager manager;


      public NotificationHelper(Context base)
      super(base);
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
      createChannel();


      @RequiresApi(api = Build.VERSION_CODES.O)
      private void createChannel()
      NotificationChannel channel = new NotificationChannel(CreativeGraphy_CHANNEL_ID, CreativeGraphy_CHANNEL_Name, NotificationManager.IMPORTANCE_DEFAULT);
      channel.enableLights(true);
      channel.enableVibration(true);
      channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);

      getManager().createNotificationChannel(channel);


      public NotificationManager getManager()
      if (manager == null)
      manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      return manager;

      @RequiresApi(api = Build.VERSION_CODES.O)
      public Notification.Builder getChannel(String title, String body, Bitmap bitmap)

      Notification.Style style =new Notification.BigPictureStyle().bigPicture(bitmap).bigLargeIcon((Bitmap) null);

      Intent intent =new Intent(getApplicationContext(),HomeActivity.class);
      intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP







      android push-notification






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 at 19:09









      Vinit Poojary

      1




      1










      asked Nov 10 at 19:04







      user10536854





























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Resize Picasso it will start working bro



          Picasso.get()
          .load(remoteMessage.getData().get("image"))
          .resize(500,500)
          .centerCrop()
          .memoryPolicy(MemoryPolicy.NO_CACHE)
          .networkPolicy(NetworkPolicy.NO_CACHE)
          .into(target));





          share|improve this answer




















          • still facing issue with small icon how to change background
            – user10536854
            Nov 10 at 20:44










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242435%2fnotification-not-large-image-and-icon-not-showing%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown
























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          Resize Picasso it will start working bro



          Picasso.get()
          .load(remoteMessage.getData().get("image"))
          .resize(500,500)
          .centerCrop()
          .memoryPolicy(MemoryPolicy.NO_CACHE)
          .networkPolicy(NetworkPolicy.NO_CACHE)
          .into(target));





          share|improve this answer




















          • still facing issue with small icon how to change background
            – user10536854
            Nov 10 at 20:44














          up vote
          0
          down vote



          accepted










          Resize Picasso it will start working bro



          Picasso.get()
          .load(remoteMessage.getData().get("image"))
          .resize(500,500)
          .centerCrop()
          .memoryPolicy(MemoryPolicy.NO_CACHE)
          .networkPolicy(NetworkPolicy.NO_CACHE)
          .into(target));





          share|improve this answer




















          • still facing issue with small icon how to change background
            – user10536854
            Nov 10 at 20:44












          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          Resize Picasso it will start working bro



          Picasso.get()
          .load(remoteMessage.getData().get("image"))
          .resize(500,500)
          .centerCrop()
          .memoryPolicy(MemoryPolicy.NO_CACHE)
          .networkPolicy(NetworkPolicy.NO_CACHE)
          .into(target));





          share|improve this answer












          Resize Picasso it will start working bro



          Picasso.get()
          .load(remoteMessage.getData().get("image"))
          .resize(500,500)
          .centerCrop()
          .memoryPolicy(MemoryPolicy.NO_CACHE)
          .networkPolicy(NetworkPolicy.NO_CACHE)
          .into(target));






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 10 at 20:41









          Vinit Poojary

          1




          1











          • still facing issue with small icon how to change background
            – user10536854
            Nov 10 at 20:44
















          • still facing issue with small icon how to change background
            – user10536854
            Nov 10 at 20:44















          still facing issue with small icon how to change background
          – user10536854
          Nov 10 at 20:44




          still facing issue with small icon how to change background
          – user10536854
          Nov 10 at 20:44

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242435%2fnotification-not-large-image-and-icon-not-showing%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          Node.js Script on GitHub Pages or Amazon S3

          Museum of Modern and Contemporary Art of Trento and Rovereto