Native Integrations in Hermit
Hermit aims to bring Lite Apps up to par with native Android apps. It offers multiple integration points for your Lite Apps, such as native notifications and in-app search.
Search
Search from the Hermit action bar by configuring a Search URL. All you need to do is put the characters “%s” where you expect the query to be, and Hermit will do the rest.
E.g. for Google, the URL usually looks like this:
https://www.google.com/search?q=your+query+here
So you would enter this into Hermit:
https://www.google.com/search?q=%s
For Facebook, it should be:
https://www.facebook.com/search/top/?q=%s
Share
Sharing text from other apps to Hermit Lite Apps is supported. At this time, you cannot share photos or videos directly from other apps into Hermit. (You can browse photos and videos from your phone and upload them from within Hermit.)
For sharing, multiple formats are supported. Some sites only accept a URL (e.g. Facebook) while other sites accept Text as well as URLs. Use whichever one you prefer. Here are some examples:
- Reddit:
https://www.reddit.com/submit?url=%u&title=%t
- LinkedIn:
https://www.linkedin.com/shareArticle?mini=true&url=%u&title=%t
- Facebook:
https://www.facebook.com/sharer/sharer.php?u=%u
- Pocket:
https://getpocket.com/save?url=%u&title=%t
Parameters are:
%s
— Inserts all the text that was shared from another app, including URLs and text.%u
— Hermit extracts a URL from the text and substitutes it wherever `%u’ appears.%t
— After removing any URL, Hermit substitutes the remaining text wherever `%t’ appears.