We are using this library in our app but receiving the following exception:
me.leolin.shortcutbadger.ShortcutBadgeException: No field extraNotification in class Landroid/app/Notification; (declaration of 'android.app.Notification' appears in /system/framework/framework.jar)
This is happening in following piece of code, can you provide any workaround for this? thanks
Field field = notification.getClass().getDeclaredField("extraNotification");
Object extraNotification = field.get(notification);
Method method = extraNotification.getClass().getDeclaredMethod("setMessageCount", int.class);
method.invoke(extraNotification, badgeCount);
We are using this library in our app but receiving the following exception:
me.leolin.shortcutbadger.ShortcutBadgeException: No field extraNotification in class Landroid/app/Notification; (declaration of 'android.app.Notification' appears in /system/framework/framework.jar)
This is happening in following piece of code, can you provide any workaround for this? thanks
Field field = notification.getClass().getDeclaredField("extraNotification"); Object extraNotification = field.get(notification); Method method = extraNotification.getClass().getDeclaredMethod("setMessageCount", int.class); method.invoke(extraNotification, badgeCount);