react-native-app-shortcuts
react-native-app-shortcuts copied to clipboard
App shortcut takes to a route only once
I have 3 app shortcuts in my app, which takes a user to 3 different screens: A, B and C.
If the app is not running in memory and I long press on the launcher icon and select anyof A, B and C, it takes me to the respective screen.
But if I come outside of the app and then again select a different app shortcut, it opens the app with the last screen that was open.
handleShortcut
is fired only once when the app is opened.
What I want is that the plugin keeps listening for which ever app shortcut I press and then takes the user to the respective screen?
Where should I keep handleShortcut
such that it always executes when I select any of the shortcuts.
I am testing this in my android app running on Nexus 7.1.2 with RN 0.42.3.
@sahil290791 So much sorry for that. My Nexus just broken days ago. I will check it when it fixed. Thanks.
@lokyoung did you take a look into this one?
@Ehesp Sorry. So busy these day, also my Nexus 5x has not been fixed yet. Now i'm using Huawei P10, it still in Android 7.0 now. Waiting for the update. If you want to look at this i think it will be nice. Thanks!
any update on this issue?
@inifaisal He is still waiting an update.
Hi @lokyoung ...is there any upzdate on this. Can you please atleast tell where to write handle shortcut logic so that it fores each time a new shortcut is opened
@sahil290791 , facing the same problem..can you please tell how you solved this issue..where should be the handleShortcut logic needs to be written?