From 2b6bf074181cbb1732b1a7142cdcac204caf8d44 Mon Sep 17 00:00:00 2001 From: tatthangcntt Date: Fri, 29 Mar 2024 15:28:46 +0700 Subject: [PATCH] Fix issue: When tapping the missedcall notification, Brekeke phone does not move to Call history screen of PhoneAppli app Update lib to fix issue: https://github.com/wix/react-native-notifications/pull/983 --- ios/Podfile.lock | 4 ++-- package.json | 2 +- src/utils/PushNotification-parse.ts | 8 +++++++- yarn.lock | 8 ++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index b264c623..8fd82cfe 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -304,7 +304,7 @@ PODS: - React-Core - react-native-netinfo (9.4.1): - React-Core - - react-native-notifications (4.3.5): + - react-native-notifications (5.1.0): - React-Core - react-native-splash-screen (3.3.0): - React-Core @@ -685,7 +685,7 @@ SPEC CHECKSUMS: react-native-get-random-values: dee677497c6a740b71e5612e8dbd83e7539ed5bb react-native-image-picker: db60857e03d63721f19b6f4027de20429ddd9cba react-native-netinfo: fefd4e98d75cbdd6e85fc530f7111a8afdf2b0c5 - react-native-notifications: 504143d59f9628c3b0c22fd0ccf34b65b9182d01 + react-native-notifications: 4601a5a8db4ced6ae7cfc43b44d35fe437ac50c4 react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-webrtc: 4d1669c2ed29767fe70b0169428b4466589ecf8b diff --git a/package.json b/package.json index b25597af..551b15c7 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "react-native-iphone-x-helper": "1.3.1", "react-native-keyboard-spacer": "0.4.1", "react-native-linear-gradient": "2.7.3", - "react-native-notifications": "4.3.5", + "react-native-notifications": "5.1.0", "react-native-permissions": "3.8.4", "react-native-share": "9.2.3", "react-native-splash-screen": "3.3.0", diff --git a/src/utils/PushNotification-parse.ts b/src/utils/PushNotification-parse.ts index 82991e32..c443ccf8 100644 --- a/src/utils/PushNotification-parse.ts +++ b/src/utils/PushNotification-parse.ts @@ -7,6 +7,7 @@ import { getAuthStore } from '../stores/authStore' import { getCallStore } from '../stores/callStore' import { chatStore } from '../stores/chatStore' import { Nav } from '../stores/Nav' +import { openLinkSafely, URLSchemes } from './deeplink' import { BrekekeUtils } from './RnNativeModules' import { toBoolean } from './string' import { waitTimeout } from './waitTimeout' @@ -236,7 +237,12 @@ export const parse = async ( console.log( 'SIP PN debug: PushNotification-parse: local notification missed call', ) - navIndex('goToPageCallRecents') + if (as.phoneappliEnabled()) { + navIndex('goToPageCallKeypad') + openLinkSafely(URLSchemes.phoneappli.HISTORY_CALLED) + } else { + navIndex('goToPageCallRecents') + } return } diff --git a/yarn.lock b/yarn.lock index 12a26c00..0ab169fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10516,10 +10516,10 @@ react-native-linear-gradient@2.7.3: resolved "https://registry.yarnpkg.com/react-native-linear-gradient/-/react-native-linear-gradient-2.7.3.tgz#f77b71ed7c955e033f9cba5fc8478df57953eb27" integrity sha512-iyJszlZ1Ech2c+2qV+isMvvJKyoctR9ashDkhJg1/cuSF0vQaeLV1FAYTT3qW9doxChJGxVAFfYoxotH0yi3Iw== -react-native-notifications@4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/react-native-notifications/-/react-native-notifications-4.3.5.tgz#90c7f3b1b248f6628c8efc8cafab4fd464ce3e5a" - integrity sha512-tCKkPaauN8/RIwPTeWdyezHXt5i4iDJViZGZ7/EBBuHB9kl9Oq3UjKFZeDfnM4DmJt+m7K2FQ7NaAuh3Kg1FCA== +react-native-notifications@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/react-native-notifications/-/react-native-notifications-5.1.0.tgz#8cba105fd57ab9d5df9d27284acf1e2b4f3d7ea3" + integrity sha512-laqDSDlCvEASmJR6cXpqaryK855ejQd07vrfYERzhv68YDOoSkKy/URExRP4vAfAOVqHhix80tLbNUcfvZk2VQ== react-native-permissions@3.8.4: version "3.8.4"