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.
Start the SDK
Section titled Start the SDKYou do not need to do anything to start the SDK. Now that the SDK is a dependency of your app, it will autostart itself when your application starts.
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 SetupWrap 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()
.
Supported 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.