Codenameone 每十分钟本地通知一次

Codenameone 每十分钟本地通知一次,codenameone,Codenameone,我写道: LocalNotification localNotification = new LocalNotification(); localNotification.setId("Gratitudine"); localNotification.setAlertTitle("Pratica della Gratitudine"); localNotification.setAlertBody("Leggi e ripeti interiorm

我写道:

LocalNotification localNotification = new LocalNotification();
        localNotification.setId("Gratitudine");
        localNotification.setAlertTitle("Pratica della Gratitudine");
        localNotification.setAlertBody("Leggi e ripeti interiormente");
        localNotification.setAlertSound("/notification_sound_bell.mp3");
        // alert sound file name must begin with notification_sound

        Display.getInstance().scheduleLocalNotification(localNotification,
                System.currentTimeMillis() + 60 * 1000, // first notification
                LocalNotification.REPEAT_MINUTE // Whether to repeat and what frequency
        );
它起作用了

每十分钟重复一次通知的正确方法是什么?唯一可用的选项是:
REPEAT\u NONE
REPEAT\u MINUTE
REPEAT\u HOUR
REPEAT\u DAY
REPEAT\u WEEK

任意分钟数(例如4或13)的同一问题


谢谢你

据报道,这似乎是不可能的。你只能让它每分钟重复一次。要执行所需操作,您可能需要每隔一段时间设置其他通知。这意味着,如果您想取消它们,您需要在用户单击通知并打开应用程序或其他事件时执行此操作。

不支持任意重复持续时间。我不知道为什么,但我想这是不一致的本地支持