From 885312207051bde0be1e93182ff4704c3cf22bb2 Mon Sep 17 00:00:00 2001 From: DiogoMadeiraOS <144679900+DiogoMadeiraOS@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:49:36 +0100 Subject: [PATCH] Update channel name and description updated strings to default_notification_channel_name and default_notification_channel_description --- .../cloudmessaging/OSFirebaseCloudMessaging.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/android/com/outsystems/firebase/cloudmessaging/OSFirebaseCloudMessaging.kt b/src/android/com/outsystems/firebase/cloudmessaging/OSFirebaseCloudMessaging.kt index f180a0d5..cf668d03 100755 --- a/src/android/com/outsystems/firebase/cloudmessaging/OSFirebaseCloudMessaging.kt +++ b/src/android/com/outsystems/firebase/cloudmessaging/OSFirebaseCloudMessaging.kt @@ -32,8 +32,8 @@ class OSFirebaseCloudMessaging : CordovaImplementation() { private var notificationPermission = OSNotificationPermissions() companion object { - private const val CHANNEL_NAME_KEY = "notification_channel_name" - private const val CHANNEL_DESCRIPTION_KEY = "notification_channel_description" + private const val CHANNEL_NAME_KEY = "default_notification_channel_name" + private const val CHANNEL_DESCRIPTION_KEY = "default_notification_channel_description" private const val ERROR_FORMAT_PREFIX = "OS-PLUG-FCMS-" private const val NOTIFICATION_PERMISSION_REQUEST_CODE = 123123 private const val NOTIFICATION_PERMISSION_SEND_LOCAL_REQUEST_CODE = 987987 @@ -213,8 +213,8 @@ class OSFirebaseCloudMessaging : CordovaImplementation() { } private fun setupChannelNameAndDescription(){ - val channelName = getActivity().getString(getStringResourceId("notification_channel_name")) - val channelDescription = getActivity().getString(getStringResourceId("notification_channel_description")) + val channelName = getActivity().getString(getStringResourceId("default_notification_channel_name")) + val channelDescription = getActivity().getString(getStringResourceId("default_notification_channel_description")) if(!channelName.isNullOrEmpty()){ val editorName = getActivity().getSharedPreferences(CHANNEL_NAME_KEY, Context.MODE_PRIVATE).edit() @@ -236,4 +236,4 @@ class OSFirebaseCloudMessaging : CordovaImplementation() { return ERROR_FORMAT_PREFIX + code.toString().padStart(4, '0') } -} \ No newline at end of file +}