ModelServerCommandRemoteNotificationSchedule constructor

const ModelServerCommandRemoteNotificationSchedule({
  1. required ModelTimestamp time,
  2. required String title,
  3. required String text,
  4. required NotificationTargetQuery target,
  5. String? channelId,
  6. DynamicMap? data,
  7. Uri? link,
  8. int? badgeCount,
  9. String? sound,
})

ModelServerCommandBase for remote PUSH notification to time.

Enter the text for the notification in the title and text fields, and specify a token or topic string for the notification in the tokens and topic fields.

If you use this in firestore, please specify the fields _time and _done in CollectionID:schedule to create the index.

timeにリモートPUSH通知を行うためのModelServerCommandBaseです。

titletextに通知用の文言を入力し、tokenstopicに通知用のトークンやトピックの文字列を指定します。

firestoreでこちらを利用する場合CollectionID:schedule_time_doneのフィールドを指定してインデックスを作成してください。

Implementation

const factory ModelServerCommandRemoteNotificationSchedule({
  required ModelTimestamp time,
  required String title,
  required String text,
  required NotificationTargetQuery target,
  String? channelId,
  DynamicMap? data,
  Uri? link,
  int? badgeCount,
  String? sound,
}) = _ModelServerCommandRemoteNotificationSchedule;