diff --git a/google-services-dev.json b/google-services-dev.json new file mode 100644 index 00000000000..b2abb40c7d6 --- /dev/null +++ b/google-services-dev.json @@ -0,0 +1,29 @@ +{ + "project_info": { + "project_number": "100508770872", + "project_id": "io---app-dev", + "storage_bucket": "io---app-dev.firebasestorage.app" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:100508770872:android:3bae755a9e0015bde77ccd", + "android_client_info": { + "package_name": "it.pagopa.io.app" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyDxRvOra_wlultFBZc4D8nbtJ2fyNzUCpk" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/mock-google-services.json b/mock-google-services.json deleted file mode 100644 index 690b9a7ef7f..00000000000 --- a/mock-google-services.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "project_info": { - "project_number": "111111111111", - "firebase_url": "", - "project_id": "", - "storage_bucket": "" - }, - "client": [ - { - "client_info": { - "mobilesdk_app_id": "1:111111111111:android:1111111111111111", - "android_client_info": { - "package_name": "it.pagopa.io.app" - } - }, - "oauth_client": [ - { - "client_id": "", - "client_type": 3 - } - ], - "api_key": [ - { - "current_key": "" - } - ], - "services": { - "appinvite_service": { - "other_platform_oauth_client": [ - { - "client_id": "", - "client_type": 3 - } - ] - } - } - } - ], - "configuration_version": "1" -} diff --git a/scripts/generate-api-models.sh b/scripts/generate-api-models.sh index 7868d3a8ce6..401d50fca5f 100755 --- a/scripts/generate-api-models.sh +++ b/scripts/generate-api-models.sh @@ -60,6 +60,6 @@ for elem in "${apisNoClient[@]}"; do done wait -cp mock-google-services.json ./android/app/google-services.json +cp google-services-dev.json ./android/app/google-services.json yarn generate:locales \ No newline at end of file diff --git a/ts/features/pushNotifications/utils/configurePushNotification.ts b/ts/features/pushNotifications/utils/configurePushNotification.ts index 2356710b8e3..c934c3e4411 100644 --- a/ts/features/pushNotifications/utils/configurePushNotification.ts +++ b/ts/features/pushNotifications/utils/configurePushNotification.ts @@ -13,7 +13,6 @@ import { loadPreviousPageMessages, reloadAllMessages } from "../../messages/store/actions"; -import { isDevEnv } from "../../../utils/environment"; import { trackMessageNotificationParsingFailure, trackMessageNotificationTap @@ -75,16 +74,9 @@ function handleForegroundMessageReload() { }) ); } - // TODO: shall we deep link in foreground? - // see https://pagopaspa.slack.com/archives/C013V764P9U/p1639558176007600 } function configurePushNotifications() { - // if isDevEnv is enabled and we are on Android, we need to disable the push notifications to avoid crash for missing firebase settings - if (isDevEnv && Platform.OS === "android") { - return; - } - // Create the default channel used for notifications, the callback return false if the channel already exists PushNotification.createChannel( {