docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Event OnRemoteNotificationReceived

    Subscribe to this event to receive a callback whenever a remote notification is received while the app is in foreground, if you subscribe to this event remote notification will not be shown while the app is in foreground and if you still want to show it to the user you will have to schedule a local notification with the data received from this callback. If you want remote notifications to be shown automatically subscribe to the [[OnNotificationReceived]] even instead and check the [[Notification.Trigger]] class type to determine whether the received notification is a remote notification.

    Namespace: Unity.Notifications.iOS
    Assembly: solution.dll
    Syntax
    public static event iOSNotificationCenter.NotificationReceivedCallback OnRemoteNotificationReceived
    Returns
    Type Description
    iOSNotificationCenter.NotificationReceivedCallback
    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