Skip to content

v1.60 (stable)

Choose a tag to compare

@Fector101 Fector101 released this 27 Jan 18:24
· 48 commits to main since this release

v1.60.8

What’s New

Feature Description
Service communication Notification buttons can now communicate with services
Permission handling Improved behavior when requesting notification permission
Flet support Beta support for Flet Python apps
without-androidx branch Fallback branch for environments without ability to add Gradle dependencies
Logging Improved logging with log levels

Class: Notification

Methods

Method Description
setSound Change the default notification sound
setSubText Add small text near the title (e.g. download time remaining)
setColor Set app icon color using a hex color code
channelExists(channel_id) Check if a notification channel exists
doChannelsExist() Accepts a list of channel IDs and returns those that do not exist
setWhen(secs) Change the time the notification was created
setVibrate(pattern) For devices below Android 8; defaults to a single vibration
fVibrate Force vibration even if disabled in system notification settings
setData(data_object) Attach a dictionary of extra data to the notification

New Arguments

Argument Description
addButton receiver_name and action (both default to None)
createChannel vibrate flag (defaults to false) and res_sound_name uses default sysytem sound
setBigText title and summary parameters

Properties

Property Description
title_color Beta support for setting notification title color
message_color Beta support for setting notification message color

Class: NotificationHandler

Methods

Method Description
asks_permission Opens notification settings if the user previously selected “Don’t allow” and Android can no longer show the permission dialog

Properties

Property Description
data_object Access data added via Notification.setData

New Arguments

Argument Description
get_name on_start must be True when called from App.on_start()

Flet Apps

Status Notes
Partial support All features work except actions (clicks only opens the app)

Other

Change Description
Version check Added command-line argument to check library version
Tests Added a folder containing comprehensive tests

What’s Changed

Fix Description
core.py styles Fixed style implementation