Questions tagged [background-mode]

99 questions
1
vote
2 answers

Is using Core Location for performing functionality in the background appropriate?

Lately, I've notice that there are a few applications request to access the user's location for performing some functionalities in the background. For example: Application for scanning and uploading the user's photos for backup purposes, so when…
Ahmad F
  • 30,560
  • 17
  • 97
  • 143
1
vote
1 answer

Just how persistent are Firebase database observers?

I decided to run a test on the XCode iOS simulator to see if an observer to a location in the Firebase database would continue to fire even when the app is in the background. Turns out it does, but I am wondering if this is indefinite until the app…
1
vote
1 answer

Is it possible to open app in background in iOS (without user interaction)?

Is it possible to open an iOS app in the background, without any user interaction? We can use private frameworks for this. I don't need to worry about App Store submission, as the app is for enterprise distribution.
iOS Dev
  • 301
  • 2
  • 9
1
vote
1 answer

UIStatusBarSignalStrengthItemView and signalStrengthRaw to calculate the cell signal strength , does not update values in background

We are using private frameworks (which includes UIStatusBarSignalStrengthItemView.h) to calculate the cell signal strength. It works perfectly in foreground mode, but as soon as my app enters background it stops updating the cell signal…
1
vote
0 answers

Want to detect when user unlock or lock the phone in my IOS application?

I want to know how user interacts with his/her iphone while my app is in background . Is there any api or notification i will get if user locks or unlocks his/her iphone ?
1
vote
0 answers

iOS red bar appear by chance when i stop running camera recording

iOS red bar appear by chance when i stop running camera recording. In my opinion,only red bar appear, when application go to background, but it appear when B controller dismiss to A controller. I have opened audio background mode in plist. When I…
1
vote
1 answer

Cordova plugin background mode : onactivate is not working the first time (android)

I'm trying to use the background mode plugin in my ionic application but i'm encountering an issue. I would like to do the same thing that what is shown in the readme of the github project with backgroundmode.onactivate. It would work perfectly fine…
1
vote
2 answers

battery consuming tasks when launched in the background

Apple states that the app using the background mode shouldn't perform expensive, battery consuming tasks when launched in the background. What exactly is considered a batter consuming task? To be specific: is searching and array of 100 entries…
potato
  • 4,479
  • 7
  • 42
  • 99
1
vote
0 answers

iOS, best time to call Core Data queries on app start

My app has Background App Refresh when it receives a Push Notification where it fetches data from the server and stores using Core Data, now I need to process the data when the App is becomes active again. So, I tried the fetch query when…
rahulg
  • 2,183
  • 3
  • 33
  • 47
0
votes
0 answers

XCode Background Modes Crash

when i tried to enabled some background modes xcode crashes, long time ago i could enable the Audio, airplay etc. but i need background location update and i cant figure it out now. Every time xcode crashes and re-open.I came across with developer…
Observer23
  • 29
  • 6
0
votes
0 answers

Ionic Background Mode plugin crash

I'm facing a frustrating issue in the Background Mode plugin in ionic. I'm developing a white noise application in Ionic 6 where the user can play multiple sounds at the same time. When a sound is activated, it is sent to the background, so I just…
Billy
  • 1
  • 2
0
votes
0 answers

React Native app for audio track not working on background mode

I’m developing a react native focused on reproducing audios using expo and expo-av but I’m having problems skipping to the next audio when the app is in background mode. I have an useEffect that monitors my audio status and recognizes it has…
Thiago Ururay
  • 482
  • 3
  • 15
0
votes
0 answers

THREAD WARNING: exec() call to BackgroundModeExt.foreground blocked the main thread for 41ms. Plugin should use CordovaInterface.getThreadPool()

I have this problem. when I call cordova.plugins.backgroundMode.moveToForeground(); It always works for me the first time, then I enter another application, for example Facebook, and this message is displayed in the logcat, what is it due to or how…
0
votes
0 answers

Keep iOS dev app running using Background Modes

I've written a basic FTP Server app in Swift 5 using SwiftUI, it needs to keep a TCP socket listener open waiting for incoming ftp client connections. Ideally I'll keep it running with the phone locked. I've read you can hijack the Background modes…
0
votes
1 answer

Behaviour of Android / iOS when receiving Bluetooth LE communcation during doze

I'm developing an app in Ionic/Capacitor/Vue for both iOS and Android, but now I am in need of some guidance. The app will communicate with a satellite antenna over Bluetooth LE. I'm using https://github.com/katzer/cordova-plugin-background-mode to…
aanders77
  • 620
  • 8
  • 22