This warning appears when the Pushwoosh .NET MAUI SDK (NuGet package Pushwoosh.DotNet, current release 1.0.6) runs on iOS without a Device API token in Info.plist. The underlying iOS SDK requires the token and logs this warning when it cannot find it.
Follow these steps to resolve the issue:
- Find your Device API Token
- Log in to your Pushwoosh Control Panel.
- Go to Settings → API Access (API tokens are account-level, not per-application).
- Locate or generate a token of type Device API Token, and make sure it has access to the application you are integrating. Note: do not use a Server API Token.
- Copy the token value.
- Add the token to Info.plist
- Open the
Info.plistin your .NET MAUI project’s iOS platform directory (for examplePlatforms/iOS/Info.plist). - Add the key
Pushwoosh_API_TOKENwith the token as its string value. This is the current key name; the olderPW_API_TOKENis still accepted as a legacy alias, which is why the warning text mentions it.
<key>Pushwoosh_API_TOKEN</key> <string>YOUR_DEVICE_API_TOKEN</string>Replace
YOUR_DEVICE_API_TOKENwith the actual token from your Control Panel. - Open the
- Rebuild your project. Clean and rebuild so the change is picked up. The warning should no longer appear.
Comments
0 comments
Please sign in to leave a comment.