Notifications #5580
Replies: 54 comments
-
Some (possibly) useful links: |
Beta Was this translation helpful? Give feedback.
-
somewhat related to #547 |
Beta Was this translation helpful? Give feedback.
-
Another package, but this one seems to promise all the same platforms as Flet: https://pub.dev/packages/awesome_notifications, but it seems to require firebase. I think it may end up being the best to implement notifications yourself in a flutter app that loads flet (https://pub.dev/packages/flet), simply because of the complications caused by each platform, I'm not sure how maintainable and up-to-date an integrated flet solution will be |
Beta Was this translation helpful? Give feedback.
-
Article: https://medium.com/@ndonkohenri/sending-desktop-notifications-in-python-flet-97f0834f993d Repo: https://github.com/ndonkoHenri/Python-Desktop-Notifications Hope it helps while waiting for a native solution. |
Beta Was this translation helpful? Give feedback.
-
I have come across these links in some Google searches, plyer is a good candidate to solve the problem, what is not clear is how to integrate it with flet. In the test I did, at the moment I execute the notification, the application is closed on the Android emulator. |
Beta Was this translation helpful? Give feedback.
-
me too |
Beta Was this translation helpful? Give feedback.
-
How can I add this package to my python project? |
Beta Was this translation helpful? Give feedback.
-
hey, @ndonkoHenri now that we have the ability to use flutter packages in flet, we can make a control using any of the flutter packages to send notification. Please add this to the roadmap. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Hello everyone. I am developing an Android app and I specifically requiere my app to receive push notifications from Firebase via Firebase Cloud Messaging. Does anyone know a workaround to add this funcionality in Flet? Or do I have to wait for a custom component to achieve this? Thank you all Flet guys for the amazing job so far. ¡Gracias! |
Beta Was this translation helpful? Give feedback.
-
Oh my god, I'm also really looking forward to having this feature. Currently, flet does not have the push notification feature, while it is a standard feature of a mobile application. |
Beta Was this translation helpful? Give feedback.
-
I'm also looking for push messages for Android in Flet. When we will have them's? |
Beta Was this translation helpful? Give feedback.
-
how about a combination of awesome_notification(for mobile) and flutter_local_notification(for desktop) to flet ? |
Beta Was this translation helpful? Give feedback.
-
I am also very interested in this basic feature. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately it is not possible. You need to perform the build. |
Beta Was this translation helpful? Give feedback.
-
https://discord.com/channels/981374556059086931 This link is not working... |
Beta Was this translation helpful? Give feedback.
-
Did you mean the link to the video? If so, the full link is this: https://discord.com/channels/981374556059086931/1247163952186654790/1319883478451490898 |
Beta Was this translation helpful? Give feedback.
-
Yes but still this link is not working |
Beta Was this translation helpful? Give feedback.
-
Flet OneSignal - Flutter OneSignal package integration.
|
Beta Was this translation helpful? Give feedback.
-
To send specific notifications to a specific user's device using OneSignal in your Flutter app, you'll need to identify and target that specific device (or user). OneSignal provides several ways to achieve this, such as tags, player IDs, or segments. Here’s a step-by-step guide to send notifications to a specific device using OneSignal:
Getting the OneSignal Player ID in Flutter: Here’s how you can get the Player ID in your Flutter app: import 'package:onesignal_flutter/onesignal_flutter.dart';
void main() {
runApp(MyApp());
// Initialize OneSignal
OneSignal.shared.setAppId("YOUR_ONESIGNAL_APP_ID");
// Get the Player ID (device identifier)
OneSignal.shared.getDeviceState().then((deviceState) {
String playerId = deviceState?.userId ?? "No Player ID";
print("Player ID: $playerId"); |
Beta Was this translation helpful? Give feedback.
-
How can we get user device player I'd using this flet-onesignal |
Beta Was this translation helpful? Give feedback.
-
Hi bro, What I did was just the beginning of a potential integration for the package. Things have been quite hectic for me lately with other tasks and activities, and I haven’t had the time to dive into the Flutter package to add new features to flet-onesignal. Also, my knowledge of Flutter is minimal or almost nonexistent, so I need to study and understand the OneSignal Flutter logic to implement it in flet-onesignal. If you'd like to help implement new features, I’d be grateful and would be more than happy to add you as a collaborator on the project. What do you think? My invitation also extends to others involved in this issue who may want to contribute. |
Beta Was this translation helpful? Give feedback.
-
its stucks during build apk for android at [14:17:54] Generated splash screens ✅ |
Beta Was this translation helpful? Give feedback.
-
Hi bro. I use Flutter v3.24.2 and Poetry for managing and configuring my projects. All configuration is done in the Below is an example of a pyproject.toml file configuration in case you also use Poetry: [tool.poetry]
name = "example-flet-app"
version = "0.1.0"
description = ""
authors = ["brunobrown <example@test.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
flet = "^0.25.2"
onesignal_flet = {git = "https://github.com/brunobrown/onesignal-flet.git", rev = "main"}
[tool.flet]
org = "com.mycompany" # --org
product = "Product name" # --product
company = "My Company" # --company
copyright = "Copyright (C) 2024 by MyCompany" # --copyright
build_number = 1 # --build-number
app.module = "main" # --module-name
compile.cleanup = false # --cleanup-on-compile
[tool.flet.flutter.dependencies] # <--- here
flet_onesignal = "^0.0.1" # <--- Flutter package here
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Even if you don't use Poetry, you can just create a |
Beta Was this translation helpful? Give feedback.
-
@brunobrown can you merge it in flet as a pull request |
Beta Was this translation helpful? Give feedback.
-
@FeodorFitsner as flet now supporting pyjnius when will flet support plyer? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone! 👋 I finally found a solution for sending notifications in Flet mobile applications using Pyjnius! 🔗 Video Link: How to Send Notifications in Flet using Pyjnius Hope it helps! 😊 |
Beta Was this translation helpful? Give feedback.
-
Here is solution for local push notifications in flet |
Beta Was this translation helpful? Give feedback.
-
Hey everyone! 👋 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please Describe The Problem To Be Solved
I want a way to send notifications to the user for example when the app is minimized.
Beta Was this translation helpful? Give feedback.
All reactions