Troubleshooting Flutter

Common issues on Flutter.


Activate logging when troubleshooting

You can activate WonderPush logs by simply calling WonderPush.setLogging(true).

Our logs report pretty much the entire activity of our SDK. They are all prefixed with [WonderPush] so they're easy to filter in and out.

Don't forget to turn them off in your release build.

iOS build errors

If you run into the a build error that mentions WonderPush, like this one:

WPNotificationServiceExtension.m:130:59: error: no known class method for selector 'extract:'

try to run the following commands:

flutter pub cache repair
flutter pub get
cd ios && pod install

In the output, make sure these 2 pods have the same version: WonderPush and WonderPushExtension