Questions tagged [ios-background-mode]
103 questions
0
votes
0 answers
bluetooth background mode IOS when the screen is locked
I would like to implement background bluetooth scanning on IOS. When the application goes in background mode it calls TestCentralManagerDelegate which implements DiscoveredPeripheral function. It is triggered when a new bluetooth peripheral device…

Samo Simoncic
- 7
- 1
- 7
0
votes
0 answers
Trigger an API call when a push-notification is received in iOS app and its state is closed
Working on a solution When a push notificaiton is received in iOS, the client app should acknowledge the server that the message is delivered. To achieve this i should call an acknowledge API when a notification is received in iOS app so when the…

BharathBob
- 699
- 5
- 11
0
votes
0 answers
Stop getting location updates in background iOS
I am making an app for tracking a user locations but I am facing a problem to track continuous user location in background until user stop by themselves.I myself test the app by tracking in car of distance of 17 kilometer in a time of around 30…

naf123
- 79
- 2
- 7
0
votes
1 answer
Changing Location Settings from 'Always' to 'when in use' doesn't continue location tracking when in background
If user changes their Location settings
from ‘always’ to ‘when in use’ .
And doesn’t go back to the application.
Sometimes I see the blue bar and sometime I don’t see it.
If blue bar doesn’t show then my app can get removed from memory.
The only…

mfaani
- 33,269
- 19
- 164
- 293
0
votes
1 answer
iOS Music started from background
i'm thinking about an iOS alarm app. At the time of the alarm i want to play custom music from Apple Music or another source.
Unfortunately app background operations are really restrictive and notifications only allow bundled music files to be…

user1517039
- 63
- 1
- 8
0
votes
1 answer
How to continue play video as VideoView layer using AVLayer when app enters in background in swift
I am playing video in videoView using AVPLayer but when app enters in background mode and again open the app then video is pause.
func playVideo() {
if let filePath = Bundle.main.path(forResource: "Audios/copy1", ofType:"mp4") {
let…

Umair Shams
- 39
- 1
- 7
0
votes
1 answer
iOS applicationWillResignActive task not performed until app becomes active again
I'm trying to use applicationWillResignActive() in order to sync some data to my Firestore database before the application enters the background.
func applicationWillResignActive(_ application: UIApplication) {
…

Emil Åhsberg
- 3
- 4
0
votes
0 answers
Running background Task infinitely without any background mode
I have an app that keeps collecting the device's sensor data and stores it in sqlite database. All this keeps happening continuously according to the timers that I set which are as follows:
-Every 1 second app collects sensor data
-Every 30 minutes…

Rishabh
- 465
- 5
- 14
0
votes
1 answer
App restart after 180 sec of execution in background mode. By enable the background modes in capabilities
i make a sample app for my requirement the code is given below
design : contain 1 Button 1 Label
.h file code
@interface ViewController : UIViewController{
int count;
NSTimer *theTimer;
UIBackgroundTaskIdentifier…

Ben Rockey
- 920
- 6
- 23
0
votes
0 answers
didUpdateValueForCharacteristic not called when the app is in suspended state
I'm developing an App that needs, in certan scenarios, to be connected to a bluetooth Peripheral indefinitely.
Before I go on with my question, I want to confirm that:
I'm initializing my CBCoreBluetoothManager in…

Carlos Conejo
- 21
- 1
0
votes
1 answer
iOS background mode when app is not running?
Is background mode for receiving location updates available when app was closed? Is it any way to collect and share location data like Friends app? It shares location always, also when does not runs.

János
- 32,867
- 38
- 193
- 353
-1
votes
1 answer
how do I create "reopen" app button for iOS apps in background mode? (Swift)
My app plays audio in background mode.
Question: when a user exits the app, how do you add a button/link to the top left screen to return them to the app?
(example pictured is google maps)
Thanks in advance.

timothykc
- 2,235
- 1
- 16
- 14
-2
votes
2 answers
Why is my app not working in background mode but foreground it is working?
I want to create an app as when a particular time comes it calls an API. I have done in it the foreground, but when the app is in the background, it is not executing. How can I solve the issue?
My code is below:
@objc func runCode() {
…

project ed500
- 41
- 1
- 8