Repository navigation
fix(windows): handle openAppSettings instead of every other method - #1570
Open
Seungpyo1007 wants to merge 1 commit into
Open
Seungpyo1007 wants to merge 1 commit into
Seungpyo1007 wants to merge 1 commit into
Conversation
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.
Closes #1564
HandleMethodCallin the Windows plugin checksmethodName.compare("openAppSettings")without== 0.comparereturns 0 on a match, so the condition is false foropenAppSettingsand true for every other method name.As a result,
openAppSettings()on Windows hitsNotImplementedand throws aMissingPluginExceptionon the Dart side. Unknown method names, meanwhile, getfalseinstead ofNotImplemented.The fix adds the missing
== 0, bumpspermission_handler_windowsto 0.2.3, and adds a CHANGELOG entry.The only method names the method channel sends are
checkPermissionStatus,checkServiceStatus,requestPermissions,shouldShowRequestPermissionRationaleandopenAppSettings, and the Windows plugin handles all five. So returningNotImplementedfor anything else doesn't break an existing call.openAppSettingsnow returnsfalse, the same asshouldShowRequestPermissionRationale.Pre-launch Checklist
pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.CHANGELOG.mdto add a description of the change.///). (not applicable)main.dart format .and committed any changes. (no Dart code changed)flutter analyzeand fixed any errors. (no Dart code changed)