capacitor-plugin-getui
Advanced tools
@@ -33,4 +33,2 @@ package com.yufu.plugin.getui; | ||
| private String clientId = null; | ||
| private LocalNotificationManager manager; | ||
| private NotificationStorage notificationStorage; | ||
@@ -266,27 +264,2 @@ @Override | ||
| /** | ||
| * 创建本地通知 | ||
| */ | ||
| @PluginMethod | ||
| public void schedule(PluginCall call) { | ||
| List<LocalNotification> localNotifications = LocalNotification.buildNotificationList(call); | ||
| if (localNotifications == null) { | ||
| return; | ||
| } | ||
| JSONArray ids = manager.schedule(call, localNotifications); | ||
| if (ids != null) { | ||
| notificationStorage.appendNotifications(localNotifications); | ||
| JSObject result = new JSObject(); | ||
| JSArray jsArray = new JSArray(); | ||
| for (int i = 0; i < ids.length(); i++) { | ||
| try { | ||
| JSObject notification = new JSObject().put("id", ids.getInt(i)); | ||
| jsArray.put(notification); | ||
| } catch (Exception ex) { | ||
| } | ||
| } | ||
| result.put("notifications", jsArray); | ||
| call.resolve(result); | ||
| } | ||
| } | ||
@@ -293,0 +266,0 @@ public static GetuiPlugin getInstance() { |
+1
-1
| { | ||
| "name": "capacitor-plugin-getui", | ||
| "version": "0.0.5", | ||
| "version": "0.0.6", | ||
| "description": "个推", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
28378
-3.01%443
-5.74%