Questions tagged [background-mode]
99 questions
16
votes
2 answers
Playing sound in didReceiveRemoteNotification, while in the background, using text to speech feature
What I am trying currently is to play a message when app receives remote notification while in the background (or likely woken up from a suspended state).
The sound is not playing at all after the app is woken from a suspended mode.
When application…

Whirlwind
- 14,286
- 11
- 68
- 157
7
votes
2 answers
Appropriate way to get user's location(also in killed state) for an "hyperlocal" app
Requirement - I am building a hyperlocal app which will provide offers to user based on his location. When in app I can get his current location and show offers accordingly but what I need now is to send push notification to user based on his…

Nikhil Manapure
- 3,748
- 2
- 30
- 55
5
votes
1 answer
iOS - What does External accessory communication of Background Modes do?
I guess it is a background mode related to ExternalAccessory.framework.
But the document about External Accessory says, "If your app is suspended in the background when an accessory notification arrives, that notification is put in a queue. When…

Byoth
- 1,905
- 6
- 16
- 28
5
votes
1 answer
Data not sent from a background via 3G
I have an application which sends data to the server while app is in the background. Here is the code responsible for data sending:
-(bool) sendStats: (MCStatsSender*) val{
if(![self checkInternet]){ //Using Reachability here
return…

Whirlwind
- 14,286
- 11
- 68
- 157
5
votes
1 answer
Can CADisplayLink be run while in application is in background?
I am using a CADisplayLink as a timer in my application. I am using a CADisplayLink because my app relies HEAVILY on the accuracy/precision of the CADisplayLink. NSTimer is not a suitable replacement in my case.
The issue is that occasionally, I…

MikeG
- 3,745
- 1
- 29
- 51
5
votes
2 answers
Text To Speech functionality when app is in background mode?
I am working on a TextToSpeech app. I write one paragraph in a UITextField, then I press the Speak button. Sound plays according to the text written in the UITextField.
However, when the app is in background mode, the audio stops playing. How can I…

Jagat Dave
- 1,643
- 3
- 23
- 30
3
votes
1 answer
pedometer is not working in background mode in ios 13 only
I have an app that just counting steps in Active State and Background Mode with CoreMotion CMPedometer.
It works fine on ios 12.4.1
ios 13: steps counting doesn't work in Background Mode, but work in Active State.
I haven't any errors and in…

rng13
- 111
- 1
- 6
3
votes
1 answer
How to check application state under swift UI Test
Some background
I am currently writing a UI Test for a settings pane, and click on buttons to enable certain permissions such as push notifications and location services.
However, if the alert for the permission has been displayed before (regardless…

Andriko13
- 992
- 1
- 7
- 34
2
votes
0 answers
How to stop janus-gateway background mode?
I ran command "janus -b" after installing janus-gateway on centos7.
but I can't found stop background mode command.
How can I stop this?

UPDK
- 21
- 1
2
votes
0 answers
Ionic 4 Radio Streaming App with icecast2 Background Mode and Audio() web function
Actually, I have an implementation with ionic 4 with the Background Mode plugin and the Audio() HTML5 function for the audio. (The audio source is an icecast 2.4.4 server with aacplus).
Before I try with Cordova Media plugin but icecast is not…

Edwin Castañeda
- 176
- 5
2
votes
1 answer
Swift - Bluetooth write characteristic in Background
I'm developing an App in Swift 5 that connects to a wearable device that measure body information (temperature, heart rate, etc.)
For measure this information, I have to write a Data object in one characteristic of the device (and receive the…

Jorge Morata Toribio
- 99
- 2
- 6
2
votes
2 answers
Run function when background mode is active using ionic 4
I am using the ionic Background Mode plugin. First, I installed in the project, imported in the app.module.ts file and put this code in app.component.ts file this.backgroundMode.enable();. I want to check if background mode is active in the…

user9088454
- 1,076
- 1
- 15
- 45
2
votes
1 answer
Socket in background state iOS
Maybe someone ever solve the problem with stable connection to server when application is in background? I need to transfer audio data from server to client app.
I know about all hacks for iOS how to keep alive application, but I need legal methods…

Alex Makushkin
- 21
- 2
2
votes
0 answers
Timer stops counting in background in iOS 10.3
I'm having trouble when using timer in background in iOS 10.3.
It seems to stop counting when device is in background mode or sleep mode. It works good on iOS 10.1.
My app has the get location in background feature and sends to server 5s/time, but…

Phúc Pú Pình
- 25
- 1
2
votes
0 answers
application:didReceiveRemoteNotification:fetchCompletionHandler: not called after system terminates app
I have implemented application:didReceiveRemoteNotification:fetchCompletionHandler:, which is necessary to run after receiving a push notification. I have also turned on "Background Fetch" and "Remote notifications" background modes. And my push…

Andrew
- 7,693
- 11
- 43
- 81