sAleksovski / react-native-android-widget

Build Android Widgets with React Native

Home Page:https://sAleksovski.github.io/react-native-android-widget/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

open a specific screen `clickAction` and `clickActionData` with expo router does not change screen with new click action

abdul-wajid-afridi opened this issue · comments

when click on widget it opens app specific screen which i want but when i minimize app and click on widget with different screen it does go to specific screen and opens old screen but when clear every thing and kill app then it opens specific screen for first time
clickAction="OPEN_URI" clickActionData={{ uri: "learn-expo-router://contact" }}

Are you sure that it is not a bug in expo router?

Try the list widget in the example app (https://github.com/sAleksovski/react-native-android-widget/releases).

Clicking on each item in the list opens to the specific deep link.

Try opening the deep link of your app in a different way, not through the widget in order to debug.

deep linking is working but it does not change the old screen with new one if app is open
e.g lets say i have clicked on widget for about screen and again i clicked on contact screen so it will not be updated with old one
i tried it with react navigation its fine but with expo router it not changing or updating the screen if app is open in background

I'll close this since it is fine with React Navigation.

It is probably a bug in expo-router. See if there is a newer version, it a known issue there.