@aigens/aigens-sdk-core 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,10 +121,12 @@ public class CorePlugin: CAPPlugin {
|
|
121
121
|
|
122
122
|
@objc func isInstalledApp(_ call: CAPPluginCall) {
|
123
123
|
if let url = call.getString("key"), let URL_ = URL(string: url) {
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
124
|
+
DispatchQueue.main.async {
|
125
|
+
let can = UIApplication.shared.canOpenURL(URL_)
|
126
|
+
call.resolve([
|
127
|
+
"install": can
|
128
|
+
])
|
129
|
+
}
|
128
130
|
}else {
|
129
131
|
call.reject("key is missing or is invaild key")
|
130
132
|
return
|