Behaviour for significant change location API when terminated/suspended?

This is the section from the CLLocationManager documentation describing the app behavior with startMonitoringSignificantLocationChanges: If you start this service and your application is...

CTCallCenter - Call Event Handler - in background state

Regarding the Apple documentation there is no way to handle the phone state while the app is suspended: https://developer.apple.com/documentation/coretelephony/ctcallcenter "While it is...

Programming background behavior when iPhone is locked and user presses power button

Sorry, I am new to iPhone development and my google searches have failed me, so I have had to resort to posting a potentially idiotic question on SO. I would like to write an app that, when...

How can I tell if my app has suspended?

My understanding of iOS state management is that when the user hits the home button, the app becomes inactive, then enters the background, and then after a few seconds is suspended. A suspended...

How does suspend/resume work with Corona SDK?

I'm developing a game with Corona and trying to sort out how to handle suspends and resumes. I have some basic questions: What state data is at risk when an app is suspended? Any and all? Just...

Remote notification is not delivered to my app after phone reboot

According to Apple's documentation on remote notifications: Discussion Use this method to process incoming remote notifications for your app. Unlike the application:didReceiveRemoteNotification:...

Silent Push Notifications To Avoid App Getting In Suspended State

I'm working on an app that fetches background location from users to provide relevant content to them when they are in proximity of a defined set of points of interest. By testing my app I see...

Silent pushes not delivered to the app on iOS 11

I noticed that on iOS 11 beta 2, the silent notifications are not delivered to the application:didReceiveRemoteNotification:fetchCompletionHandler regardless the state of the app (background /...

Turning bluetooth radio back on after the app is suspended doesn't call centralManagerDidUpdateState

My app connects with a low energy peripheral. When the peripheral goes out of range, I get didDisconnect method callback, I simply call connect on the peripheral and whenever it comes back into...

ios: Download large file when app is in background or suspended state

I have got a vendor app. The app needs to download a file containing products data on receiving push notification wether app is in background, suspended or terminated state. Then the file needs to...

how to simulate suspended state for iOS app?

I'm testing silent push notification when it wakes up the app and move it form suspended state to background state. Is there a way to simulate that state?

Fetch freezes after react-native app comes back from suspended state on IOS

I'm developing a react-native app, and we noticed something strange. When the app comes back from suspended state (it doesn't happen from normal background state I think), often, the fetch freezes...

Memory management when the ios app is in the background

According to the official tutorial, the iOS application has several main states, such as foreground, background, and suspended state. An app in use whose view page is at the top of the screen is...

iOS black screen when bringing app to foreground after some time in background

I'm trying to remove all storyboards from our iOS app as they are a huge mess when working in a team with Git. I'm now setting the initial ViewController in AppDelegate's...

iOS Background Task does not remain alive if launched when phone is locked (screen off)

I have an iOS application which interacts with BLE devices. The Bluetooth LE accessories background mode is active so that the application is able to connect and interact with BLE devices even...

BLE app is suspended when running in Background on iOS 12

Background I have an iOS app which scans for BLE devices in the Background. It worked well until I updated to iOS12. This is what I have: App is configured to run in Background (e.g. location &...

How do I implement background fetch using a data task?

I'm trying to implement background fetch in an iOS app. In the official documentation is stated: "You don’t have to do all background network activity with background sessions ... ... . Apps...

Getting GPS data in background mode on iOS with Qt app

Location updates stops being delivered to application in background after about a 20 minutes. Application is not closed because when I click on app icon it is brought back from background in state...

image upload using POST-API when iOS app is in background

I am trying to upload images selected by a user from their gallery, and then keep uploading them even if the user puts my app in background/suspended state and then starts using some other...

iOS 13 - WkWebView: audio stops when in background

I've an app that uses WkWebView to play audio from Soundcloud, on iOS 13 Beta 6 the audio stops when the app is not in foreground, even when Audio is on in Background Modes. When starting the...

Navigating to a new screen from AppLifecycleState.resumed event?

I'm trying to start a new screen within an AppLifecycleState event, but nothing happens. That's because there is no context available in this event that would contain Navigator. The app must open...

Reason for my app going to suspended state?

I am created a location tracking ios app(using CocoaLumberjack library to write log file).So background location update is enabled and working for my testing(I nearly running of upto 8 hours in...

Why is iBeacon not triggering entry & exit events since release of iOS 13

In latest iOS 13 release, there are 2 major updates for Core Location & Core Bluetooth frameworks. User has updates in regard with permissions of the app. Following link explain about the...

How can I create object and use it in Objective-C?

I am using Buildbox for my game. I implemented custom rewarded ads. The problem is that game music continues when rewarded video is open. I want to mute and unmute after video is watched. I know...

Does iOS collects Pedometer(Step Counter) sensors data by itself or app needs to start the sensors to start collecting data?

I am working on a pedometer app. I have the following queries. Any help is welcome. First: Does iOS collects Pedometer(Step Counter) sensors data by itself ? I don't want to start the sensor for...

iOS stops moving apps to suspended state in iOS 13.5.1(Keeps running in the background)

I did a little bit more tests today. And I found that iOS does not really suspend the app while it's in the background state anymore. Here's how I test it. while(true){ napLock.wait(timeout:...

applicationWillTerminate vs. applicationWillResignActive vs. applicationDidEnterBackground? When are they triggered exactly?

I know there exists a similar question but I think that question is a lot more general and does not answer on the specific details that I'm trying to find out. I've read the Apple documents, but...

Canceling web socket request when moving to background in iOS Swift

So I'm using iOS 13's URLSessionWebSocket functionality. I have a screen that should send a ping to another socket every X seconds. Everything works fine until the user moves the app to the...

Nativescript Angular NGRX effect lose state when app is suspended (ios)

I'm using NGRX with Nativescript Angular to store state and fetching data from server. However everytime if i suspend the app (IOS) when the app is fetching data from server, the whole process...

Flutter app continues running in background and causes unwanted battery drain

I am developing a Flutter app that is meant to be used to control IoT devices that are connected to the local network. Unfortunately, while testing the app, I have experienced the following issue:...