-
Notifications
You must be signed in to change notification settings - Fork 12
Mobile Notifiaction
VirtueSky edited this page Sep 4, 2024
·
8 revisions
- Open tab
Notification Chanel
inMagic Panel
>Create Notification Chanel
- If you haven't installed mobile notification yet, you can click
Install Mobile Notification
- If you haven't added define symbols yet, click
Add --> VIRTUESKY_NOTIFICATION
-
Identifier
: Id of chanel -
Minute
: After timeMinute
, a notification will be sent -
Repeat
: Withtrue
, notification sending will be repeated -
Big Picture
: Withtrue
, notification use pig picture.
(note: File big picture must be place in folder StreamingAsset
, Name Picture must contains file extension ex .jpg
)
-
Name Picture
: Name of pig picture -
Datas
: Is a list containing notificationtiles
and notificationmessages
- If use pic picture, you need add component
Notification Prepare
-
Code demo send / schedule notification
- Send(): Send notification immediately when calling the function
- Schedule(): Schedule and will send notification after the time
Minute
set up inNotification Chanel
[SerializeField] private List<NotificationVariable> listNotificationVariable;
void Start()
{
foreach (var notification in listNotificationVariable)
{
notification.Schedule();
}
}
public void SendNotification()
{
foreach (var notification in listNotificationVariable)
{
notification.Send();
}
}