For me, the solution works when combining the two answers from here:
First I installed the target version of sdk
<preference name="android-targetSdkVersion" value="20"/>
And then I edited the plugin code, as suggested here, in the GCMIntentService class, which modified the setNotificationSmallIcon method:
private void setNotificationSmallIcon(Context context, Bundle extras, String packageName, Resources resources, NotificationCompat.Builder mBuilder, String localIcon) { mBuilder.setSmallIcon(getApplicationContext().getApplicationInfo().icon); }
or if you want to set a custom icon, use
private void setNotificationSmallIcon(Context context, Bundle extras, String packageName, Resources resources, NotificationCompat.Builder mBuilder, String localIcon) { mBuilder.setSmallIcon(<your.package.name>.R.drawable.<notification-drawable-name>); }
galvan
source share