Pushwoosh
Pricing
How it works for you
Blog
Support
Search…
2.0.0
Pushwoosh Marketing Platform
What's New
Getting started
Basic concepts
Try Pushwoosh out
Start with your project
Manage projects
Projects basics
Managing projects
Application Groups
Project configuration
Test Devices
Deep Links
Subscription Prompt
The GDPR Compliance
Send messages
Push notifications
Emails
In-Apps
Customer Journey Builder
Audience
Users and devices
Tags and Segments
Events
Statistics and Analytics
Content
Rich Media
Presets
Email Templates
Account and security
Multi-login Accounts
High-Speed Delivery Setup
Two-factor Authentication
Pushwoosh SDK
iOS Push Notifications
Android Push Notifications
Compliance with Google Package Visibility policy
Firebase Integration
Integrate Pushwoosh Android SDK
GCM to FCM Migration
Resolving Google Play Services conflicts
Amazon Integration
Huawei Integration
Using Pushwoosh location module in Android apps
Customizing Android SDK
Web Push Notifications
Cross-platform Frameworks
Windows
Windows Phone
OS X
3rd Party Integrations
API Reference
Messages API
Presets API
Device API
Tags API
Segmentation (Filters) API
User Centric API
Events API
Applications API
Campaigns API
Geozones API
App Configuration API
Email API
Test Devices API
Message Inbox API
Statistics API
Powered By
GitBook
Integrate Pushwoosh Android SDK
Follow the steps below to get your Android application ready to receive pushes
Download SDK
Sample Project
SDK API Docs
Requirements
A
Pushwoosh account
A
configured
Pushwoosh Application's Code available in
Pushwoosh Control Panel
in format
XXXXX-XXXXX
A Firebase project and its Sender ID
Android Studio
An Android device or emulator with "Google Play Store (Services)" installed
Integration
1.
Include the following Maven repository URL in project's
build.gradle
:
build.gradle
1
allprojects
{
2
repositories
{
3
google
()
4
mavenCentral
()
5
}
6
}
Copied!
2.
Add
pushwoosh
library dependencies into your application's
build.gradle
:
build.gradle
1
implementation
'com.pushwoosh:pushwoosh-firebase:6.+'
Copied!
Replace "
+
" with the current version of
Pushwoosh
and Android Support libraries.
3.
Open your project in Android Studio. Go
Tools
>
Firebase
>
Cloud Messaging
and click "Set up Firebase Cloud Messaging":
4.
Connect your app with Firebase, grant Android Studio access to your Google account (if needed), and choose your Firebase project.
5.
Add FCM to your application and accept changes:
6.
Add the following metadata to
AndroidManifest.xml
:
AndroidManifest.xml
1
<
meta-data
android:
name
=
"
com.pushwoosh.appid
"
android:
value
=
"
XXXXX-XXXXX
"
/>
2
<
meta-data
android:
name
=
"
com.pushwoosh.senderid
"
android:
value
=
"
@string/fcm_sender_id
"
/>
Copied!
Please note that you must add
meta-data
inside the <
application>
tag
Where:
com.pushwoosh.appid
is your Pushwoosh Application Code
com.pushwoosh.senderid
is the Sender ID you received from Firebase Console
Please note that you need to add
fcm_sender_id
to
res/values/strings.xml
of your Android project:
string.xml
1
<
resources
>
2
<
string
name
=
"
fcm_sender_id
"
>
123456789012
</
string
>
3
</
resources
>
Copied!
7.
Register for push notifications:
1
Pushwoosh
.
getInstance
().
registerForPushNotifications
()
Copied!
Next steps
Customize Android SDK
Share your feedback with us
Your feedback helps us create a better experience, so we would love to hear from you if you have any issues during the SDK integration process. If you face any difficulties, please do not hesitate to share your thoughts with us
via this form
.
Previous
Firebase Integration
Next
GCM to FCM Migration
Last modified
1mo ago
Copy link
Contents
Requirements
Integration
Next steps
Share your feedback with us