Dear Flutter-Team
I have a problem with the Intent-Plugin
I want to set an repeating Alarm for each day of the Week, but the Plugin can’t handle the required List of Days.
My Code looks like this:
_openReminder()
async {
AndroidIntent intent = new AndroidIntent(
action: 'android.intent.action.SET_ALARM',
arguments: {
'android.intent.extra.alarm.DAYS': [
DateTime.SUNDAY,
DateTime.MONDAY,
DateTime.TUESDAY,
DateTime.WEDNESDAY,
DateTime.THURSDAY,
DateTime.FRIDAY,
DateTime.SATURDAY
],
'android.intent.extra.alarm.HOUR': 21,
'android.intent.extra.alarm.MINUTES': 30,
'android.intent.extra.alarm.SKIP_UI': true,
'android.intent.extra.alarm.MESSAGE': 'DayTracker',
'android.intent.extra.alarm.IS_PM': true
});
await intent.launch();
}
But this is the Error I got:
E/flutter ( 6221): PlatformException(error, Unsupported type [7, 1, 2, 3, 4, 5, 6], null)
E/flutter ( 6221): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:514)
E/flutter ( 6221): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:154)
E/flutter ( 6221): <asynchronous suspension>
E/flutter ( 6221): #2 AndroidIntent.launch (package:android_intent/android_intent.dart:45)
Can you help me?
Best,
Daniel
--
Daniel Kusch
Senior Software Engineer
emetriq GmbH
Erfahren Sie mehr auf emetriq.com
emetriq GmbH
Vorsetzen 35
20459 Hamburg
Sitz der Gesellschaft: Bonn
Handelsregister: AG Bonn, HRB 20117
Geschäftsführer: Daniel Neuhaus, Claas Voigt
--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.