A 401 Unauthorized error typically indicates that the Pushwoosh SDK cannot authenticate with our servers. This is often caused by a missing or incorrect API token in your Android project configuration.
To resolve this, ensure you have added your Pushwoosh API token to your AndroidManifest.xml file.
- Locate your
AndroidManifest.xmlfile, usually found atAssets/Plugins/Android/AndroidManifest.xml. Add the following
<meta-data>tag inside the<application>tag:<application ...> <meta-data android:name="com.pushwoosh.apitoken" android:value="YOUR_DEVICE_API_TOKEN" /> </application>Replace
YOUR_DEVICE_API_TOKENwith the actual API token from your Pushwoosh Control Panel. You can find this token in your application's settings page.
For a multi-platform Unity project, you should also ensure the API token is set for iOS in your Info.plist file.
Comments
0 comments
Please sign in to leave a comment.