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
Problem while using schedule notification #673
Comments
There is no issue while using normal display notifications. Only when using this code shown in documentation var scheduledNotificationDateTime =
DateTime.now().add(Duration(seconds: 5));
var androidPlatformChannelSpecifics =
AndroidNotificationDetails('your other channel id',
'your other channel name', 'your other channel description');
var iOSPlatformChannelSpecifics =
IOSNotificationDetails();
NotificationDetails platformChannelSpecifics = NotificationDetails(
androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
await flutterLocalNotificationsPlugin.schedule(
0,
'scheduled title',
'scheduled body',
scheduledNotificationDateTime,
platformChannelSpecifics); |
If you come across a bug, please make sure to file a bug using the bug report template and include a link to a minimal app that can reproduce the problem. Currently, the information you've provided isn't sufficient and I won't be looking further into this as until this is done as I can only currently rely on guesswork. Before you do so, please double check make sure you have followed all of the instructions in the readme very carefully. A lot of issues I've seen are often a result of steps that have been missed |
I followed every instruction and I have tried it in multiple devices. Sorry about the reporting issue. |
You mentioned that you have followed all instructions but that repository belongs to another person in the community that did live coding tutorials |
Should add that the repo is old and the instructions have changed since then. Please provide a link to your own repo or this issue will be closed. There have been a number of cases where others have insisted that they have followed all instructions only for to find out that they haven't. For all I know, that might be the case again and there's an example app on this repository that doesn't have such issues |
Please check my repo. |
You haven't done everything needed for the release build configuration. A file needs to be added to make sure things like notifications are preserved by the compiler. Please re-read the readme and make use of the example app if needed to ensure that has been added |
Can you tell me exactly what I missed ? |
I already have. Please read the last paragraph of the release build configuration as I'd just be repeating myself and developers may need to tweak things based on what's in their app |
Did just as you said. I will let you know after i check it. Anyways thanks for your time. |
Another thing to add is that your app isn't using a drawable resource for the notification icon, which is the official way to do so. Whilst using the launcher icon works, it is the official way to refer to notification icons so you're doing so at your own risk |
Okay. Thank you. |
Checked it right now. Still has the same issue. Please check the repo. |
Your repo is still missing the file I mentioned earlier and in the readme. I'm going to copy and paste the exact paragraph from the readme. Please do not rush and go through things very carefully
|
I cloned this repo and installed the app. It works. I don't know what the issue is. |
Did all that now the scheduling works on profile mode, app crashes on debug mode. |
Please check your application's settings for debug builds then. Also as you're no longer actually reporting a bug and got the example app working, if you continue to run into issues then please make use of one of the sites listed as https://flutter.dev/community. |
It works now. |
The app stops abruptly when setting scheduled notifications.
Lost connection to device.
The text was updated successfully, but these errors were encountered: