Please provide the following:
- SDK Version: 43
- Platforms(Android/iOS):
- Deeplinking, Notification Background, Invoke.
the goal is to open a page in the app when I get a notification.
in expo it works with Deeplinking in the foreground but not in the background.
my code {
const NOTIFICATION_TASK_NAME = ‘background-notification-task’;
TaskManager.defineTask(NOTIFICATION_TASK_NAME, async ({data, error}) => {
if (error) {
// Error occurred - check `error.message` for more details.
return;
}
if (data) {
Toast('got notif on background')// it Works
const redirectUrl = Linking.createURL('FullScreenNotif', {
queryParams: {id},
});
Linking.openURL(redirectUrl);
}
}
);
Notifications.registerTaskAsync(NOTIFICATION_TASK_NAME);
}
I found react-native-invoke (react-native-invoke-app - npm) which does what I want but I have to eject my app(works only in Android)
is there a way to do this in expo without ejecting my application