Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

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

Style
Preview
pkglnk installs badge
## 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
```

[![pkglnk](https://www.pkglnk.dev/badge/notifications.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/notifications)

Dependencies (2)

README

Made With Unity License Last Commit Repo Size Last Release

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 (via Create > Unity-Common > Notification Chanel)

Unity_Sc8gP1veiY

Screenshot 2024-08-28 135421

  • Identifier
  • Minute (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

mJSRu

  • Override Icon

  • Small Icon (custom small icon)

  • Large Icon (custom large icon)

  • NotificationPrepare Attach NotificationPrepare to scene to prepare notification android bigpicture, RequestUserPermission android and schedule

Screenshot 2024-08-28 140819

  • 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();
  }

Comments

No comments yet. Be the first!