Now I am convert my PWA to android using Capacitor and push notification working fine but issue is that it didn't redirect to a particular path when I am tap on a background push notification
Here is my code
componentDidMount() {
// Method called when tapping on a notification
Plugins.PushNotifications.addListener('pushNotificationActionPerformed',
(notification) => {
if(notification){
<Redirect to="/pathname" />
}
);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…