Update README with iOS Simulator notes#78
Open
f3ndot wants to merge 2 commits intoRaphaelWoude:mainfrom
Open
Conversation
Added caveat note about iOS Simulator behaviour regarding Settings app.
Owner
|
Hi, sorry for the wait. I will be looking at this PR in the next couple days. |
Owner
|
I think that we can probably do a bit better with the text here. Something like |
Contributor
|
I suggest updating the Example section in Here is the proposed block: import { NativeSettings, AndroidSettings, IOSSettings } from 'capacitor-native-settings';
/**
* ⚠️ iOS Limitations
*
* 1. App Store Compliance: Apple officially supports opening only the app-specific
* settings screen (IOSSettings.App). Other options rely on undocumented
* URL schemes and risk App Store rejection.
*
* 2. Simulator Behavior: The iOS Simulator sometimes fails to open specific screens
* (even the officially supported ones) and opens the main Settings app instead.
* Please always test on a real device.
*/
// Example 1: Open with cross-platform handling
const result = await NativeSettings.open({
optionAndroid: AndroidSettings.ApplicationDetails,
optionIOS: IOSSettings.App,
});
if (!result.success) {
// Handle error (Capacitor 8 state-based error handling)
console.error(result.error);
}
// Example 2: Android specific
const androidResult = await NativeSettings.openAndroid({
option: AndroidSettings.ApplicationDetails,
});
if (!androidResult.success) {
console.error(androidResult.error);
}
// Example 3: iOS specific
const iosResult = await NativeSettings.openIOS({
option: IOSSettings.App,
});
if (!iosResult.success) {
console.error(iosResult.error);
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added caveat note about iOS Simulator behaviour regarding Settings app. Found via #73 (comment)
And potentially these open issues are referring to the same issue (assuming they're using a Simulator during development): #76 #77