![]() Then return to the Dashboard and click the Next button to move to the next step in the Google Key configuration wizard. In the Editor navigate to Project Settings > Services > Push Notifications and configure your Android (Firebase) Settings.You will be asked to return to the Editor to complete the Configure the SDK step.Go back to Liveops > Push Notifications > Settings for your project in the Unity Dashboard then go to Google Keys and select the Add Key or Edit Icon in the "Google Key" row.Select Generate key to download the key file.Go to Project Settings and select Service accounts at the top.Go to your Firebase Console and select your project.This needs to be done for every UGS environment of the game that you expect to test or use notifications with. You need a Firebase Service Account Key to be added to your Unity project settings before sending notifications to Android devices. To send notifications from the Unity Gaming Services dashboard, you need to upload service keys from Firebase for Android and from your Apple Developer account for iOS. Follow Registering for Push Notifications for details. To receive Push Notifications, your app needs to register for Push Notifications. Go to the root of your project folder in the file explorer, then go to the package folder Packages/manifest.json.Īdd the copied code at the end of the manifest.json file and append a, at the end if needed. Import using the "manifest.json" file #Ĭopy the following code snippet and adjust the package version: Type in -notifications as the Git URL and add.ģ.Select the Add ( +) button in the top left to add a new package and select Add package by name.Open the package manager through Component -> Package Manager. ![]() Search for Push Notifications in the search bar in the top right to view the Push Notifications package.Under the Packages dropdown, select Unity Registry.Open the package manager from Component -> Package Manager.Enable pre-release packages from Package Manager -> Advanced Settings -> Enable Pre-release Packages.Open your Project Settings from Edit -> Project Settings.You can install the Push Notifications SDK inside your Unity Project in one of three ways: 1. The Push Notifications SDK might not be visible by default inside the Package Manager in your Unity Editor version.
0 Comments
Leave a Reply. |