Comments (4)
Can you send me your notification creation code as an example?
And also send me what system are you running, which version and whats is your plugin version?
from awesome_notifications.
- macOS Catalina (10.15.5)
- Samsung m30s
- Android 10 (Q)
- awesome_notifications: ^0.0.5+2
//////////////// Example ////////////////
AwesomeNotifications().initialize(
'resource://drawable/ic_launcher',
[
NotificationChannel(
channelKey: 'appointment_channel',
channelName: 'Appointment Alert',
channelDescription: '',
importance: NotificationImportance.Max, // High, Max
defaultPrivacy: NotificationPrivacy.Public,
icon: 'resource://drawable/ic_launcher',
enableLights: true,
playSound: true,
enableVibration: true,
onlyAlertOnce: false,
locked: true,
ledOnMs: 1000,
ledOffMs: 500,
defaultColor: Colors.red,
ledColor: Colors.blue,
vibrationPattern: Int64List.fromList(
List.generate(30, (index) => index % 2 == 0 ? 500 : 1000)
.toList())),
],
);
////////////////
Future showNotification () async {
final scheduleDate = DateTime.now().add(Duration(minutes: 1));
await AwesomeNotifications().createNotification(
content: NotificationContent(
id: 12,
channelKey: 'appointment_channel',
title: "*** Appointment Alert ***",
body: "",
autoCancel: false,
locked: true,
showWhen: true,
color: appColor.red,
ticker: 'ticker1',
payload: {
"data": "hiii",
},
),
actionButtons: [
NotificationActionButton(
buttonType: ActionButtonType.KeepOnTop,
key: "CANCEL",
label: "Cancel",
autoCancel: true),
NotificationActionButton(
buttonType: ActionButtonType.Default,
key: "OPEN",
label: "Open",
autoCancel: true)
],
schedule: NotificationSchedule(
allowWhileIdle: true,
crontabSchedule: CronHelper.instance
.atDate(scheduleDate.toUtc(), initialSecond: 0),
),
);
}
from awesome_notifications.
I did not check what happened, but ill do as soon as possible.
from awesome_notifications.
Sorry for take so long. I have fixed it, was a "copy and paste" mistake inside json conversion method.
This fix will be available on next release.
from awesome_notifications.
Related Issues (20)
- Swift Compiler Error (Xcode): Type 'Logger' has no member 'e', 'd' or 'i' when update to 0.7.7 HOT 39
- Schedule notifications does not fire up when app is killed (Android) HOT 13
- Alarm duration
- Awesome notification is not running on ios HOT 4
- [iOS] Silent Notificaiton is not working, issue related to displayOnBackground, playSound HOT 2
- Use String or UUID not integer to identify Notification Schedules! Integer is not Unique.. HOT 1
- IOS communication notifications & Android conversation notifications HOT 1
- Multiple XCode error on version 0.8.2 HOT 5
- Notification Badge Count not updating if multiple Notifications are shown. HOT 1
- Notification Badge Count not updating if multiple Notifications are shown. iOS HOT 2
- onActionReceivedMethod always returns the FIRST Notification HOT 2
- Check if user has actually denied permissions HOT 1
- Bug release - Firebase service is not available HOT 2
- Doc: Steps for non-xcode IDE like vscode in configuring IOS HOT 1
- Using locked: true with NotificationContent produces notifications that are still dismissable (Android) HOT 3
- Cannot set BUILD_LIBRARY_FOR_DISTRIBUTION and APPLICATION_EXTENSION_API_ONLY to Codemagic HOT 2
- Unable to instantiate service me.carda.awesome_notifications.core.managers.StatusBarManager HOT 1
- No Dart Background Handler Registered HOT 2
- Support for More Image Formats HOT 1
- Need more clarification about playing sound in background simultaneously with the notification. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome_notifications.