Kotlin
Last updated
Last updated
Note: if you need fully unique apps, do , else do all steps below.
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 Android 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 app dir (like <project>/app/google-services.json
)
Add the plugin as a dependency to your project-level build.gradle.kts file: Root-level (project-level) Gradle file (/build.gradle.kts)::
In your module (app-level) Gradle file (<project>/<app-module>/build.gradle.kts
), add the Firebase Cloud Messaging dependency:
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
Ensure you have the latest Android Studio and Android Gradle Plugin!
In your module (app-level) Gradle file (<project>/<app-module>/build.gradle
), add the pushexpress-android-sdk dependency:
Add code to your Android Studio app
Ask for notification permissions
You can obfuscate your app with standard minifyEnabled true
, but if you want more uniq app code, follow the guide below =)
You will need to integrate your Push.Express account with Firebase.
Create or use existing app in Android Studio
Unzip and rename directory to pushexpress-android-sdk
Place pushexpress-android-sdk
near your app dir, for example
You need Linux (Ubuntu) or MacOS, it will not work on Windows out of the box!
Open Terminal app and do next steps.
Ensure you have installed Perl
, coreutils find
and xargs
commands
In local SDK dir (pushexpress-android-sdk
) run obfs.pl script
Get new SDK package name, use it in next steps instead of 'com.sdk.pushexpress'
You need to do this step for each app, so you need to have separate local SDK copy for each app!
But you don't need (and it is really bad) to repeat this step if you just want to update your app.
In your settings.gradle
add path to local SDK
In your module (app-level) Gradle file (<project>/<app-module>/build.gradle
), add the SDK dependency
Run File->Sync Project with Gradle files
in Android Studio
Enable R8.fullMode in your gradle.properties
In your module (app-level) Gradle file (<project>/<app-module>/build.gradle
), enable obfuscation (minifyEnabled true
)
Select Release
build variants for your app and SDK (don't forget to sign you app)
Build->Clean Project
Build->Build bundle(s) / APK(s)->Build APK(s)
Now you can try to send push in you local device or emulator, make sure all works as expected.
Full official instructions can be found in .
Go to and create a new project (or use existing one)
Go to your account
Before proceeding with the integration, make sure you have already installed the Firebase SDK in your application. If not, follow steps 4-6 in the
In your settings.gradle.kts
, add the Jitpack repo to repositories list (only if you use Gradle feature, default for new projects since Android Studio Electric Eel):
Get your PUSHEXPRESS_APP_ID
from account page
Follow
Follow
Download
See
Check obfuscation with decompiler, for example,
Use to learn how to view app installs on your devices and send notifications.