Notification not large image and icon not showing
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)
Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);
return new Notification.Builder(this, CreativeGraphy_CHANNEL_ID)
.setAutoCancel(true)
.setDefaults(Notification.DEFAULT_ALL)
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.creativegraphy)
.setContentTitle(Common.title)
.setContentText(Common.message)
.setLargeIcon(bitmap)
.setStyle(style)
.setContentInfo("Info")
.setContentIntent(pendingIntent);
android push-notification
add a comment |
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)
Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);
return new Notification.Builder(this, CreativeGraphy_CHANNEL_ID)
.setAutoCancel(true)
.setDefaults(Notification.DEFAULT_ALL)
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.creativegraphy)
.setContentTitle(Common.title)
.setContentText(Common.message)
.setLargeIcon(bitmap)
.setStyle(style)
.setContentInfo("Info")
.setContentIntent(pendingIntent);
android push-notification
add a comment |
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)
Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);
return new Notification.Builder(this, CreativeGraphy_CHANNEL_ID)
.setAutoCancel(true)
.setDefaults(Notification.DEFAULT_ALL)
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.creativegraphy)
.setContentTitle(Common.title)
.setContentText(Common.message)
.setLargeIcon(bitmap)
.setStyle(style)
.setContentInfo("Info")
.setContentIntent(pendingIntent);
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)
Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent =PendingIntent.getActivity(getApplicationContext(),0,intent,0);
return new Notification.Builder(this, CreativeGraphy_CHANNEL_ID)
.setAutoCancel(true)
.setDefaults(Notification.DEFAULT_ALL)
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.creativegraphy)
.setContentTitle(Common.title)
.setContentText(Common.message)
.setLargeIcon(bitmap)
.setStyle(style)
.setContentInfo("Info")
.setContentIntent(pendingIntent);
android push-notification
android push-notification
edited Nov 10 '18 at 19:09
Vinit Poojary
10513
10513
asked Nov 10 '18 at 19:04
user10536854
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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 '18 at 20:44
add a comment |
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',
autoActivateHeartbeat: false,
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
);
);
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
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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 '18 at 20:44
add a comment |
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 '18 at 20:44
add a comment |
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 '18 at 20:41
Vinit PoojaryVinit Poojary
10513
10513
still facing issue with small icon how to change background
– user10536854
Nov 10 '18 at 20:44
add a comment |
still facing issue with small icon how to change background
– user10536854
Nov 10 '18 at 20:44
still facing issue with small icon how to change background
– user10536854
Nov 10 '18 at 20:44
still facing issue with small icon how to change background
– user10536854
Nov 10 '18 at 20:44
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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