-
Notifications
You must be signed in to change notification settings - Fork 55
Not possible to add application to AndroidManifest.xml #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@CamronLDNF If you have a custom application class, call We're in the process of upgrading our Flutter documentation. We'll add this there as well. 👍🏾 |
@darshanclevertap about this:
That is already stated in your documentation. I don't have a custom application class though, so that is why I instead followed the instructions on |
@CamronLDNF Please create an Application class in your Android project and extend it from
We need this to correctly track App launches, FCM tokens, render InApp Notifications and other session-related stuff. |
@darshanclevertap the solution was actually much simpler (or so it seems). Your documentation states:
The word "add" in your instructions is what through me off. Apparently there can be only one <application
android:requestLegacyExternalStorage="true"
android:name="com.clevertap.android.sdk.Application"
android:label="Beanie"
android:icon="@mipmap/ic_launcher"> So now when the app is started, this CleverTap custom class is instantiated before any of the application's components. I think this should be clarified in your Flutter documentation. |
Uh oh!
There was an error while loading. Please reload this page.
I've gone through your Flutter SDK to integrate CleverTap in our Flutter app. Are the instructions up to date? The Android integration section says:
If you do not have an Application class, add this to your AndroidManifest.xml
The problem is that it is not possible to do that because I have my default application data there already (and adding the above for CleverTap conflicts and renders an error).
What is the solution here? The
AndroidManifest.xml
file in your example code does not reflect the above instructions.The text was updated successfully, but these errors were encountered: