I use expo-linking to get the path from the app. Then I put Linking open in the notification.
responseListener.current =
Notifications.addNotificationResponseReceivedListener((response) => {
const linkExpo = LinkingExpo.createURL('/Starting')
// const navigation = useNavigation();
// alert()
Linking.openURL(linkExpo)
});
The path is like this:
exp://u.expo.dev/[project-id]/–/Starting
I want to open the app when I click on the notification (background- foreground- closed). The app opened but then it crashed. How can I open the app without crashing?