Buggy Intent-Plugin

32 views
Skip to first unread message

Daniel Kusch

unread,
Oct 23, 2017, 11:35:04 AM10/23/17
to flutt...@googlegroups.com

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

 


https://www.emetriq.com

Erfahren Sie mehr auf emetriq.com

https://www.xing.com/companies/emetriqgmbh https://twitter.com/emetriq?lang=de https://de-de.facebook.com/emetriq/

emetriq GmbH
Vorsetzen 35
20459 Hamburg

Sitz der Gesellschaft: Bonn
Handelsregister: AG Bonn, HRB 20117
Geschäftsführer: Daniel Neuhaus, Claas Voigt


Wir sind Mitglied im BVDW (Bundesverband Digitale Wirtschaft)

This e-mail is confidential and is intended for the addressee(s) only.
If you are not the named addressee you may not use it, copy it or
disclose it to any other person. If you received this message in error
please notify the sender immediately.

Todd Volkert

unread,
Oct 23, 2017, 12:07:41 PM10/23/17
to Daniel Kusch, flutt...@googlegroups.com
Can you please file a bug at https://github.com/flutter/flutter/issues?

-T

p.s. DateTime.SUNDAY is a different value than java.util.Calendar.SUNDAY.  In this case, since you're using all seven days, it happens to not matter, but you should probably maintain separate constants for the days of the week that match Java's values.

--
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.

Reply all
Reply to author
Forward
0 new messages