Questions tagged [ios-background-mode]
103 questions
0
votes
1 answer
Avoid external display to show native iOS screen when app entering background
My app has an external display when a second screen is connected. It displays the main content I want that people see while I navigate through others views. it works fine.
Is there a way to keep this external display active when app is entering…

Creanomy
- 216
- 2
- 12
0
votes
1 answer
How to auto connect with CBPeripheral (A BLE Device with iBeacon + Bluetooth Chip) and app is not running
I have one Smart Door unlock hardware device which acts as iBeacon and CoreBluetooth Peripheral simultaneously!
What my requirement is when my app is launched first-time, the app will start monitoring the iBeacon Region and when the user's distance…

iCoder
- 1,298
- 1
- 9
- 25
0
votes
0 answers
BLE scan in background not working for xamarin.ios
App scans the BLE device(Mokobeacon) in foreground mode. Scan, connect and disconnect work well in foreground. Scanning using this.manager.ScanForPeripherals(CBUUID.FromString("FF01")) and devices available at void DiscoveredPeripheral(object…

Vipin Krishna
- 355
- 1
- 4
- 25
0
votes
0 answers
UIBGTaskScheduler will work if app is killed?
I am working on app in which I want to schedule an alarm like in Android Alarm service.
I know there is UIBGTaskScheduler in iOS 13 but I am unable to identify if this can work when app is killed?
I have searched a lot but couldn’t find about the…

Manthan
- 3,856
- 1
- 27
- 58
0
votes
1 answer
How iOS handles events that occurs just right before the background?
First of all I'd like to say sorry in case my question is dummy, I'm really new to iOS and what to understand how thing are going on. Imagine such a situation - user taps on home button and the app starts to collapse, but immediately after taping on…

starwarrior8809
- 361
- 1
- 10
0
votes
1 answer
What happens with the code execution when app goes to the background?
First of all I'd like to say sorry in case you consider my question dummy, but I'm really new to iOS and just want to understand how things works. My question is - what happens with the code execution when I press the home button on my iOS device.…

starwarrior8809
- 361
- 1
- 10
0
votes
0 answers
How to keep an app always running in foreground?
I am making an app that is kind of a countdown timer.
I have it all working fine but when the app goes to background the timer stops. The app also goes into background mode as normal.
I've seen apps in the AppStore where the app is always running -…

Joan Cardona
- 3,463
- 2
- 25
- 43
0
votes
1 answer
How to track the time a user listens an specific podcast
I have an iOS app that is about podcasts and I want to track how long a user listens every podcast. I have tried the basic - when a user plays I save the timestamp and when stops it sends an event with the timestamp difference but it obviously…

Joan Cardona
- 3,463
- 2
- 25
- 43
0
votes
0 answers
Background scanning for BLE peripherals using ServiceUUIDs stops after some stime when application is in background
I am developing an application which is acts bluetooth-central and must scan for peripherals in the foreground as well as in background mode. I have enabled “Uses Bluetooth LE accessory” background mode in Xcode capabilities. After much research, I…

Ashvini
- 342
- 3
- 11
0
votes
1 answer
Running code directly in response to recieving an APNS message
We have an iOS App to which we send notifications via FCM.
What we would like to be able to do ideally is cause the App to run some code directly from a notification.
This seems doable if we send a data type notification and the App is in…

MHugh
- 455
- 1
- 7
- 20
0
votes
0 answers
Resume AVAudio session after interruption
Issue:
My application's audio is not resuming after an interruption (such as phone call or when I use other applications). This issue happens when my application is already in the background state before the interrupt occurs.
Code to handle…

Nimesh Chandramaniya
- 578
- 1
- 7
- 29
0
votes
1 answer
No response from localhost in iOS Background Mode
The application runs on a iOS mobile device (iPhone\iPad) local server on localhost:25989, when go to the browser, we send a few request http://localhost:25989 but server (application) does not send a response until we return to the application.…

Anonimys
- 596
- 1
- 5
- 14
0
votes
0 answers
Background mode options for the killed application
I know that changing the location (for example: entering the iBeacon region) can wake up "killed" applications in a moment. Remote notifications also can this too.
I am looking for another option that will wake up an application that is not…

BartekB
- 3
- 2
0
votes
1 answer
Different background modes in iOS
To recognize my app entered Background Mode [One short Home-Button click] I use this function:
func applicationDidEnterBackground(_ application: UIApplication) {
//...
}
But how can I recognize my app entered App Switching Mode [Two short…

PascalS
- 975
- 1
- 16
- 40
0
votes
1 answer
Vibrate iphone 7 with notification service extension, but it's not working with iOS 12.1 in background
I use Notification Service Extension to vibrate device two time, background mode is on, below method is working on iOS 11 & 12.0.1 but not working in iOS 12.1
background modes are below:
here is the code :
override func didReceive(_ request:…

chirag bhalara
- 203
- 1
- 10