Skip to content

t1k:unity:tof:notification

FieldValue
Moduletof
Version3.46.8
Efforthigh
Tools—

Keywords: mobile-ux, notification, permission, push notification, smart-prompt

/t1k:unity:tof:notification

Scope — this is a candidate index, not an inventory. This skill indexes one source folder. A feature can span Assets/TheOneFeature/, Packages/com.gdk.*, and sibling Assets/TheOne.* packages, and this skill will only show the folder it was built from. A capability missing here is not evidence that it is absent — verify against source (grep over a stated scope) before concluding anything does not exist. See The1Studio/theonekit-unity#350.

Adding or changing a notification campaign (CSV, sound, large icon, big picture, tap deep link)? Use t1k-unity-tof-notification-campaigns. This skill covers the framework feature itself: permission handling and the smart-prompt.

The notification system itself lives in UITemplate (Assets/UITemplate/Sources/Scripts/Modules/LiveOps/Notification/); this feature is a thin layer on top.

  • TOFNotificationInitOnLoad overrides IsInitNotificationOnLoad to false, so UITemplate does not initialize notifications (and ask for permission) on load.
  • NotificationService subscribes to IFeatureScreenManager.CurrentActiveScreen. On the first screen change where IUserExperienceService.CanRequestNotificationPermission is true it waits 1 second, then calls INotificationService.InitNotification(). It requests once per session.
  • NotificationVContainer.RegisterNotification registers the service; NotificationValidator checks that registration exists.

The Notification feature provides a smart notification permission handling system for Unity mobile games with user experience-aware timing. It seamlessly integrates with the user experience system to request notification permissions at optimal moments, ensuring a non-intrusive user experience while maximizing permission grant rates.

class

  • NotificationService (NotificationService.cs)
  • NotificationValidator (NotificationValidator.cs)
  • NotificationVContainer (NotificationVContainer.cs)

None detected.

None detected.

  1. Reference package TheOneFeature in your project.
  2. Register the Notification services via VContainer (see Architecture).
  3. Configure any ScriptableObjects listed in Config section.
  4. Subscribe to signals listed in Signals / Events to react to state changes.

Detected public types (3): class

  • NotificationService (NotificationService.cs)
  • NotificationValidator (NotificationValidator.cs)
  • NotificationVContainer (NotificationVContainer.cs)

Detected DI registrations:

  • NotificationService

Read from the three .asmdef files under the source folder (verified on disk); the .asmdef stays authoritative if they drift.

AssemblyRoleReferences
TheOne.Features.NotificationRuntimeTheOne.Features.Core, UITemplate.Scripts, UITemplate.LocalData, UITemplate.UI, UITemplate.LiveOps, GameFoundation.UIModule, TheOne.Features.UserExperience.Core, TheOne.Features.Gameplay.Core, TheOne.Lifecycle, TheOne.DI, TheOne.DI.VContainer, TheOne.Data.Serializers.Csv, UniTask, R3.Unity
TheOne.Features.Notification.DIVContainer registrationTheOne.Features.Notification, VContainer, TheOne.Extensions.VContainer
TheOne.Features.Notification.EditorEditor-only validatorRuntime + DI assemblies, TheOne.Features.Editor, VContainer, GameFoundation.Editor, TheOne.Extensions.VContainer, TheOne.Data.Serializers.Csv

The smart-prompt depends on TheOne.Features.UserExperience.Core: that is the user-experience system it uses to pick the moment to ask for permission.

  • TheOne.Features.NoInternet.Editor in the namespace list below is not a typo in this skill — it is a copy-paste bug in upstream source, and the skill is reporting it faithfully. Core/Features/Notification/Editor/NotificationValidator.cs:1 declares namespace TheOne.Features.NoInternet.Editor even though its assembly is TheOne.Features.Notification.Editor (verified on disk; the asmdef sets no rootNamespace, so nothing forces the two to agree). Do not “correct” it to …Notification.Editor here — that would make this skill describe a namespace that does not exist, and using it would not compile. The fix belongs upstream in TheOneFeature; until it lands, code referencing that validator must use the NoInternet namespace.
  • Source: Assets/TheOneFeature/Core/Features/Notification/
  • Doc: Assets/TheOneFeature/Core/Features/Notification/README.md
  • Doc: Assets/TheOneFeature/Core/Features/Notification/CHANGELOG.md
  • Namespace: TheOne.Features.NoInternet.Editor, TheOne.Features.Notification.DI, TheOne.Features.Notification.Services