iOS App crashes on WLAN disconnect - ios

I am facing a strange problem with my iOS app.
It is written in Objective-C and i use iOS 8.3 on my testdevice (iPhone 4s).
The app uses push notifications.
When I lock my iPhone, I sometimes get the following issue:
Before unlocking the device again, the wlan status symbol in the status bar disappears and when I finally unlock it, the app freezes and I have to restart it (-> The WLAN sign returns and the app works without any problems)

Related

Platform.isIOS not workin on real iOS device

I made a login with Apple on my login screen, and I made an if statement to check if the platform is iOS to show it in iOS devices.
The problem is when I run the app on the iOS simulator the button shows up, but when I run the app on a real device the button does not show up.
if (Platform.isIOS)
_LoginWithAppleIdWidget()

iOS device seems to stay connected to Bluetooth-LE device even after app is closed, so another device cannot connect

This is driving us crazy. We have an app that connects to a BLE device, and stays connected even when the app goes to the background. This has been working fine for us for years. If we close the app (swipe it away), the device disconnects and it is available for another iOS device to connect to it.
Recently (it seems), we've seen this "swiping away" seemingly not release the BLE device -- it does not show up on other iOS devices until Bluetooth is turned off on the orginal device. Unfortunately, we have not found the exact recipe yet to repeat this.
Update - We've also found that when we get into this state (app closed, but BLE devices unavailable on other iOS devices), the Bluetooth "status" page in Setup shows these devices as CONNECTED on the first device. We found that this state will go away if the app is deleted from the device (or Bluetooth turned off).
We've recently added support for an addtional bluetooth accessory (a label printer), and at that time changed our background modes. Current settings from info.plist: (The external-accesory string is new for us.)
<array>
<string>audio</string>
<string>external-accessory</string>
<string>bluetooth-central</string>
</array>
How can this be happening? Has there been some recent change in iOS that could look like this? Or was it adding the "external-accessory" to background modes?

ios 13 bluetooth crash with AVPlayerViewController

I am having weird crash with my app: Whenever i have a bluetooth headset connected to my app and i open a viewcontroller where i am using AVPlayerViewController the app just crashes. Their are no logs in the debugger, the app just shuts off.
If i disconnect the bluetooth and go to the same page the app works fine, i am able to play the video go to fullscreen and perform all tasks without any issues. Also everything works fine on ios 12 as well.
I have already included both: Privacy - Bluetooth Peripheral Usage Description and Privacy - Bluetooth Always Usage Description.
Kindly help i am stuck on this issue since past 4 days.
Crash happening on IOS version: 13.3.1

KeyBoard extension Interrupted on iOS swift app. works fine on simulator but does not work on device

I have built an iOS app with Swift that uses keyboard extension. Works awesome on simulator in all devices but when i run it in my phone the app alone works but the keyboard does not work. NSLOG shows bundle name interrupted.
Why is this and how to get past this?

iOS - crash when click RUN in Xcode to physical iphone, works fine when clicking icon on phone

when I hit the run button in xcode, my app launches on my phone but crashes instantly (no error messages, no console log).
when I click my app icon on my phone, it launches and runs perfectly.
also, it never crashes at all when run in emulator.
this started happening after adding a collection view.
UICollectionView was added in iOS 6, and does not exist on older devices so the app crashes, however you can use something like PSTCollectionView to support older devices.

Resources