我正在開發Android & IOS設備的應用程序。我在移動設備(AndroidIOS)中獲取本地通知,而在Android平板電腦和iPad設備中也無法使用本地通知。以下是供您參考的代碼片段。LocalNotifications問題在Android平板電腦和iPad設備
LocalNotification n = new LocalNotification();
n.setId("demo-notification");
n.setAlertBody(records.toString());
n.setAlertTitle("Break Time!");
Display.getInstance().scheduleLocalNotification(n,
System.currentTimeMillis() + 10 * 1000, // fire date/time
LocalNotification.REPEAT_NONE // Whether to repeat and what frequency
嘗試刪除System.currentTimeMillis()。如果我刪除它,我們沒有收到任何警報。正如我在之前的消息中所說的,我僅在Android平板電腦上遇到此問題。 –
僅供參考,您需要回答Steve,否則他不會收到警報。你也在問題「和ipad」中寫道,這使得iOS和Android都出現問題。目前還不清楚問題是如何表現出來的。 –