sAleksovski / react-native-android-widget

Build Android Widgets with React Native
https://sAleksovski.github.io/react-native-android-widget/
MIT License
546 stars 22 forks source link

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

Closed abdul-wajid-afridi closed 4 months ago

abdul-wajid-afridi commented 4 months ago

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" }}

sAleksovski commented 4 months ago

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.

abdul-wajid-afridi commented 4 months ago

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

sAleksovski commented 4 months ago

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.