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

修復「更新跳轉出現異常」 #211

Merged
merged 2 commits into from
Dec 15, 2023
Merged

Conversation

ntut-xuan
Copy link
Collaborator

@ntut-xuan ntut-xuan commented Oct 24, 2023

Description

Close: #210 and #175

在這個 PR 中,我修復了 iPhone12/iOS17 更新跳轉出現異常的問題。

在版本強制更新的 Modal 中,若點擊更新時會導致跳轉出現異常並使應用程式關閉。

在這個版本上我使用 launchUrlLaunchMode 來取代 canLaunchUrl,問題已解決。

Implementation

  • 使用 launchUrlLaunchMode 來取代 canLaunchUrl

Testing Instructions

Warning
由於模擬器並沒有 AppStore,你會需要實體的 iOS 裝置來進行測試。

NOTE
你可以安裝 v1.4.5 版本,但請使用 Beta Flavor 進行測試,即 1.4.48763 的假更新消息(但強制更新)。

  • 測試進入「強制更新」頁面時,點擊「更新」時不會出現崩潰。
  • 測試進入「強制更新」頁面時,點擊「更新」時能夠正確跳轉到 AppStore 的頁面上。

rileychh
rileychh previously approved these changes Dec 1, 2023
@rileychh rileychh self-requested a review December 1, 2023 03:15
@ntut-xuan ntut-xuan merged commit 115a7af into master Dec 15, 2023
4 checks passed
@ntut-xuan ntut-xuan deleted the 210-Update-Redirect-Bug branch December 15, 2023 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

更新跳轉出現異常
3 participants