Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin: Notifications API #2731

Closed
a14n opened this issue Mar 16, 2016 · 34 comments
Closed

Plugin: Notifications API #2731

a14n opened this issue Mar 16, 2016 · 34 comments
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. would be a good package Separate Flutter package should be made for this would require significant investment A PR would not be accepted without a plan for ongoing support

Comments

@a14n
Copy link
Contributor

a14n commented Mar 16, 2016

Provide an api to access to http://developer.android.com/guide/topics/ui/notifiers/notifications.html and/or the iOS notifications.

@abarth abarth added affects: services c: new feature Nothing broken; request for a new capability labels Mar 16, 2016
@abarth abarth added this to the Flutter 1.0 milestone Mar 16, 2016
@eseidelGoogle
Copy link
Contributor

Is this the same as #201 ? @collinjackson is this covered by our gmm support?

@collinjackson
Copy link
Contributor

I don't think this is GMM related, this is more about interacting with the Android messages on lock screen API locally. I imagine that devs are going to want to write a bit of Java code to do this unless are Dart wrappers are really good.

@mit-mit mit-mit changed the title Provide Notification API Plugin: Notification / Notification Drawer Feb 2, 2017
@mit-mit mit-mit modified the milestones: 3: Make conferences happy, 5: Make Hixie proud Feb 2, 2017
@Hixie Hixie added the plugin label May 23, 2017
@Hixie
Copy link
Contributor

Hixie commented Aug 22, 2017

@mit-mit You marked this as a milestone 3 issue, can you clarify your plans here?

@Hixie Hixie modified the milestones: 3: Current Milestone, 5: Make Hixie proud, 6: Future Future Dec 13, 2017
@Hixie
Copy link
Contributor

Hixie commented Dec 13, 2017

Moving to far future since this doesn't align with our current priorities.

@sgon00
Copy link

sgon00 commented Dec 13, 2017

It's unbelievable this is moving to far future. How can a user get a notification without this plugin when the app is in background? Please don't tell me to use firebase again. Firebase service is blocked in many countries. Firebase support should never be a priority to me. and yeah, somebody may suggest me to write a plugin by myself. But the reason why I use flutter is because I don't want to write any java/kotlin/swift/objective-c codes. Sorry about my words, Thank the flutter team very much for the hard work. Moving to far future means there is no hope for me to have a simple notification support in flutter when the app is in background.

@mit-mit
Copy link
Member

mit-mit commented Jan 2, 2018

This issue is currently tagged 'self service', but it's probably not clear what we mean by that: The Flutter core team is currently 100% focused on resolving our last few overall blockers. These are things that due to architectural or complexity reasons are unlikely to happen unless we do them, for example the core plugin framework itself. We understand that it's painful when the exact feature you need isn't there already, but at the same time we need to prioritize the time we have.

In the case of the present plugin, we feel this is not blocked on anything missing in our framework, and of manageable complexity, so it's not entirely unreasonable to have a community sourced plugin fill the need (hence the self service tag). So if someone is interested in working on this, that would be very much appreciated, and we would gladly help with input, reviews, etc.

@csbenjamin
Copy link

I am building a music player and I would like to show a notification with a player control, so the user can know where the sound is coming from and easily stop the sound if he/she wants to

@csbenjamin
Copy link

csbenjamin commented Feb 4, 2018

In response to @mit-mit I am going to learn Java and how to develop native android apps first, so I can build this plugin if nobody do it.

@pakivika
Copy link

pakivika commented Feb 22, 2018

My use case is that I'd like to schedule an alarm 15min from now. Alarm should trigger even when the app was not in the foreground or if the screen was blank.

@mitchhymel
Copy link

@pakivika Have you tried the android_alarm_manager plugin?

I built a basic notification plugin for an app I'm working on. Find it here. The plugin isn't published, because I wouldn't recommend using the plugin as it is definitely not well tested, but I think it could be used as an example or proof of concept for someone to build further.

The reasons I don't recommend using it are:

  1. It's not well tested.
  2. I can't promise I'll have time to keep working on it to fully flesh it out.
  3. Currently only Android is supported, and so the API closely matches the Android notification APIs.
  4. Media style notifications are not supported yet.

@pakivika
Copy link

The plugin would be a solution for Android, but I'm building for iOS too.

@MaikuB
Copy link
Contributor

MaikuB commented Mar 25, 2018

I've tried creating a plugin that targets both Android and iOS for displaying basic notifications that also allows for them to scheduled. It can be found at https://pub.dartlang.org/packages/flutter_local_notifications. There's an example for scheduling notifications as well in my GitHub repo for it. Perhaps see if it'll work for you.

@MaikuB
Copy link
Contributor

MaikuB commented Apr 18, 2018

@mit-mit what's the best way to get in touch with your team to get said help :)

I've raised two issues (#16636 and #16662) but got questions on what's possible with the framework to handle certain scenarios

