FAQ on Pushwoosh Android SDK
- What does Android push token and HWID look like?
- How can I obtain my Android device push token?
- What permissions are necessary and what are optional?
- How do I set a UserID?
- How accurate is the total number of Android subscribers?
- Can I use HTML tags in pushes sent to Android?
- How to set a notification icon in Android Lollipop (and later versions)?
- Using Pushwoosh SDK with other FCM services
- Using Pushwoosh with LeakCanary or AppMetrica libraries
- Deleting a received notification from a device
What does Android push token and HWID look like?
Anchor link toAndroid device push tokens differ in length (less than 255 characters) and start with APA91b, for example:
APA91bFoi3lMMre9G3XzR1LrF4ZT82_15MsMdEICogXSLB8-MrdkRuRQFwNI5u8Dh0cI90ABD3BOKnxkEla8cGdisbDHl5cVIkZah5QUhSAxzx4Roa7b4xy9tvx9iNSYw-eXBYYd8k1XKf8Q_Qq1X9-x-U-Y79vdPq
Tokens often contain a colon-separated prefix before APA91b, for example: eQnyCE6ULAQ:APA91bGrh4ya3b_owo9tshZNVAGhZdGMGb3sA5HbM...
Pushwoosh uses UUID as HWIDs, i.e. randomly generated strings of 32 alphanumerical characters: 123e4567-e89b-12d3-a456-426655440000
How can I obtain my Android device push token?
Anchor link toYou can obtain your Android device push token in the console log. Use the logcat tool in Android Studio.
Open monitor.bat in %USERPROFILE%\AppData\Local\Android\sdk\tools\monitor.bat, connect your device to PC and allow USB debugging in Android settings. Run your application on the device. Locate /registerDevice, find the push token for your device to use in Test Devices later on.
[Screenshot showing logcat output with push token registration information displayed in Android Studio]
What permissions are necessary and what are optional?
Anchor link toWhen installed on an Android device, the application will ask for the following permissions in connection with Pushwoosh SDK:
<!-- FCM connects to Firebase Services. --> <uses-permission android:name="android.permission.INTERNET"/>
<!-- Keeps the processor from sleeping when a message is received. --> <uses-permission android:name="android.permission.WAKE_LOCK"/>
<!-- This permission is used to determine whether the device can access the network. --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- This app has permission to register and receive data message. --> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />| Web Proxy Viewer | New URL | Original Page |