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.
Inherited Members
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindFirstObjectByType(System.Type)
UnityEngine.Object.FindAnyObjectByType(System.Type)
UnityEngine.Object.FindFirstObjectByType(System.Type, UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType(System.Type, UnityEngine.FindObjectsInactive)
Namespace: Unity.Services.PushNotifications
Syntax
public class PushNotificationSettings : ScriptableObject
Fields
firebaseAppID
Declaration
[FormerlySerializedAs("androidApplicationId")]
public string firebaseAppID
Field Value
| Type | Description |
|---|---|
| String |
firebaseProjectID
Declaration
[FormerlySerializedAs("androidProjectId")]
public string firebaseProjectID
Field Value
| Type | Description |
|---|---|
| String |
firebaseProjectNumber
Declaration
[FormerlySerializedAs("androidSenderId")]
public string firebaseProjectNumber
Field Value
| Type | Description |
|---|---|
| String |
firebaseWebApiKey
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. |