docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Event OnNotificationReceived

    An event that fires when notification is received. Application must be running for this event to work. On Android this even fires if application is in foreground or when it's brought back from background. On iOS this even only fires when notification is received while app is in foreground.

    Namespace: Unity.Notifications
    Assembly: solution.dll
    Syntax
    public static event NotificationCenter.NotificationReceivedCallback OnNotificationReceived
    Returns
    Type Description
    NotificationCenter.NotificationReceivedCallback
    Remarks

    This event is the same as AndroidNotificationCenter.OnNotificationReceived and iOSNotificationCenter.OnNotificationReceived.

    In This Article
    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