Skip to content

Commit

Permalink
Add module name to wakelock (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
boterop authored Apr 27, 2024
1 parent 05fa9ff commit 676ede0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public BackgroundTimerModule(ReactApplicationContext reactContext) {
super(reactContext);
this.reactContext = reactContext;
this.powerManager = (PowerManager) getReactApplicationContext().getSystemService(reactContext.POWER_SERVICE);
this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "rohit_bg_wakelock");
this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "react-native-background-timer:wakelock");
reactContext.addLifecycleEventListener(listener);
}

Expand Down

0 comments on commit 676ede0

Please sign in to comment.