diff --git a/android/src/main/kotlin/com/gdelataillade/alarm/alarm/AlarmPlugin.kt b/android/src/main/kotlin/com/gdelataillade/alarm/alarm/AlarmPlugin.kt index 5df60445..c28cc88c 100644 --- a/android/src/main/kotlin/com/gdelataillade/alarm/alarm/AlarmPlugin.kt +++ b/android/src/main/kotlin/com/gdelataillade/alarm/alarm/AlarmPlugin.kt @@ -129,7 +129,7 @@ class AlarmPlugin: FlutterPlugin, MethodCallHandler { } fun handleDelayedAlarm(context: Context, intent: Intent, delayInSeconds: Int, id: Int) { - val triggerTime = System.currentTimeMillis() + delayInSeconds * 1000 + val triggerTime = System.currentTimeMillis() + delayInSeconds * 1000L val pendingIntent = PendingIntent.getBroadcast( context, id,