Comments (5)
the same problem (Android 11, [email protected])
from react-native-detector.
for my case ContentObserver::onChange(selfChange: Boolean, uri: Uri?, flags: Int)
was invoked with:
uri: content://media/external/images/media/59645
flags: 4
path: /storage/emulated/0/DCIM/Screenshots/.pending-1631296636-Screenshot_20210903-205716_DetectScreenshot.jpg
uri: content://media/external/images/media/59645
flags: 8
path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20210903-205716_DetectScreenshot.jpg
uri: content://media/external/images/media/59645
flags: 8
path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20210903-205716_DetectScreenshot.jpg
from react-native-detector.
As foreground you can use a throttle
@timothyerwin
from react-native-detector.
the issue has been fixed, now the package saves the latest path and compare it with the upcoming one if it's not matching it will be considered as new screenshots, all the screenshots name with timestamp so it wont be duplicated
from react-native-detector.
not working for me
import {
addScreenshotListener,
removeScreenshotListener,
} from 'react-native-detector';
userDidScreenshot = () => {
console.warn('lohin')
};
componentDidMount(){
addScreenshotListener(this.userDidScreenshot);
}
from react-native-detector.
Related Issues (18)
- How do we prevent the app from detecting screenshot when app is in background HOT 1
- Cannot build on [email protected], ScreenshotDetectionDelegate.kt: (25, 13): 'onChange' overrides nothing HOT 2
- Do we need to have Android Permission HOT 1
- i hope library support detector screen record :))
- iOS app crashing after 0.2.2 Upgrade HOT 6
- [0.2.2] Android still have duplicated screenshot events HOT 4
- Not logging HOT 3
- Does this only work on device (not simulator?) HOT 2
- Task :react-native-detector:compileDebugKotlin FAILED HOT 2
- `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method. HOT 2
- Undefined symbols _RCTRegisterModule issue
- Not able to detect Screenshot on Android 13. HOT 9
- Task :react-native-detector:lintDebug FAILED
- Can I handle before the iphone success take the screenshot
- Not working on IOS simulator..? HOT 1
- RN New Architecture
- addScreenshotListener event not receive in my release app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-detector.