Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(browser): call notifyListeners only when browser is dismissed #2186

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

OS-martacarlos
Copy link
Collaborator

Fixes a bug on @capacitor/browser on iOS: when trying to lock the device's orientation after the safari view controller was dismissed/closed by the user , an error occured: None of the requested orientations are supported by the view controller. Requested: portrait; Supported: landscapeLeft

This seemed to be happening because the view controller wasn't being properly closed/dismissed and the listeners were being incorrectly notified.

initial bug @ here

reference: https://outsystemsrd.atlassian.net/browse/RMET-3453

fixes a bug on iOS that was detected when trying to lock the device's orientation after the safari view controller was dismissed by the user
this happened because the view controller wasn't being properly closed/dismissed and the listeners were being incorrectly notified

https://outsystemsrd.atlassian.net/browse/RMET-3453
@OS-martacarlos OS-martacarlos requested a review from a team September 2, 2024 15:30
@OS-martacarlos OS-martacarlos self-assigned this Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Released dev build of browser with dev version: 7.0.0-dev-2186-20240909T134639.0

@OS-martacarlos OS-martacarlos requested a review from a team September 5, 2024 15:25
@OS-martacarlos OS-martacarlos merged commit aaa8658 into main Sep 9, 2024
12 checks passed
@OS-martacarlos OS-martacarlos deleted the fix/browser-dismiss-when-finished branch September 9, 2024 14:09
@IT-MikeS IT-MikeS restored the fix/browser-dismiss-when-finished branch October 11, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants