Skip to content

Support scheduling local one-time or repeatable notifications for Unity games (Android and iOS)

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

unity-package/notification-unity

Repository files navigation

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

About

Support scheduling local one-time or repeatable notifications for Unity games (Android and iOS)

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages