If you have configured a custom Base URL (e.g., for a specific region or on-premise setup) in your AndroidManifest.xml and are experiencing connectivity issues, the problem is likely due to extra whitespace in the configuration.
The Pushwoosh SDK constructs API endpoints by appending method names directly to the Base URL string provided in the manifest. If the android:value attribute contains leading or trailing spaces, the resulting URLs will be malformed (e.g., https://api.wavesend.ru/json/1.3/ /registerDevice), causing the server to reject the requests.
Solution
Check your AndroidManifest.xml and ensure the URL is enclosed strictly within the quotes without any whitespace.
Incorrect Configuration:
<!-- Note the extra spaces inside the quotes -->
<meta-data
android:name="com.pushwoosh.base_url"
android:value=" https://api.wavesend.ru/json/1.3/ " />
Correct Configuration:
<meta-data
android:name="com.pushwoosh.base_url"
android:value="https://api.wavesend.ru/json/1.3/" />
Comments
0 comments
Please sign in to leave a comment.