@aigens/aigens-sdk-core 0.0.27 → 0.0.28
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();
|