@eseidelGoogle
Copy link
Contributor

In our recent user survey results, this was the 4th most asked for item. @mravn-google @collinjackson are there some easy wins we could get here?

@mravn-google
Copy link
Contributor

@MaikuB has contributed https://pub.dartlang.org/packages/flutter_local_notifications. If that plugin does not represent a win, I'd like to understand why so we can help out (e.g. with resolving #16662).

@zoechi zoechi added would be a good package Separate Flutter package should be made for this and removed would be a good package Separate Flutter package should be made for this p: self service labels Jan 9, 2019
@Hixie Hixie self-assigned this Feb 27, 2019
@Hixie Hixie modified the milestones: Goals, June 2019 Feb 27, 2019
@Hixie Hixie removed their assignment Jun 6, 2019
@Hixie Hixie removed this from the June 2019 milestone Jun 6, 2019
@sgon00
Copy link

sgon00 commented Jun 27, 2019

Hi, sorry to interrupt. I saw Hixie removed their assignment and Hixie removed this from the June 2019 milestone from this issue. So what is the plan now? I heard flutter team would support this soon.

@iapicca iapicca added the customer: crowd Affects or could affect many people, though not necessarily a specific customer. label Nov 1, 2019
@awulkan
Copy link

awulkan commented Dec 30, 2019

What's the status on this issue? It appears to be a heavily requested feature, but it doesn't seem like anyone is working on an official plugin for this. Or am I looking in the wrong places?

@MaikuB
Copy link
Contributor

MaikuB commented Dec 30, 2019

@awulkan my understanding is some of the Flutter team have used my plugin that you've come across and have been helping to look into related issues I've raised e.g. comparability with firebase_messaging. On a general note, if the community has worked on something, I believe the team tries to support that effort where possible, which would allow the team to focus their efforts elsewhere and avoid fragmenting the community

@awulkan
Copy link

awulkan commented Dec 30, 2019

@MaikuB Definitely, and I didn't mean to sound like your plugin wasn't good enough. It's just that this is such a basic and crucial part of applications that I think most developers want some "insurance" that it's prioritized by the Flutter team, and that it won't stop working because you for some reason stopped developing the plugin. It could potentially break a lot of applications.

Thanks for your, and all other contributors, work so far.

In the future I assume it would have to be integrated with Mac, Windows and the web as well to send notifications. That's a lot of integrations to maintain.

@MaikuB
Copy link
Contributor

MaikuB commented Dec 30, 2019

Definitely, and I didn't mean to sound like your plugin wasn't good enough.

All good and I didn't interpret it as such. Just sharing my views based on my experience and interactions with the Flutter team.

It's just that this is such a basic and crucial part of applications that I think most developers want some "insurance" that it's prioritized by the Flutter team, and that it won't stop working because you for some reason stopped developing the plugin. It could potentially break a lot of applications.

Understood though it's been common in other ecosystems to for plugins to be done by the community. With them being open sourced, others can contribute to help out. Should maintainers stop development and it's something that's widely used, chances are someone else will maintain a fork or ownership will be transferred

In the future I assume it would have to be integrated with Mac, Windows and the web as well to send notifications. That's a lot of integrations to maintain.

The Flutter team has a documented proposal for plugins that allow for endorsed platform-specific implementations of a plugin where one of the main benefits is to address this problem. From what I briefly saw for web, the API surface is small. For MacOS, the APIs appear to be the same for iOS. Most of my dev experience is with C# and .NET so should have Windows covered if and when it comes time to that though contributions are welcome :)

@stuartmorgan
Copy link
Contributor

We'll leave this open to continue to track interest, but to set expectations: we currently don't have any plans to take on this significant new plugin work, and encourage people to use the existing, popular plugins from the community.

@devxpy
Copy link

devxpy commented Jun 6, 2022

Good point, I'll do so thanks.

Just curious if you followed up on this :)

Would love to be able to implement background notification handlers in flutter code

@stuartmorgan stuartmorgan added package flutter/packages repository. See also p: labels. and removed plugin labels Mar 9, 2023
@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@stuartmorgan stuartmorgan added the would require significant investment A PR would not be accepted without a plan for ongoing support label Jun 28, 2023
@stuartmorgan
Copy link
Contributor

We'll leave this open to continue to track interest, but to set expectations: we currently don't have any plans to take on this significant new plugin work, and encourage people to use the various existing, popular plugins from the community.

Based on the updated guidance in https://github.com/flutter/flutter/wiki/Issue-hygiene#closing-issues, I'm going to close this issue, better reflecting the expectation that this is not something that the Flutter team plans to implement.

@stuartmorgan stuartmorgan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2023
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. would be a good package Separate Flutter package should be made for this would require significant investment A PR would not be accepted without a plan for ongoing support
Projects
None yet
Development

No branches or pull requests