Comments (5)
The react-native-foreground-service solved my problem. With react-native-foreground-service the application remains running as if it were in the foreground, even when the user closes the app (a notification is displayed to inform that the app is still running). To do this, simply starts both the call detector listener and the foreground service on componentDidMount and do not close them with componentWillUnmount. Hope this solves your problem.
from react-native-call-detection.
@syllasrangel great, but i have to support android 7. then it is not a solution. right?
from react-native-call-detection.
@syllasrangel great, but i have to support android 7. then it is not a solution. right?
Actually, the react native foreground service supports Android 7 as well. Indeed, the demo provided by the module requires minimum SDK version 19 (Android 4.4).
from react-native-call-detection.
Hi! Apparently I'm doing something wrong, but I can't listen to calls in the background. How is this supposed to work? If necessary, I can attach the project code.
from react-native-call-detection.
from react-native-call-detection.
Related Issues (20)
- Execution failed for task ':react-native-call-detection:compileDebugUnitTestJavaWithJavac'.
- Is this package works in the background also (android/ios)?
- Migrate to using onAudioFocusChange() instead of READ_PHONE_STATE?
- Not Work in Android 12 HOT 13
- Event Issue - IOS
- Doesn't work in Android 12 HOT 1
- Query: Reject Call
- On android 12 and 13 its not working and app is crashing Is this still maintained?
- [Expo] Library not working out-of-the-box HOT 5
- Task :app:processDebugMainManifest FAILED HOT 7
- Crashing on android 10? HOT 2
- Not able to detect whether call is connected or not in Android device
- Not able to track phone number on Android 14 HOT 1
- phone number is not getting
- phone number not recieved HOT 1
- Detect the state when starting the app
- App got crashes when it is running in background HOT 3
- Not working on android
- react-native-call-detection not working in android 10 & 11 HOT 2
- Tag for v1.9.0 doesn't exist
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-call-detection.