@aigens/aigens-sdk-core 0.0.27 → 0.0.29
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.
@@ -247,7 +247,11 @@ public class CorePlugin extends Plugin {
|
|
247
247
|
boolean areNotificationsEnabled = notificationManagerCompat.areNotificationsEnabled();
|
248
248
|
JSObject object = new JSObject();
|
249
249
|
try {
|
250
|
-
|
250
|
+
if (areNotificationsEnabled) {
|
251
|
+
object.put("display", "granted");
|
252
|
+
}else {
|
253
|
+
object.put("display", "denied");
|
254
|
+
}
|
251
255
|
} catch (Exception e) {
|
252
256
|
object.put("display", "denied");
|
253
257
|
e.printStackTrace();
|
@@ -33,6 +33,18 @@ import Capacitor
|
|
33
33
|
|
34
34
|
handleOpenUrl()
|
35
35
|
|
36
|
+
// if let splashScreenPlugin = bridge?.plugin(withName: "SplashScreen") {
|
37
|
+
// let selector = NSSelectorFromString("hide:")
|
38
|
+
// if splashScreenPlugin.responds(to: selector) {
|
39
|
+
// let pluginCall = CAPPluginCall(callbackId: "hideSplashScreen", options: [:]) { (callResult, call) in
|
40
|
+
// aigensprint("callResult:\(callResult)")
|
41
|
+
// } error: { error in
|
42
|
+
// aigensprint("error:\(error)")
|
43
|
+
// }
|
44
|
+
// splashScreenPlugin.perform(selector, with: pluginCall)
|
45
|
+
// }
|
46
|
+
// }
|
47
|
+
|
36
48
|
}
|
37
49
|
|
38
50
|
private func handleOpenUrl() {
|
@@ -181,6 +193,12 @@ import Capacitor
|
|
181
193
|
|
182
194
|
descriptor.appendedUserAgentString = "AigensSDK"
|
183
195
|
|
196
|
+
if var splashScreenPlugin = descriptor.pluginConfigurations["SplashScreen"] as? [String: Any] {
|
197
|
+
splashScreenPlugin["launchShowDuration"] = 3
|
198
|
+
splashScreenPlugin["launchAutoHide"] = true
|
199
|
+
descriptor.pluginConfigurations["SplashScreen"] = splashScreenPlugin
|
200
|
+
}
|
201
|
+
|
184
202
|
return descriptor
|
185
203
|
}
|
186
204
|
|