It would also be nice if you would store the current app state in localStorage, because the app is reset when you switch to another app and you have to navigate/ scroll back to the article/comment where you left. (Damn you apple for your broken html5 app approach! shakes fist)
Hacker News Web App for Mobile
151–160 of 171 posts
Re: Hacker News Web App for Mobile
#152hitting the system back button on android should go back in the web app. currently it just closes the page. I recommend you look at how angular handles this.
As far as I know, web apps don't have direct access to or control over the Android back button. I think the solution is to add history events, because in browsers the Android back button defaults to navigating back in history, but this web app already seems to be doing that.
also this isn't about direct access to hardware buttons. hitting the system back button on android devices while a web view is in focus is the same as : window.location.back()
Re: Hacker News Web App for Mobile
#153I take no credit for this. I found the link for this in another Hacker News thread [1] and thought that more people should know about it, so I submitted it. [1] https://news.ycombinator.com/item?id=6177361
Ah nice, another one :-) See also http://ihackernews.com/ or http://cheeaun.github.io/hackerweb/ or (broken ssl cert) https://msean5423.news.ycombinator.com.moovapp.com/ , and now http://hn.premii.com/ . I was looking into writing one myself. Personally I won't be very excited before I see an app that's open source. I don't understand why somebody wouldn't share the code for such a simple thing.
As for iOS, it doesn't matter whether you get the source code because you have no way to make sure that what you see is what you get (from the App store).
Re: Hacker News Web App for Mobile
#154I wrote this client. Never submitted to HN, because I wasn't sure if anyone will like it. After it reached to the FP, my vps server stop responding. So I moved it to S3. S3 doesn't gzip content. Now it takes twice the time to load the app. Thanks EtienneK for submitting to HN. Also forgot to mention that you can download an android app from play store. https://play.google.com/store/apps/details?id=com.premii.hn
Re: Hacker News Web App for Mobile
#155Earlier quoted context omitted.
Ah nice, another one :-) See also http://ihackernews.com/ or http://cheeaun.github.io/hackerweb/ or (broken ssl cert) https://msean5423.news.ycombinator.com.moovapp.com/ , and now http://hn.premii.com/ . I was looking into writing one myself. Personally I won't be very excited before I see an app that's open source. I don't understand why somebody wouldn't share the code for such a simple thing.
HN for Android is FOSS and it's awesome. As for iOS, it doesn't matter whether you get the source code because you have no way to make sure that what you see is what you get (from the App store).
Re: Hacker News Web App for Mobile
#156Great work! Could you give some tech details about which framework/tools have you used?
Re: Hacker News Web App for Mobile
#157You should add a target="_blank" to your article and HN links so they get opened in safari instead of the app context. It would also be nice if you would store the current app state in localStorage, because the app is reset when you switch to another app and you have to navigate/ scroll back to the article/comment where you left. (Damn you apple for your broken html5 app approach! shakes fist )
Re: Hacker News Web App for Mobile
#158Re: Hacker News Web App for Mobile
#159Great work! Could you give some tech details about which framework/tools have you used?
I wonder why the creator hasn't answered this question?
I am not using any framework, but I am using zepto and fastclick library.
Re: Hacker News Web App for Mobile
#160Earlier quoted context omitted.
No, there is no way to see more articles. I never clicked on the next button on HN so i didn't bother to implement that. It should be easy to add it. I am using icomoon.io for icon font.
What is the font used for the webapp icon here? http://hn.premii.com/a/icon/ios/Icon-72@2x.png