Unity
Last updated
Last updated
You will need to integrate your Push.Express account with Firebase.
Follow
Go to and create a new project (or use existing one)
You can use one project for all your apps.
Open Project Settings -> General
Create new Unity app or just download google-services.json
from existing app
If you need to create new app, just:
Register it
Download google-services.json
Press next-next-next =)
Put google-services.json
to your Assets dir (like Assets/google-services.json
)
You can use one project for all your apps.
Open Project Settings
Go to Service accounts, press Generate new private key
and save it to file private-key.json
(you can use same key for all apps)
Open existing App settings or create a new App
Switch type application Android
Paste private-key.json
file to Firebase Admin SDK private key textbox
Import the main resources TextMeshPro. To do this, go to Window > TextMeshPro > Import TMP Essential Resources > Press All > Press Import.
Add package Newton json. To do this, go to Window > Package Manager > In the upper-left corner, click on the + > Install package by name... > Enter in input com.unity.nuget.newtonsoft-json > Press instal.
Add Push Express Prefab на сцену. Open Unity > Open the Project window > Go to Assets > PushExpress > Drag the Prefab from the Project window to the Hierarchy or Scene window > Prefab will appear on the stage and you can adjust its settings.
Add permissions to AndroidManifest if your app is for Android. To do this, go to Assets > Plugins > Android > AndroidManifest.xml > add the code inside the application section
Add android:theme="@style/Theme.AppCompat.Light.NoActionBar" in the activity tag
Go to and create a new project (or use existing one)
Go to your account
Add SDK Firebase Messaging. To do this, go to the official download page > Download the latest SDK version (as .zip archive) > Unzip the downloaded archive to a convenient location on your computer > Inside the archive you will find several .unitypackage of files for various Firebase modules. Open Unity > Assets > Import Package > Custom Package > Select a file FirebaseMessaging.unitypackage > In the import window, select all files and press Import
Add SDK Push Express. To do this, go to the GitHub page > Download SDK version (as .zip archive) > Unzip the downloaded archive to a convenient location on your computer. Open Unity > Assets > Import Package > Custom Package > Select a file PushExpressSdkV1.3.unitypackage > In the import window, select all files and press Import
Configure the Push Express Prefab settings. To do this, double-click on it in the Project window > Prefab Mode opens > In the Inspector window, set the parameters of your application. Paste the PUSH EXPRESS_APP_ID value of your application into the App Id Prefab field (the value of PUSH EXPRESS_APP_ID can be found in the section of the personal account). Set the Platform and Platform Name parameters according to the type of your application.