You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🚨 Critical Issue: Replace Deprecated UIApplication.openURL(_:) to Restore E-Wallet Functionality
Description
The Midtrans iOS SDK is currently using the deprecated UIApplication.openURL(_:) method. This causes critical functionality issues when attempting to open external e-wallet apps like GoPay and ShopeePay.
This is a critical issue that affects user experience and functionality. I believe all related code affecting this issue should be reviewed and replaced to prevent further problems. Resolving this promptly is essential to ensure e-wallet integrations work seamlessly.
The new API provides more options and a completion handler to handle the result of the open action, ensuring better compatibility with the latest iOS versions and future-proofing the SDK.
This issue directly impacts the ability to open external e-wallet apps like GoPay and ShopeePay, breaking functionality for users.
Impact
Xcode 16:
When building with Xcode 16, the app cannot open e-wallets such as GoPay and ShopeePay.
Xcode 15:
The issue does not occur in Xcode 15; functionality remains intact.
Proposed Solution
Replace all occurrences of UIApplication.openURL(_:) in the codebase with UIApplication.open(_:options:completionHandler:). This ensures that the entire SDK is updated to be fully compatible with the latest iOS versions and avoids similar issues in other parts of the code.
Example:
// Old Code
UIApplication.shared.openURL(url)
// New Code
UIApplication.shared.open(url, options:[:], completionHandler:nil)
🚨 Critical Issue: Replace Deprecated
UIApplication.openURL(_:)
to Restore E-Wallet FunctionalityDescription
The Midtrans iOS SDK is currently using the deprecated
UIApplication.openURL(_:)
method. This causes critical functionality issues when attempting to open external e-wallet apps like GoPay and ShopeePay.This is a critical issue that affects user experience and functionality. I believe all related code affecting this issue should be reviewed and replaced to prevent further problems. Resolving this promptly is essential to ensure e-wallet integrations work seamlessly.
Issue Details
UIApplication.openURL(_:)
UIApplication.open(_:options:completionHandler:)
Impact
Proposed Solution
Replace all occurrences of
UIApplication.openURL(_:)
in the codebase withUIApplication.open(_:options:completionHandler:)
. This ensures that the entire SDK is updated to be fully compatible with the latest iOS versions and avoids similar issues in other parts of the code.Example:
Environment
Xcode Version: Xcode 16
References
Apple Documentation
Screenshots
Please let me know if you needs more additional details.
The text was updated successfully, but these errors were encountered: