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
android push-notification
add a comment |
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
android push-notification
add a comment |
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
android push-notification
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
android push-notification
edited Nov 10 at 19:09
Vinit Poojary
1
1
asked Nov 10 at 19:04
user10536854
add a comment |
add a comment |
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));
still facing issue with small icon how to change background
– user10536854
Nov 10 at 20:44
add a comment |
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));
still facing issue with small icon how to change background
– user10536854
Nov 10 at 20:44
add a comment |
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));
still facing issue with small icon how to change background
– user10536854
Nov 10 at 20:44
add a comment |
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));
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));
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
add a comment |
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
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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