@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
- let can = UIApplication.shared.canOpenURL(URL_)
125
- call.resolve([
126
- "install": can
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigens/aigens-sdk-core",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Aigens Order.Place Core Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",