Resolves #98 To create static shortcuts, follow Android Docs
But! I didn't figure out how to make it work with cold start. It works when app is in foreground, but if you close app and try to start with quick action, when callback is not called. I think its connected with MainActivity and it's Intent and could be fixed with right config in shortcuts.xml. But I can't succeed with that. My shortcuts.xml looks like this:
@Peretz30 I think this doesn't work on last RN 0.71 I use your fork and code
QuickActions.popInitialAction().then(onAction).catch(console.error) onAction not called.
Resolves #98 To create static shortcuts, follow Android Docs But! I didn't figure out how to make it work with cold start. It works when app is in foreground, but if you close app and try to start with quick action, when callback is not called. I think its connected with
MainActivity
and it'sIntent
and could be fixed with right config inshortcuts.xml
. But I can't succeed with that. Myshortcuts.xml
looks like this:Your package name instead
com.example.myapplication