<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Registering url scheme for app]]></title><description><![CDATA[<p dir="auto">In order to implement OAuth workflows, I need my app to listen to callback URLs called by the browser after authentication. Since I didn't find anything covering ubuntu touch, I tried to follow <a href="https://askubuntu.com/questions/440672/how-to-recieve-call-to-custom-url-handler-in-ubuntu-touch-qml" target="_blank" rel="noopener noreferrer nofollow ugc">this example</a>:</p>
<pre><code>[Desktop Entry]
_Name=MyApp
Exec=MyApp %U
Icon=assets/logo.svg
Terminal=false
Type=Application
X-Ubuntu-Touch=true
MimeType=x-scheme-handler/myapp
</code></pre>
<p dir="auto">QML:</p>
<pre><code>
            Label {
                id: label
                Layout.alignment: Qt.AlignHCenter
                text: i18n.tr('Press the button below and check the logs! ') + Qt.application.arguments[1]
            }
[...]
</code></pre>
<p dir="auto">Now after I installed the app on my Volla Phone, whenever I enter <code>myapp://something</code> in the browser, I <em>will</em> get a prompt asking whether or not I will allow to pass this to "some system app", however after accepting, nothing happens.</p>
<p dir="auto">I would expect that <code>MyApp</code> will be foregrounded and the <code>something</code>-part is passed as <code>Qt.application.arguments[1]</code>.</p>
<p dir="auto">Does this even work on Ubuntu Touch? If so, what am I missing?</p>
]]></description><link>https://forums.ubports.com/topic/6441/registering-url-scheme-for-app</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 08:41:56 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/6441.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jul 2021 09:19:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Registering url scheme for app on Sun, 18 Jul 2021 16:11:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> Well our documentation is hosted here: <a href="https://github.com/ubports/docs.ubports.com" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ubports/docs.ubports.com</a> - you can either clone the repo to your local disk, or make online changes. Then, after submitting the changes, open a pull request and we will review and merge it if ok.</p>
]]></description><link>https://forums.ubports.com/post/53191</link><guid isPermaLink="true">https://forums.ubports.com/post/53191</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Sun, 18 Jul 2021 16:11:07 GMT</pubDate></item><item><title><![CDATA[Reply to Registering url scheme for app on Sun, 18 Jul 2021 16:08:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: flohack">@<bdi>flohack</bdi></a> How would I do this?</p>
]]></description><link>https://forums.ubports.com/post/53190</link><guid isPermaLink="true">https://forums.ubports.com/post/53190</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Sun, 18 Jul 2021 16:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to Registering url scheme for app on Sun, 18 Jul 2021 16:05:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> Please make PRs then to improve the documents, thanks!</p>
]]></description><link>https://forums.ubports.com/post/53189</link><guid isPermaLink="true">https://forums.ubports.com/post/53189</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Sun, 18 Jul 2021 16:05:54 GMT</pubDate></item><item><title><![CDATA[Reply to Registering url scheme for app on Sun, 18 Jul 2021 13:36:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kugiigi" aria-label="Profile: kugiigi">@<bdi>kugiigi</bdi></a> Thank you, that worked. Although the documentation seems to be outdated / pointing to files not matching the example, so I had to make some adjustments.</p>
]]></description><link>https://forums.ubports.com/post/53185</link><guid isPermaLink="true">https://forums.ubports.com/post/53185</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Sun, 18 Jul 2021 13:36:50 GMT</pubDate></item><item><title><![CDATA[Reply to Registering url scheme for app on Sun, 18 Jul 2021 12:08:10 GMT]]></title><description><![CDATA[<p dir="auto">Check the url dispatcher section<br />
<a href="https://docs.ubports.com/en/latest/appdev/guides/importing-CH-urldispatcher.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.ubports.com/en/latest/appdev/guides/importing-CH-urldispatcher.html</a></p>
]]></description><link>https://forums.ubports.com/post/53184</link><guid isPermaLink="true">https://forums.ubports.com/post/53184</guid><dc:creator><![CDATA[kugiigi]]></dc:creator><pubDate>Sun, 18 Jul 2021 12:08:10 GMT</pubDate></item></channel></rss>