my main goal is to display some per-user information on a sitemap in the android app.
My first thought was creating tons of widgets and use the “visibility” property specific to each user, but it doesn’t seem to support conditioning on usernames.
The next idea is using webview targeting an URL that reads the username from the URL, but I cannot find whether webview supports including a username in an URL either.
Am I missing something and is there any way to include the current username in the WebView url? Or is there another way to show different sitemap contents depending on the username/user?
You are not missing anything. The idea of a user with a user name is specific to the MainUI and while you can create sitemap definitions using the MainUI, is it is a completely different UI engine that displays the sitemaps (and therefore does not know about users or usernames).
This kind of personalized UI is relatively easy to create with MainUI widgets, but not with sitemaps.
The typical solution in this case it simply to create a completely different sitemap for each user. The android app (I don’t know about the iOS app, but I assume something similar exists) can then be set to show any particular sitemap by default on a per device basis.