Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Notify Server Backend with Device Type (iPhone or iPad) #1179

Open
nin9creative opened this issue Oct 15, 2013 · 4 comments
Open

Notify Server Backend with Device Type (iPhone or iPad) #1179

nin9creative opened this issue Oct 15, 2013 · 4 comments
Labels
Milestone

Comments

@nin9creative
Copy link
Contributor

It may be useful in certain circumstances for the server side backend to have an indicator telling it what type of device is being used to access the application.

For instance, I'm working on a use case where a user wants to specify a certain in5 generated .hpub for iPhones and a different .hpub for iPads. It would be useful to know when the server is passing back the Shelf.JSON in order to populate the link correctly.

Adding a parameter that gets sent along much like the "environment" variable would be ideal.

Andrew

@folletto
Copy link
Collaborator

That is nice. :)

@tekdope
Copy link

tekdope commented Oct 16, 2013

This is awesome! That would save a lot of work if we could fire a download following the device (iPad/iPhone).
+1

@MrKistic
Copy link

Agreed. in5 is not nice for making responsive layouts... one for each would make things a whole lot easier!

@fcontreras
Copy link

I did something similar for a client, had the code for the latest baker/master here
https://github.com/fcontreras/baker/commit/e902b89044fae70ed73778847580520301aff33b

You just need to implement the code that creates or shows the shelf.json to use that param that could be IPAD or IPHONE

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants