From d2d87e561ca571363c9633655fb96231b8a15632 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 9 Oct 2020 13:05:31 +0000 Subject: [PATCH] Fix android notifications, closes #7 --- android/app/build.gradle | 2 +- lib/utils/firebase_controller.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 076d605..3d72600 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -87,4 +87,4 @@ dependencies { implementation "net.zetetic:android-database-sqlcipher:4.4.0" // needed for moor_ffi w/ sqlcipher } -//apply plugin: "com.google.gms.google-services" +apply plugin: "com.google.gms.google-services" diff --git a/lib/utils/firebase_controller.dart b/lib/utils/firebase_controller.dart index 4b8da45..c38ebf0 100644 --- a/lib/utils/firebase_controller.dart +++ b/lib/utils/firebase_controller.dart @@ -23,11 +23,11 @@ abstract class FirebaseController { static final FlutterLocalNotificationsPlugin _flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin(); static BuildContext context; - static const String CHANNEL_ID = 'fluffychat_push'; - static const String CHANNEL_NAME = 'FluffyChat push channel'; - static const String CHANNEL_DESCRIPTION = 'Push notifications for FluffyChat'; + static const String CHANNEL_ID = 'message'; + static const String CHANNEL_NAME = 'FurryChat push channel'; + static const String CHANNEL_DESCRIPTION = 'Push notifications for FurryChat'; static const String APP_ID = 'dev.inex.furrychat'; - static const String GATEWAY_URL = 'https://janian.de:7023/'; + static const String GATEWAY_URL = 'https://push-gateway.inex.dev:443/'; static const String PUSHER_FORMAT = 'event_id_only'; static Future setupFirebase(