iOS 15 Beta 7 & 8 - App process killed , when App consumes Bluetooth Asseceries framework in background - ios

Application process being killed by iOS internal, when the application was background for more than 30 secs and application is consuming Bluetooth Asseceries frameworks (data transmission or just Bluetooth connected, no data transmission) or periodic network upload is progress in background
Not observed this issue in till iOS 15 beta 6. Observed after upgrading iOS version to 15 Beta 7 and 8
am I missing any new configuration to run the application in background other than External BLE Accessaries and Uses Bluetooth LE Accessories in Background ? is it Possible to run the application in background with above scenarios for 10 mins?

Related

Why does my Cordova app crash on iOS 15 but not iOS 14?

I've got two sets of iPad apps for a client that perform fine on iOS 14.4. When loaded onto an iPad running iOS 15 or higher, the apps reset every 6 seconds or so and do not register any input.
Looking at the profiler in Xcode, the memory and CPU spike before crashing. I am also loading a bunch of local iframes in the app that take up a considerable amount of space.
The following cordova plugins are being used and allow the app to run on iOS 14 or below:
cordova-plugin-ionic-webview
cordova-plugin-printer
cordova-plugin-whitelist
cordova-plugin-wkwebview-engine
cordova-plugin-wkwebviewfix (allowed the iframes to be loaded locally)
The issue is the app is useless right now when run on iOS 15 and I am lost (little to no iOS experience, this is a web app that a client requested be put on an ipad for local use off of wifi).
Does anyone have any leads as to why a cordova app that works on ios 14 wouldn't on ios 15?

iOS 13 couldn't receive BLE data on background mode

We have an app developing on iOS 12 connecting a device with BLE. After zoom out this app into iPhoneX's desktop we could still receive data from device. But developing this app on iOS 13, we find that app stopping receive data after 1 minutes. List after images is Xcode setting :
Xcode background modes
Xcode info.plist
Does there anyone have the solution for this ? Thanks in advance.

How to run iOS app in background on iOS 12

I have an app that runs in the background without problem on iOS 8, 9, 10, and 11. However, it stops running in the background on iOS 12.1 (it's killed after 180 seconds).
I notice that some apps still work ok like Skype, Facebook, Viber, etc.
and I notice that Apple released iOS 12.2 now.
Does anyone know how these apps can run in the background without any problems?
If your app is killed after 180 seconds, it is because your app ask the system to continue running for a while when your app goes to background.
This request is done using [UIApplication beginBackgroundTaskWithName]: https://developer.apple.com/documentation/uikit/uiapplication/1623051-beginbackgroundtaskwithname?language=objc
As stated in the documentation,
This method requests additional background execution time for your app.
This additional time was 180 seconds (I think it's closer to 30 seconds since iOS 12).
If you need yourapplication to be really running in background, you have to declare a background mode in your application's capabilities in Xcode:
That's the way the applications you listed works in background (essentially Voice over IP mode).

iOS 11 random disconnection with external bluetooth device

I use CoreBluetooth framework to connect external bluetooth device, in all iOS don't have random disconnection, but on iOS 11 it disconnect.
Maybe some one has any idea what's wrong with ios 11 and corebluetooth, CBCentralManager?
My app worked disconnected every 5 minutes on iOS 11.0.x,(I'm sorry for the correct version), But in iOS 10 or eralier version is OK. So I try to change the peripheral deviece, change a Android phone to test, both of them are running OK.
Then I update the version to iOS 11.1.1, And the BUG looks like to be FIXed.
Your bluetooth device is disconnected when your iphone/ipad goes to sleep. This is due to iOS 11 is requiring all application to add background mode to their info.plist. Look at screenshot provided below, add it to your app's info.plist and that will resolve your iOS 11 randomly disconnect issue when device goes to sleep.

Bluetooth Low Energy app failed to write characteristics on iOS 7

I have a Bluetooth Low Energy (BLE) app that communicates with a BLE device through open connection. I am using CoreBluetooth library. After I upgraded my iPhone to iOS 7 and XCode to XCode 5. I recompiled my Bluetooth Low Energy app and found it no longer working. The connection is successful. The services and characteristics are discovered with no problems. Even the reading of the characteristics seems fine. But writing to a characteristic which should trigger some action on the BLE device has not any effect.
If I use XCode to download the same app to another iPhone with iOS 6, everything works fine. So I can determine the problem may be something with iOS 7 instead of XCode 5’s recompiling. It’s also possible XCode 5 prepares a different app for iOS 6 device even from a same project because I can see the app’s appearances are different on two devices.
So what’s changed from iOS 6 to iOS 7 that makes writing to characteristics failed?
I ran into the same problem, the issue is with the the firmware not your iOS Code. iOS6 was more relaxed with the characteristics types, but iOS7 is more stringent.
The WriteWithoutResponse flag for the Characteristic has to set explicitly to work with iOS7
I had used RedBear's Biscuit for Arduino at my startup to test our product, which worked wonderfully with iOS6 but when the app migrated to iOS7, the writes would fail quietly.
More detailed discussion is here (see update from Mattj949) # https://redbearlab.zendesk.com/entries/25031402-BLE-Mini-and-iOS-7
There are some Apple Threads on this issue, http://lists.apple.com/archives/bluetooth-dev/2013/Aug/msg00046.html and http://lists.apple.com/archives/bluetooth-dev/2013/Aug/msg00050.html

Resources