From af8b78d9e01b9a57c712679a6eccf51d451cb9a8 Mon Sep 17 00:00:00 2001 From: ThibaultBee Date: Thu, 8 Aug 2024 08:54:10 +0000 Subject: [PATCH] fix(android): avoid name shadowing in `ProxyLifecycleProvider` --- sdks/vod/apivideo-flutter-uploader.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/sdks/vod/apivideo-flutter-uploader.md b/sdks/vod/apivideo-flutter-uploader.md index 9ef753f8..ce77a7f7 100644 --- a/sdks/vod/apivideo-flutter-uploader.md +++ b/sdks/vod/apivideo-flutter-uploader.md @@ -23,7 +23,7 @@ It allows you to upload videos in two ways: ### Installation -Run this command: +Run the following command at the root of your project: ```bash flutter pub add video_uploader @@ -33,7 +33,7 @@ This will add the following lines to your package's pubspec.yaml file: ``` yaml dependencies: - video_uploader: ^1.2.0 + video_uploader: ^1.2.3 ``` ### Android @@ -47,6 +47,17 @@ runtime. The uploader comes with a notification to show the progress. So if your application targets Android 33+, you might request `android.permission.POST_NOTIFICATIONS` permission at runtime. +When targeting Android API Level 34+, you must declare the service type in your application's manifest file. +In your `AndroidManifest.xml` file, add the following lines in the `` tag: + +```xml + + +``` + #### Notifications To customize the notification to your own brand, you can change the icon, color or channel name by @@ -61,7 +72,7 @@ overwriting the following resources in your own application resources: ```dart import 'package:video_uploader/video_uploader.dart'; -var video = await ApiVideoUploader.uploadWithUploadToken("UPLOAD_TOKEN", "path/to/my-video.mp4"); +var video = await ApiVideoUploader.uploadWithUploadToken("YOUR_UPLOAD_TOKEN", "path/to/my-video.mp4"); ``` ## Dependencies