Kodi Community Forum

Full Version: detect if addon is started from jsonrpc call (stuck in doModal())
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I develop a video addon, where I use a WindowDialog with doModal() as a startscreen for the addon for the user to select in which area they would like to use the addon (general, children mode etc.). It works great and looks cool, but when the addon is called from the jsonrpc api (like from the yatze android app), it will show the windowdialog on the tv, and also be stuck there.

So how do I in my addon detect that the addon is accessed from the jsonrpc api (I don't see anything in the route query), so I in that case don't do the windowdialog, but just present areachooser as normal listitems?

Any ideas?