Please provide the following:
- SDK Version: 38
- Platforms(Android/iOS/web/all): Android
08-06 19:13:17.635: D/expo-notifications(19350): Could not have set badge count: Unable to execute badge
08-06 19:13:17.635: W/System.err(19350): j.a.a.b: Unable to execute badge
08-06 19:13:17.637: W/System.err(19350): at j.a.a.c.b(ShortcutBadger.java:5)
08-06 19:13:17.637: W/System.err(19350): at expo.modules.notifications.badge.ExpoBadgeManager.setBadgeCount(ExpoBadgeManager.java:1)
08-06 19:13:17.637: W/System.err(19350): at expo.modules.notifications.badge.BadgeModule.setBadgeCountAsync(BadgeModule.java:1)
08-06 19:13:17.637: W/System.err(19350): at java.lang.reflect.Method.invoke(Native Method)
08-06 19:13:17.637: W/System.err(19350): at l.d.b.c.invokeExportedMethod(ExportedModule.java:8)
08-06 19:13:17.637: W/System.err(19350): at org.unimodules.adapters.react.NativeModulesProxy.callMethod(NativeModulesProxy.java:7)
08-06 19:13:17.637: W/System.err(19350): at java.lang.reflect.Method.invoke(Native Method)
08-06 19:13:17.637: W/System.err(19350): at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:18)
08-06 19:13:17.637: W/System.err(19350): at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:2)
08-06 19:13:17.637: W/System.err(19350): at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
08-06 19:13:17.637: W/System.err(19350): at android.os.Handler.handleCallback(Handler.java:873)
08-06 19:13:17.637: W/System.err(19350): at android.os.Handler.dispatchMessage(Handler.java:99)
08-06 19:13:17.637: W/System.err(19350): at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:1)
08-06 19:13:17.637: W/System.err(19350): at android.os.Looper.loop(Looper.java:193)
08-06 19:13:17.637: W/System.err(19350): at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:8)
08-06 19:13:17.637: W/System.err(19350): at java.lang.Thread.run(Thread.java:764)
08-06 19:13:17.637: W/System.err(19350): Caused by: j.a.a.b: unable to resolve intent: Intent { act=android.intent.action.BADGE_COUNT_UPDATE (has extras) }
08-06 19:13:17.637: W/System.err(19350): at j.a.a.d.a.c(BroadcastHelper.java:7)
08-06 19:13:17.637: W/System.err(19350): at j.a.a.d.a.b(BroadcastHelper.java:5)
08-06 19:13:17.637: W/System.err(19350): at me.leolin.shortcutbadger.impl.DefaultBadger.a(DefaultBadger.java:5)
08-06 19:13:17.637: W/System.err(19350): at j.a.a.c.b(ShortcutBadger.java:4)
08-06 19:13:17.637: W/System.err(19350): ... 15 more
08-06 19:13:17.646: W/surfaceflinger(640): type=1400 audit(0.0:485): avc: denied { read } for name="u:object_r:vendor_display_prop:s0" dev="tmpfs" ino=25060 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_display_prop:s0 tclass=file permissive=0
08-06 19:13:17.648: E/libc(640): Access denied finding property "vendor.debug.egl.swapinterval"
08-06 19:13:17.650: W/surfaceflinger(640): type=1400 audit(0.0:486): avc: denied { read } for name="u:object_r:vendor_display_prop:s0" dev="tmpfs" ino=25060 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_display_prop:s0 tclass=file permissive=0
08-06 19:13:17.652: E/libc(640): Access denied finding property "vendor.debug.egl.swapinterval"
08-06 19:13:17.653: I/GoogleInputMethod(3404): onFinishInput() : Dummy InputConnection bound
08-06 19:13:17.654: I/GoogleInputMethod(3404): onStartInput() : Dummy InputConnection bound
08-06 19:13:17.662: W/SurfaceFlinger(640): Attempting to set client state on removed layer: SnapshotStartingWindow for taskId=5#0
08-06 19:13:17.662: W/SurfaceFlinger(640): Attempting to destroy on removed layer: SnapshotStartingWindow for taskId=5#0
08-06 19:13:17.664: E/libc(640): Access denied finding property "vendor.debug.egl.swapinterval"
08-06 19:13:17.681: I/chatty(640): uid=1000(system) /system/bin/surfaceflinger identical 3 lines
08-06 19:13:17.694: E/libc(640): Access denied finding property "vendor.debug.egl.swapinterval"
import * as Notifications from 'expo-notifications';
_handleAppStateChange = nextAppState => {
if (
this.state.appState.match(/inactive|background/) &&
nextAppState === "active"
) {
Notifications.setBadgeCountAsync(0);
}
this.setState({ appState: nextAppState });
};