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
PushNotificationSettings
Syntax
public class PushNotificationSettings : ScriptableObject
Fields
androidApiKey
Declaration
public string androidApiKey
Field Value
androidApplicationId
Declaration
public string androidApplicationId
Field Value
androidProjectId
Declaration
public string androidProjectId
Field Value
androidSenderId
Declaration
public string androidSenderId
Field Value
Properties
AndroidApiKey
The Firebase API Key for the project to use for Firebase Cloud Messaging. This should match the project you have configured
in the Push Notification dashboard.
Declaration
public string AndroidApiKey { get; set; }
Property Value
AndroidApplicationId
The Firebase application ID for the project to use for Firebase Cloud Messaging. This should match the project you have configured
in the Push Notification dashboard.
Declaration
public string AndroidApplicationId { get; set; }
Property Value
AndroidProjectId
The Firebase project ID for the project to use for Firebase Cloud Messaging. This should match the project you have configured
in the Push Notification dashboard.
Declaration
public string AndroidProjectId { get; set; }
Property Value
AndroidSenderId
The Firebase sender ID for the project to use for Firebase Cloud Messaging. This should match the project you have configured
in the Push Notification dashboard.
Declaration
public string AndroidSenderId { get; set; }
Property Value
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.
|