From 6e9797b1590acc3c8992af7506a280927135919e Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Thu, 5 Dec 2024 19:54:22 -0500 Subject: [PATCH] update notification icon --- android/app/src/main/AndroidManifest.xml | 4 +- .../Bluetooth/bluetooth_manager_plus.dart | 6 +- lib/main.dart | 1 + pubspec.lock | 70 +++++++++++++------ pubspec.yaml | 5 +- 5 files changed, 56 insertions(+), 30 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 6f3bd592..917800c6 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -101,7 +101,9 @@ android:foregroundServiceType="connectedDevice" android:stopWithTask="true" /> - + diff --git a/lib/Backend/Bluetooth/bluetooth_manager_plus.dart b/lib/Backend/Bluetooth/bluetooth_manager_plus.dart index 05d6a7c8..6f50eb87 100644 --- a/lib/Backend/Bluetooth/bluetooth_manager_plus.dart +++ b/lib/Backend/Bluetooth/bluetooth_manager_plus.dart @@ -138,10 +138,8 @@ Future initFlutterBluePlus(InitFlutterBluePlusRef ref) async { FlutterForegroundTask.startService( notificationTitle: "Gear Connected", notificationText: "Gear is connected to The Tail Company app", - notificationIcon: const NotificationIconData( - resType: ResourceType.drawable, - resPrefix: ResourcePrefix.img, - name: 'tc_logo_transparent_notext_small', + notificationIcon: const NotificationIcon( + metaDataName: 'com.codel1417.tailApp.notificationIcon', ), ); FlutterForegroundTask.setOnLockScreenVisibility(true); diff --git a/lib/main.dart b/lib/main.dart index 5463178c..84ed59de 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -454,6 +454,7 @@ class _EagerInitialization extends ConsumerWidget { // Eat snacks // Get google-services.json // Configure Github Actions to store and place the files +// add way to generate/reset persistent IDs Future initMarketingNotifications() async { await Klaviyo.instance.initialize(const String.fromEnvironment('KLAVIYO_KEY', defaultValue: "")); final firebaseMessaging = FirebaseMessaging.instance; diff --git a/pubspec.lock b/pubspec.lock index 6cb0ec41..7569b383 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -13,10 +13,10 @@ packages: dependency: transitive description: name: _flutterfire_internals - sha256: "71c01c1998c40b3af1944ad0a5f374b4e6fef7f3d2df487f3970dbeadaeb25a1" + sha256: eae3133cbb06de9205899b822e3897fc6a8bc278ad4c944b4ce612689369694b url: "https://pub.dev" source: hosted - version: "1.3.46" + version: "1.3.47" _macros: dependency: transitive description: dart @@ -331,10 +331,10 @@ packages: dependency: transitive description: name: coverage - sha256: "4b03e11f6d5b8f6e5bb5e9f7889a56fe6c5cbe942da5378ea4d4d7f73ef9dfe5" + sha256: e3493833ea012784c740e341952298f1cc77f1f01b1bbc3eb4eecf6984fb7f43 url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" cronet_http: dependency: transitive description: @@ -551,54 +551,78 @@ packages: url: "https://pub.dev" source: hosted version: "8.1.4" + firebase_app_installations: + dependency: "direct main" + description: + name: firebase_app_installations + sha256: "77271db6dbcdcd0a6850e927078f0f98267b9f6152c79d173882340d2dfeb4d8" + url: "https://pub.dev" + source: hosted + version: "0.3.1+7" + firebase_app_installations_platform_interface: + dependency: transitive + description: + name: firebase_app_installations_platform_interface + sha256: f331b130886f44a37996220e33ed98e3c2e0b4cf1a025121b024aa96ba6ac3c6 + url: "https://pub.dev" + source: hosted + version: "0.1.4+47" + firebase_app_installations_web: + dependency: transitive + description: + name: firebase_app_installations_web + sha256: "135e03cb4a9494c24b7ff4a63443b3fc1c17d26000ab6a781d4b848a10139b47" + url: "https://pub.dev" + source: hosted + version: "0.1.6+5" firebase_core: dependency: "direct main" description: name: firebase_core - sha256: "2438a75ad803e818ad3bd5df49137ee619c46b6fc7101f4dbc23da07305ce553" + sha256: fef81a53ba1ca618def1f8bef4361df07968434e62cb204c1fb90bb880a03da2 url: "https://pub.dev" source: hosted - version: "3.8.0" + version: "3.8.1" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface - sha256: e30da58198a6d4b49d5bce4e852f985c32cb10db329ebef9473db2b9f09ce810 + sha256: b94b217e3ad745e784960603d33d99471621ecca151c99c670869b76e50ad2a6 url: "https://pub.dev" source: hosted - version: "5.3.0" + version: "5.3.1" firebase_core_web: dependency: transitive description: name: firebase_core_web - sha256: f967a7138f5d2ffb1ce15950e2a382924239eaa521150a8f144af34e68b3b3e5 + sha256: "9e69806bb3d905aeec3c1242e0e1475de6ea6d48f456af29d598fb229a2b4e5e" url: "https://pub.dev" source: hosted - version: "2.18.1" + version: "2.18.2" firebase_messaging: dependency: "direct main" description: name: firebase_messaging - sha256: "4d0968ecb860d7baa15a6e2af3469ec5b0d959e51c59ce84a52b0f7632a4aa5a" + sha256: "151a3ee68736abf293aab66d1317ade53c88abe1db09c75a0460aebf7767bbdf" url: "https://pub.dev" source: hosted - version: "15.1.5" + version: "15.1.6" firebase_messaging_platform_interface: dependency: transitive description: name: firebase_messaging_platform_interface - sha256: a2cb3e7d71d40b6612e2d4e0daa0ae759f6a9d07f693f904d14d22aadf70be10 + sha256: f331ee51e40c243f90cc7bc059222dfec4e5df53125b08d31fb28961b00d2a9d url: "https://pub.dev" source: hosted - version: "4.5.48" + version: "4.5.49" firebase_messaging_web: dependency: transitive description: name: firebase_messaging_web - sha256: "1554e190f0cd9d6fe59f61ae0275ac12006fdb78b07669f1a260d1a9e6de3a1f" + sha256: efaf3fdc54cd77e0eedb8e75f7f01c808828c64d052ddbf94d3009974e47d30f url: "https://pub.dev" source: hosted - version: "3.9.4" + version: "3.9.5" firebase_testlab_detector: dependency: "direct main" description: @@ -1106,7 +1130,7 @@ packages: description: path: "." ref: patch-1 - resolved-ref: "6a759dc78d5e390f3ff60182a0878ca10c96eedd" + resolved-ref: "4a933145e80c02d8b29bab0999989570188c60af" url: "https://github.com/Codel1417/klaviyo_flutter" source: git version: "0.1.1" @@ -1323,10 +1347,10 @@ packages: dependency: transitive description: name: path_provider_foundation - sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 + sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" path_provider_linux: dependency: transitive description: @@ -1922,10 +1946,10 @@ packages: dependency: transitive description: name: url_launcher_ios - sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e + sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626" url: "https://pub.dev" source: hosted - version: "6.3.1" + version: "6.3.2" url_launcher_linux: dependency: transitive description: @@ -1938,10 +1962,10 @@ packages: dependency: transitive description: name: url_launcher_macos - sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672" + sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2" url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.2.2" url_launcher_platform_interface: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 5f1779c0..f4847075 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -110,8 +110,9 @@ dependencies: in_app_review: ^2.0.10 upgrader: ^11.3.0 google_api_availability: ^5.0.0 - firebase_messaging: ^15.1.5 - firebase_core: ^3.8.0 + firebase_messaging: ^15.1.6 + firebase_core: ^3.8.1 + firebase_app_installations: ^0.3.1+7 # Spicy plausible_analytics: ^0.3.0 # Privacy Preserving analytics