Get started
Installation
Section titled InstallationAdd the contentsquare
package in your pubspec.yaml
:
then run
To ensure optimal compatibility, make sure you respect the iOS compatibility documentation.
Android
Section titled AndroidThe plugin works out of the box.
Other platforms
Section titled Other platformsThe Contentsquare
plugin is designed to function seamlessly during the app’s build process.
For applications targeting unsupported platforms, the Contentsquare
plugin will be automatically disabled with no further actions required.
This eliminates potential conflicts and ensures a smooth build experience.
If you need support for a specific platform, reach out to your Contentsquare contact.
Automatic SDK Initialization
Section titled Automatic SDK InitializationWrap the entire application inside the ContentsquareRoot
widget:
Once you have wrapped your application with the ContentsquareRoot
widget, you will be able to access all Contentsquare API using Contentsquare()
.
Manual SDK Initialization
Section titled Manual SDK InitializationIf you want more control over when the SDK starts, refer to the manual SDK start guide. In this case, you do not need to add the ContentsquareRoot
widget.
Validate SDK integration
Section titled Validate SDK integrationLook at the native SDK docs for validation on each platform.
Note that iOS logs should be viewed through Console or Xcode.
Flutter Setup
Section titled Flutter SetupSupported platforms
Section titled Supported platformsCurrently, only Flutter application on the following platforms are supported by the Contentsquare Flutter SDK
:
- Android
- iOS
Calling the SDK on other platforms is safe but will not have any effect.
If you need to use the SDK on another platform, contact our support team.
Troubleshooting
Section titled TroubleshootingIf you encounter any issues, refer to the troubleshooting guide.