Re:Rescuing REST from the API Winter
by sampsonetics on Wednesday January 20, 2016 @07:59PM
(#10942650)
I was under the impression that iOS and Android both support HTML right out of the box. Do they no longer bundle Web browsers, or are you suggesting some other drawback that is critical to your particular application?
[ Parent
| on HN ]
Re:Rescuing REST from the API Winter
by EvanPlaice on Thursday January 21, 2016 @01:59AM
(#10943780)
Not for mobile apps. An app can display html via a web view but that has already proven to be a terrible experience.
There's a reason JSON APIs have become more popular. Besides, clear separation of data from view means the data can be used by other third-party services.
The future of mobile apps will be native client-side view rendering from SPAs like React Native, Angular2 Universal. Not serving HTML views.
I assume they are using the same JSON API for their client side web app and their native mobile apps. Is there a compelling argument to move template rendering to the server if the native applications don't render using a HTML DOM?