[ Web Proxy ]
URL:
Viewing: https://docs.pushwoosh.com/developer/pushwoosh-sdk/android-sdk/android-faq/ [Back]  [Original]

FAQ on Pushwoosh Android SDK | Pushwoosh Documentation Skip to content
CtrlK
Cancel
Select theme DarkLightAuto
Select language EnglishEspaolFranaisDeutschPortugus

FAQ on Pushwoosh Android SDK

What does Android push token and HWID look like?

Anchor link to

Android 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 to

You 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 [Screenshot showing logcat output with push token registration information displayed in Android Studio]

What permissions are necessary and what are optional?

Anchor link to

When 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