We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa4aad1 commit 3320ecbCopy full SHA for 3320ecb
packages/expo/src/modules/push/KnockExpoPushNotificationProvider.tsx
@@ -227,6 +227,16 @@ const InternalKnockExpoPushNotificationProvider: React.FC<
227
notificationReceivedHandler(notification);
228
});
229
230
+ const response = Notifications.getLastNotificationResponse();
231
+ if (response?.notification) {
232
+ knockClient.log("[Knock] Expo Push Notification was interacted with");
233
+ updateKnockMessageStatusFromNotification(
234
+ response.notification,
235
+ "interacted",
236
+ );
237
+ notificationTappedHandler(response);
238
+ }
239
+
240
const notificationResponseSubscription =
241
Notifications.addNotificationResponseReceivedListener((response) => {
242
knockClient.log("[Knock] Expo Push Notification was interacted with");
0 commit comments