Bot releases are visible (Hide)
Published by MaikuB almost 3 years ago
Published by MaikuB almost 3 years ago
Published by MaikuB almost 3 years ago
Published by MaikuB almost 3 years ago
Future
for scheduling a notification could be completed prior to saving information on the scheduled notification to shared preferences. In this case the notification would still be scheduled but if the plugin was used to query the pending notifications quick enough, the plugin may have returned the incorrect number of pending notificationsPublished by MaikuB almost 3 years ago
Published by MaikuB almost 3 years ago
Published by MaikuB almost 3 years ago
Scheduled Android notifications
section. Thanks to Yousef Akiba for the PRtimezone
dependency so it uses the all
variant of the IANA database that contains all timezones including those that are deprecated or may link to other timezonesPublished by MaikuB almost 3 years ago
onSelectNotification
callback isn't specifiedPublished by MaikuB about 3 years ago
SelectNotificationCallback
and DidReceiveLocalNotificationCallback
typedefs now map to functions that returns void
instead of a Future<dynamic>
. This change was done to better communicate the plugin doesn't actually await any asynchronous computation and is similar to how button pressed callbacks work for Flutter where they are typically use VoidCallback
value
property of the Importance
class is now non-nullableFlutterLocalNotificationsPlugin.private()
constructor that was visible for testing purposes has been removed. The plugin now uses the defaultTargetPlatform
property from the Flutter framework to determine the platform an application running on. This removes the need for depending on the platform
package. To write tests that require a platform-specific implementation of the plugin, the debugDefaultTargetPlatformOverride property can be used to do sodescription
property of the AndroidNotificationChannel
class and the channelDescription
property of the AndroidNotificationDetails
class are now named parametersAndroidIcon
class is now a generic class i.e. AndroidIcon<T>
and it's icon
property has been renamed to data
. With this change, the type of the icon
property that belongs to the Person
class has changed from AndroidIcon?
to AndroidIcon<Object>?
ByteArrayAndroidIcon
class that implements the AndroidIcon<T>
class. This allows using a byte array to use as the icon for a person in a message style notification. A ByteArrayAndroidIcon.fromBase64String()
named constructor is also available that will enable this using a base-64 encoded string. Thanks to the PR from Alexander Petermann
clock
package for internal logic that relies on geting the current time, such as validating that the date for a scheduled notification is set in the futurePublished by MaikuB about 3 years ago
AndroidIcon
class is now a generic class i.e. AndroidBitmap<T>
. This has resulted in the following changeicon
property that belongs to the Person
class has changed from AndroidIcon?
to AndroidIcon<Object>?
ByteArrayAndroidIcon
class that implements the AndroidIcon<T>
class. This allows using a byte array to use as the icon for a person in a message style notification. A ByteArrayAndroidIcon.fromBase64String()
named constructor is also available that will enable this using a base-64 encoded string. Thanks to the PR from Alexander Petermann
Published by MaikuB about 3 years ago
description
property of the AndroidNotificationChannel
class and the channelDescription
property of the AndroidNotificationDetails
class are now named optional parametersPublished by MaikuB about 3 years ago
dayOfMonthAndTime
and dateAndTime
values to the DateTimeComponents
enum. These allow for creating monthly and yearly notifications respectively. Thanks to the PR from Denis Shakinov
Published by MaikuB about 3 years ago
SelectNotificationCallback
typedef now maps to a function that returns void
instead of a Future<dynamic>
. This change was done to better communicate the plugin doesn't actually await any asynchronous computation and is similar to how button pressed callbacks work for Flutter where they are typically use VoidCallback
Published by MaikuB about 3 years ago
initialize()
to mention that the getNotificationAppLaunchDetails()
method should be used to handle when a notification launches an applicationPublished by MaikuB about 3 years ago
Published by MaikuB about 3 years ago
Published by MaikuB about 3 years ago
value
property of the Importance
class is now non-nullableFlutterLocalNotificationsPlugin.private()
constructor that was visible for testing purposes has been removed. The plugin now uses the defaultTargetPlatform
property from the Flutter framework to determine the platform an application running on. This removes the need for depending on the platform
package. To write tests that require a platform-specific implementation of the plugin, the debugDefaultTargetPlatformOverride property can be used to do soclock
package for internal logic that relies on geting the current time, such as validating that the date for a scheduled notification is set in the futurePublished by MaikuB about 3 years ago
startForegroundService()
and stopForegroundService()
methods to the AndroidFlutterLocalNotificationsPlugin
class. This can be used to start and stop a foreground service that shows a foreground service respectively. Refer to the API docs for more details on how to use this. The example app has been updated to demonstrate their usage. Thanks to the PR from EPNW
Published by MaikuB about 3 years ago
AndroidBitmap
class is now a generic class i.e. AndroidBitmap<T>
. This has resulted in the following changeslargeIcon
property that belongs to the AndroidNotificationDetails
class has changed from AndroidBitmap
to AndroidBitmap<Object>
largeIcon
and bigPicture
properties that belongs to the BigPictureStyleInformation
class has changed from AndroidBitmap
to AndroidBitmap<Object>
ByteArrayAndroidBitmap
class that implements the AndroidBitmaps<T>
class. This allows using a byte array to use as the large icon for a notification or as big picture if the big picture style has been applied. A ByteArrayAndroidBitmap.fromBase64String()
named constructor is also available that will enable this using a base-64 encoded string. Thanks to the PR from Alexander Petermann
Published by MaikuB about 3 years ago