UnityCommon-Notifications
Support scheduling local one-time or repeatable notifications for Unity games (Android and iOS)
com.wolf-org.notifications Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/notifications.git README Markdown
Copy this to your project's README.md
## Installation
Add **UnityCommon-Notifications** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/notifications.git
```
[](https://www.pkglnk.dev/pkg/notifications)Dependencies (2)
README
What
Support scheduling local one-time or repeatable notifications for Unity games (Android and iOS)
How To Install
Add the line below to Packages/manifest.json
for version 1.0.0
"com.wolf-org.notifications":"https://github.com/unity-package/notification-unity.git#1.0.0",
dependency com.unity.mobile.notifications-2.3.2 and com.cysharp.unitask-2.5.5
"com.unity.mobile.notifications": "2.3.2",
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#2.5.5",
Use
- Add define symbol
VIRTUESKY_NOTIFICATION - Create
NotificationChanel(viaCreate>Unity-Common>Notification Chanel)
IdentifierMinute(after t minute notification will be sent)Repeat(is it repeatable or not)Pig Picture(only android)Name Picture(name pig picture notification)Note: File big picture must be place in folder StreamingAsset, Name Picture must contains file extension ex .jpg
Override IconSmall Icon(custom small icon)Large Icon(custom large icon)NotificationPrepareAttach NotificationPrepare to scene to prepare notification android bigpicture, RequestUserPermission android and schedule
- Send notification
public NotificationChanel notificationChanel;
private void Start()
{
notificationChanel.Send();
}
- Schedule notification
public NotificationChanel notificationChanel;
private void Start()
{
notificationChanel.Schedule();
}
- Cancel All Scheduled
public NotificationChanel notificationChanel;
private void Start()
{
notificationChanel.CancelAllScheduled();
}
No comments yet. Be the first!