diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 7e069ebaaff..3521c6146d6 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -30,7 +30,7 @@ }, "peerDependencies": { "react-native": ">=0.70", - "react-native-get-random-values": ">=1.9.0" + "react-native-get-random-values": ">=1.8.0" }, "devDependencies": { "@aws-amplify/rtn-push-notification": "1.2.30", diff --git a/packages/rtn-push-notification/ios/AmplifyRTNPushNotificationManager.swift b/packages/rtn-push-notification/ios/AmplifyRTNPushNotificationManager.swift index c76466f42b8..5e549c956be 100644 --- a/packages/rtn-push-notification/ios/AmplifyRTNPushNotificationManager.swift +++ b/packages/rtn-push-notification/ios/AmplifyRTNPushNotificationManager.swift @@ -172,7 +172,7 @@ class AmplifyRTNPushNotificationManager { let completionHandlerId = UUID().uuidString var userInfoCopy = userInfo - remoteNotificationCompletionHandlers[completionHandlerIdKey] = completionHandler + remoteNotificationCompletionHandlers[completionHandlerId] = completionHandler userInfoCopy[completionHandlerIdKey] = completionHandlerId sharedEventManager.sendEventToJS(