Settings app crashes when opened from custom keyboard on iOS 10 - ios

I'm trying to open Settings app from custom keyboard extension. It works fine on iOS 11, so the Settings app is being opened with main settings page. However, the Settings app immediately crashes on iOS 10 if it wasn't opened before (i.e. the app isn't in background). Have anybody encountered this problem?
Regards.

Related

How to allow iPhone auto lock when the app is installed using xcode?

I need to prevent the phone from auto-lock on one page of the app. I found an IONIC plugin for this. I want to make sure it works. The problem is: when I run the app on a device or simulator, the auto-lock is not happening at all.
That's how I run the app on the iOs device:
ionic cordova run ios --device
open platforms/ios in the code
select the device and press the play button
The app is installed and I can play with it. The auto-lock is not happening while the app is opened.
I tried to remove the cable after the app installation with no success. If my app is opened, the lock screen is not displayed.
So, how can I allow the phone to auto-lock while development time?
Removing the debug option in the architecture section of the project helped. need to unplug the device anyway.

How to open NightShift in display & brightness Programically in iOS using Swift

I want to launch NightShift when I touch a button in my app.
I am aware that settings app can be opened by navigating to the settings URL
UIApplication.shared.open(URL(string:UIApplicationOpenSettingsURLString)!)
Is there a link to NightShift too?
If NightShift does not work,is there a way to display & brightness?
You can't navigate to any other page within the iOS Settings app from iOS 10 onwards.
Previously, there used be "prefs:" and "App Prefs:" which could navigate our app within the iOS settings app. But iOS 10 onwards, its a private API and can lead to app rejection by Apple.

Lauch iOS app from TestFlight is crashing

I have my iOS App at TestFlight. I installed it in my iPad. After the installation. I opened the application by tapping 'open' button. It started launching the app with splash screen and then crashed.
But launching the app manually tapping the app icon works fine.
Thanks in advance

Can I debug code in the parent iOS App when it is awoken by a WatchKit App/Extension?

I want to debug code in the application:handleWatchKitExtensionRequest:reply: method of my AppDelegate.
If I debug the WatchKit App then when it launches the iOS App to call this method, the debugger is not attached. Is there a way to get the debugger to attach to the iOS App when it is launched from WatchKit as opposed to the Xcode run/debug command?
Yup.
Run your WatchKit application via Xcode, then manually launch your associated iOS application on the simulator.
Once it's launched, use the Debug menu in Xcode to Attach to Process…. You'll see your iOS application running there.
You'll then have two active debug sessions accessible in the Debug Navigator (⌘+6). You can switch between them there.
After you run your WatchKit app and it is attached to the debugger, manually open your iPhone app in the simulator by tapping on its icon. Then in Xcode go to Debug -> Attach To Process in the menu and select your iPhone app. Now Xcode should be attached to both your WatchKit extension and your iPhone app and you can set break points in either the iPhone app or your extension.

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