
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
react-native-background-timer-android
Advanced tools
setInterval and setTimeout that work even if the app is running in the background
This library provides setTimeout
and setInterval
implementations that keep working even if the app is running in the background or the screen is locked.
Based on react-native-background-timer but with major code changes and only works on Android.
yarn add react-native-background-timer-android
import Timer from "react-native-background-timer-android";
// Start a timer that will repeatedly log "tic" after 500 milliseconds
const intervalId = Timer.setInterval(() => console.log("tic"), 500);
// Cancel the timer when you are done with it
Timer.clearInterval(intervalId);
// Start a timer that will log "tic" after 500 milliseconds just once
const timeoutId = Timer.setTimeout(() => console.log("tic"), 500);
// Cancel the timer if needed
Timer.clearTimeout(timeoutId);
Timer.setInterval(callback: () => void, millis: number, onError?: (error: Error) => void): number;
Timer.setTimeout(callback: () => void, millis: number, onError?: (error: Error) => void): number;
Timer.clearInterval(id: number): Promise<void>;
Timer.clearTimeout(id: number): Promise<void>;
FAQs
setInterval and setTimeout that work even if the app is running in the background
The npm package react-native-background-timer-android receives a total of 413 weekly downloads. As such, react-native-background-timer-android popularity was classified as not popular.
We found that react-native-background-timer-android demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.