This project helps you get started with Cooee's Flutter plugin in
flutter.
All integration from Cooee flutter documentation are added commit by commit.
This App was tested with below configuration.
- Flutter 2.10.3 • channel stable
- Tools • Dart 2.16.1 • DevTools 2.9.2
- Android Studio: Android Studio Chipmunk | 2021.2.1
- XCode: version 13.4.1
To demonstrate the usage of the plugin better, we are following the following commit convention to better understand the changes related to an app or the Cooee plugin.
- For flutter app related changes, the commit is prefixed with
(App)
. - For Cooee plugin related changes, the commit is prefixed with
(Cooee vx.x.x)
(shows a specific version).
To understand the code better, we left various comments in the code to bifurcate Cooee's plugin specific changes separately-
// Cooee specific
shows the code change required for Cooee plugin to work.// Cooee specific (optional)
show the above which is an optional change.
- To send engagement to app Cooee uses Firebase Messaging.
- If User using any other plugin which supports Firebase Messaging it will
make conflict of
FirebaseMessagingService
and only one plugin will work. - To Handle this required changes are added on branch.
- Cooee support Augmented Reality & Location base engagements.
- To make it working Cooee's Flutter plugin requires permissions.
- To Handle this required changes are added on branch.
To run this project, You will need to do following changes in the repository-
- Replace
YOUR_COOEE_APP_ID
withAppId
provided in App Details on Cooee Dashboard.
Nothing more to do here.
- For iOS, double click
ios/Runner.xcworkspace
to open in XCode. - Set you development team in
Project Setting
->Signing & Capability
forRunner
target. - Also make sure
group.com.letscooee.YOUR_COOEE_APP_ID
is checked and synced with your developer account in App Group capability. - Step 4 and Step 5 should be repeated for
NotificationServiceExtension
target.
That's it. You can now run the app on your physical device. Simulator can't be used to test push notifications.
Lets start sending engagement from Cooee Dashboard.