docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PushNotificationSettings

    A class for configuring the Push Notifications SDK.

    Some of the fields in this class are platform specific, and are prefixed with the platform they relate to. However, it is not required to use a separate settings object on each platform, as the SDK will automatically only retrieve settings for the platform it is running on.

    Inheritance
    object
    Object
    ScriptableObject
    PushNotificationSettings
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Services.PushNotifications
    Assembly: Unity.Services.PushNotifications.dll
    Syntax
    public class PushNotificationSettings : ScriptableObject

    Fields

    firebaseAppID

    The application ID for a Firebase application to be used for Android's Firebase Cloud Messaging API. This can be found in your Firebase dashboard.

    Declaration
    [FormerlySerializedAs("androidApplicationId")]
    public string firebaseAppID
    Field Value
    Type Description
    string

    firebaseProjectID

    The project ID for a Firebase project to be used for Android's Firebase Cloud Messaging API. This can be found in your Firebase dashboard.

    Declaration
    [FormerlySerializedAs("androidProjectId")]
    public string firebaseProjectID
    Field Value
    Type Description
    string

    firebaseProjectNumber

    The sender ID to be used for Android's Firebase Cloud Messaging. This can be found in your Firebase dashboard.

    Declaration
    [FormerlySerializedAs("androidSenderId")]
    public string firebaseProjectNumber
    Field Value
    Type Description
    string

    firebaseWebApiKey

    The API key for a Firebase project to be used for Android's Firebase Cloud Messaging API. This can be found in your Firebase dashboard.

    Declaration
    [Header("Android (Firebase) Settings")]
    [FormerlySerializedAs("androidApiKey")]
    public string firebaseWebApiKey
    Field Value
    Type Description
    string

    Methods

    GetAssetInstance()

    Retrieves the copy of the settings persisted as an asset. Will return an empty settings object if no asset is available. The settings in this asset can be updated in the Editor from Project Settings > Services > Push Notifications.

    Declaration
    public static PushNotificationSettings GetAssetInstance()
    Returns
    Type Description
    PushNotificationSettings

    The settings persisted as an asset in the project, or a blank object if no settings are persisted.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)