react-native-app-shortcuts icon indicating copy to clipboard operation
react-native-app-shortcuts copied to clipboard

App shortcut takes to a route only once

Open sahil290791 opened this issue 7 years ago • 7 comments

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 avatar May 22 '17 06:05 sahil290791

@sahil290791 So much sorry for that. My Nexus just broken days ago. I will check it when it fixed. Thanks.

lokyoung avatar May 22 '17 06:05 lokyoung

@lokyoung did you take a look into this one?

Ehesp avatar Aug 25 '17 12:08 Ehesp

@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!

lokyoung avatar Aug 25 '17 12:08 lokyoung

any update on this issue?

inifaisal avatar Nov 30 '17 17:11 inifaisal

@inifaisal He is still waiting an update.

tolik85 avatar Jul 02 '19 18:07 tolik85

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

anurag060 avatar Dec 21 '19 06:12 anurag060

@sahil290791 , facing the same problem..can you please tell how you solved this issue..where should be the handleShortcut logic needs to be written?

anurag060 avatar Dec 21 '19 06:12 anurag060