cheeaun/hackerweb-native

Use intent-filter to register Android app to handle https://news.ycombinator.com/item URLs

オープン

#13 opened on 2017/03/28

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (36 件のフォーク)github user discovery
androidenhancementhelp wanted

Repository metrics

Stars
 (187 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

I often open HN links via Twitter, so while the Android app is great for browsing it doesn't automatically open when I click on a https://news.ycombinator.com/item link. Right now I use a bookmarklet in Chrome to switch between HN and HackerWeb on the desktop, and the same bookmarklet will work on mobile chrome if I type the name of the bookmark (I use hw as the name) into the address bar. This can be a bit slow though, and there are better options for Android.

Namely using an intent-filter in the application manifest, which will let Android know that your application can handle links for a given URL pattern. I use multiple reddit applications that all include this information in the manifest, so when I click on a link it will prompt me to choose which app to use to open the link.

Keep up the great work!

コントリビューターガイド