These errors, along with others like "loadTags failed", typically indicate that the Pushwoosh SDK is not properly configured to communicate with the Pushwoosh API. The most common cause is a missing or incorrect Pushwoosh Device API Token in your iOS project's Info.plist file.
Follow these steps to resolve the issue:
Locate your Device API Token
- Log in to your Pushwoosh Control Panel.
- Navigate to the API Access section for your application.
- Find and copy your Device API Token.
Verify Token Permissions
- While in the API Access section, ensure that the token you are using has the correct application selected under its permissions.
Add the Token to
Info.plist- Open your iOS project in Xcode.
- Find and open the
Info.plistfile. - Add a new key named
Pushwoosh_API_TOKENwith aStringtype. - Paste your Device API Token as the value for this key.
Alternatively, you can open the
Info.plistfile as source code and add the following entry, replacingYOUR_DEVICE_API_TOKENwith your actual token:<key>Pushwoosh_API_TOKEN</key> <string>YOUR_DEVICE_API_TOKEN</string>
After adding the token, clean your build folder, rebuild, and run your application. The communication errors should be resolved.
Comments
0 comments
Please sign in to leave a comment.