I recently developed an iOS app using Xcode 13.1 . I ran it on my iPhone (which is currently operating on iOS 15.4), and it worked fine.
However, my app uses the location, and I have been attempting to have the user go to settings, and enable/disable the location permission.
But my app does not appear in the list of apps in settings. It does not show up in the developer section either. I did multiple things (reboot all settings - restart my iPhone...) but nothing helped.
Info.Plist Permission:-
Permission Popup:-
How can I resolve this bug? Thanks.
Already Tried Given below Answer but no luck:-
Opening the Settings app from another app
How to open your app in Settings iOS 11
How to open Settings programmatically like in Facebook app?
How to open your app's settings (inside the Settings app) with Swift (iOS 11)?
How do I open phone settings when a button is clicked?
Related
i am trying to Enable Buletooth for the Application, but in iOS platform there is no possible way to enable bluetooth from the Unity App.
so i am trying to open iPhone Settings and then enable bluetooth manually,
is there a way to open iPhone Settings from the Unity App
I tried the following code with no Luck
Application.OpenURL("app-settings:root=General&path=Bluetooth");
Thanks in advance
You might have to create a function in your Xcode project for that and call it from Unity.
I don't think Apple lets you navigate the user to their specific pages anymore, but you can prompt the user to launch the Settings app and enable bluetooth from there.
Apple gives you a string constant to open the settings app. I would recommend sticking to that because it is liable to change.
UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!)
Referenced from:
Opening the Settings app from another app
Odd issue: I have a custom settings.bundle with my iOS app. If the settings app is open when the app is installed (as an Ad Hoc via HockeyApp), the custom settings are not visible. The systems settings (use cell data, location services, etc) show up fine. However, fully closing the app and the Settings app then relaunching the app causes the custom settings to show up. Seems more like an iOS bug than an Appcelerator issue to me. Anyone else seen this? Any thoughts?
I am working on an app in which I need to open the device settings app on button client rather than app settings. I am using UIApplicationOpenSettingsURLString - but this opens the app settings page not the root level for device settings.
So, may I please get some suggestions on how to open the device settings app and may I also know is there any possibility to open the wi-fi settings page in the device settings programmatically.
You con only open the app-settings as you mentioned above.
If it would would it would also be listed in the documentation:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/doc/constant_group/Settings_Launch_URL
Even Apps like GoPro or Twitter just give instructions how to enter the settings rather then linking directly.
I would like to know how it's possible to develop an app that provide only some settings in the iOS native setting app like a lot of cydia tweak without have an icon on the springboard ?
My goal is just to have some switch and button who send command on my local network.
In iOS your app must have an icon on the springboard.
You can add your app to the Settings App to allow for changing your app settings. The catch is that when these settings are changed, they do not launch your app too send it actions.
I know that there are a lot of Q&A saying that from iOS 5.1 it is not possible to open Settings from the app, some examples:
Opening the Settings app from another app
is it possible to open Settings App using openURL?
launch settings from alert
But what is really annoying is that Twitter App (version 6.2.1, iPhone 4s, iOS 7.1) is opening Settings from the application.
Check this image:
Clicking on Settings, Twitter is opening Settings and a view with title Wi-Fi. It is true that this view do not have all the Wi-Fi properties. However, it is something into Settings.
How is that possible? How is handling Twitter with that?
Someone have a clue?
That is not the Twitter app showing the alert. That is a standard iOS alert that can appear when an app tries to use location services with no WiFi.
No 3rd party app can directly show that alert. iOS shows it and iOS takes you to the Settings app.
I just verified this with my own app. If the app already has permission to use location services, then if you do something in the app that requires location, this alert will appear when appropriate. I know for a fact that I do nothing in my code to make the alert appear but it does appear.