docs.unity3d.com
    Show / Hide Table of Contents

    Enum AndroidExactSchedulingOption

    Whether to schedule notifications at exact time or approximately (saves power). Exact scheduling is available in Android 6 (API 23) and newer, lower versions always use inexact scheduling. Android 12 (API 31) or newer requires SCHEDULE_EXACT_ALARM permission and grant from user to use exact scheduling. Android 13 (API 33) or newer can use USE_EXACT_ALARM permission to use exactscheduling without requesting users grant.

    Namespace: Unity.Notifications
    Syntax
    [Flags]
    public enum AndroidExactSchedulingOption

    Fields

    Name Description Value
    ExactWhenAvailable

    Use exact scheduling when possible.


    1
    AddScheduleExactPermission

    Add SCHEDULE_EXACT_ALARM permission to the manifest.


    2
    AddUseExactAlarmPermission

    Add USE_EXACT_ALARM permission to the manifest.


    4
    AddRequestIgnoreBatteryOptimizationsPermission

    Add REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission to the manifest. Required if you want to use .


    8
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023