change ios open method

This commit is contained in:
zhl 2023-02-24 13:32:37 +08:00
parent 30d6546611
commit 838d60e9a2

View File

@ -367,7 +367,11 @@ void Application::loadKeyLocal(const std::string &account, std::string *outItem)
void Application::toWallet(const std::string &url) {
UIApplication *app = [UIApplication sharedApplication];
NSString *uri = [NSString stringWithCString:url.c_str() encoding:NSUTF8StringEncoding];
[app openURL:[NSURL URLWithString:uri]];
[app openURL:[NSURL URLWithString:uri] options:@{} completionHandler:^(BOOL success) {
if (success) {
NSLog(@"Opened url");
}
}];
}
bool Application::applicationDidFinishLaunching()