hypothesis / vision

Envisioning the future of the Hypothesis.
https://github.com/hypothesis/vision/issues/
40 stars 8 forks source link

Support embedded web views as a platform #113

Open csillag opened 9 years ago

csillag commented 9 years ago

As a developer, I would like to be able to integrate Hypothes.is with pseudo-native iOS and Android apps. By pseudo-native apps, I mean applications that look like a native app (ie. they have a separate launcher icon), but in fact are powered by HTML inside; either served from a server or shipped statically. These app run over a browser engine (mostly, webkit), and use JavaScript technology.

I am not sure how much of the usual browser APIs are supported in those environment; buy maybe all.

We should test if our code can be integrated into these applications; any maybe provide a few examples about how to develop applications like this.

aron commented 9 years ago

Does this just mean you want us to check Hyphothesis will run in the WebViews of common mobile operating systems? If so +1.

csillag commented 9 years ago

I think it means 3 things:

  1. Test.
  2. If it does not work, but easy to fix, fix.
  3. In any case, provide examples for building apps like this. 2014.10.30. 10:02 ezt írta ("Aron Carroll" notifications@github.com):

Does this just mean you want us to check Hyphothesis will run in the WebViews of common mobile operating systems? If so +1.

— Reply to this email directly or view it on GitHub https://github.com/hypothesis/vision/issues/113#issuecomment-61128594.

BigBlueHat commented 9 years ago

FWIW, I explored this a couple weeks ago and built an "Open Web App" (with the help of 5apps Deploy): https://5apps.com/bigbluehat/hypothesis

You can install it via a few different "container" systems. I've mostly tested it in Firefox on desktop and mobile. The desktop version works great. You can login, reply, and clicking document titles open in Firefox--so essentially you get a Hypothes.is logo to click on your desktop. :smile:

On mobile...the container has bugs with target="_blank" and the document titles do not open anywhere... If you long press, you can open them in a "tab" within the app, but it's got no browsing UI, is rather confusing (doesn't have h on it...obviously), and just generally stales the experience.

If it were possible to conditionally route these URLs through via.hypothes.is, the experience may be slightly better. However, h in general doesn't work on mobile, so there'd be loads of exploration needed there--which we should do of course. :wink:

Just recording my findings, such as they are. :file_folder: