I'm trying to get access to the camera while the app is in the background (e.g. the phone is locked). As it turns out, Android 9 does not allow to do that unless you are trying to get access using a foreground service. I'm using ionic framework in my application (camera is being accessed using navigator interface). Is there any way to run JS from the foreground service using native plugins or by any other means?
How to access camera in background using ionic capacitor/cordova on Android 9
546 Views Asked by Vasniktel At
0
There are 0 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in CORDOVA
- CFBundleDocumentType is not working in myproject-Info.plist file
- ionic build android failure - Execution failed for task processDebugResources
- How do I properly restrict a .on('click tap') event from triggering more than once per click?
- Android Status Bar Icon Size - Using Cordova / Phonegap Push Plugin
- ionic serve uncaught exception
- PhoneGap: Offline App Use
- Visual Studio 2015 Cordova Plugin Add Fail
- Tools for Apache Cordova - Installed Plugins are skipped in build
- app crashes after hacking cordova-plugin-crosswalk-webview to include crosswalk-lite
- identify GPS mobile phonegap
- Android installLocation when building with cordova cli
- Check Phonegap app connection
- CORS in ionic app and django
- Build full-featured iOS application with just PhoneGap Build and no Mac-like hardware
- How to use embedded Ruby HTML files with Ionic and Cordova
Related Questions in IONIC-FRAMEWORK
- CFBundleDocumentType is not working in myproject-Info.plist file
- ionic build android failure - Execution failed for task processDebugResources
- Android Status Bar Icon Size - Using Cordova / Phonegap Push Plugin
- how to show alert when user scroll to top of div in angular js?
- ionic serve uncaught exception
- Parse.com - setting up push notifications for single users
- Understanding the function of this particular 9 patch image
- CORS in ionic app and django
- How to use embedded Ruby HTML files with Ionic and Cordova
- Ionic cordova build
- Input ng-model not updating in Main view
- ng-click event not getting cleared in Ionic app
- How to show image caption in ionicframework?
- whitelisting a domain in ionic app
- Adding visionmedia/debug to an Ionic/AngularJS application
Related Questions in CAPACITOR
- How to use Pushwoosh in Ionic 5 project with capacitor
- How to manipulate / clear cookies with Capacitor Browser plugin
- Ionic / Capacitor - PushNotiifcations - Android - “notification” + “data” message
- "errSecInternalComponenet" Error on XCode when testing on an actual device
- Cordova plugin with Capacitor and Quasar
- Capacitor PushNotifications registration and registrationError not firing in first App Launch on iOS
- Web users don't see ios users in agora sdk
- Android Studio 4.X.1 with error trustAnchors parameter must be non-empty
- iOS Universal Link: Unable to simultaneously satisfy constraints
- Quasar Icon Genie CLI crops icons from square to rectangle
- status: -1: There was an error with the request: no protocol:
- What happens to data state when the user leaves my mobile hybrid app?
- Ionic 5 with FCM
- XMLHttpRequest cannot load https://www.googleapis.com/drive/v3/files due to access control checks
- Capacitor live reload is not working with Angular app
Related Questions in OPENVIDU
- Android webrtc SurfaceViewRenderer preview goes blank when I start the Activity in landscape/reverse landscape
- WebRTC disconnects after reconnecting (Android)
- GoogleWebRTC hangs (freezes) the main thread in swift native app (OpenVidu)
- Error "You don't have docker-compose installed" but 'Docker Compose version v2.3.3' is installed
- WebRTC android Data Channels aren't connecting. It shows Closing and then closed state
- flutter webrtc remote stream
- Openvidu - Set videocall audio to speaker Android
- openVidu - connectionDestroyed / sessionDisconnected event doesn't trigger when websocket connection lost because of network problem
- Openvidu server API REST with fetch
- Camera in MacBook after a few seconds of video conference using openvidu will be freeze
- Is there a way to use OpenVidu in Safari version 8+?
- Can not create Video Session using OpenVidu and node
- How to access camera in background using ionic capacitor/cordova on Android 9
- OpenVidu Android app crashes when leaving the session?
- WEBRTC: Local streams are visible on OPENVIDU WEB(other Participant) end But Remote Streams are coming NIL on my end locally swift iOS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?