ocetnik / react-native-background-timer

Emit event periodically (even when app is in the background)
MIT License
1.61k stars 228 forks source link

Lint error causing build fail - "InvalidWakeLockTag" #531

Open phil-hudson opened 2 months ago

phil-hudson commented 2 months ago

Lint found 1 errors, 2 warnings. First failure:

BackgroundTimerModule.java:39: Error: Tag name should use a unique prefix followed by a colon (found rohit_bg_wakelock). For instance myapp:mywakelocktag. This will help with debugging [InvalidWakeLockTag]
        this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "rohit_bg_wakelock");
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ChrisLeeNewr commented 2 months ago

I have also been getting this error

kim-dong-joo commented 3 weeks ago

@ChrisLeeNewr @phil-hudson

https://www.npmjs.com/package/@boterop/react-native-background-timer