baker icon indicating copy to clipboard operation
baker copied to clipboard

Notify Server Backend with Device Type (iPhone or iPad)

Open nin9creative opened this issue 11 years ago • 4 comments

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

nin9creative avatar Oct 15 '13 23:10 nin9creative

That is nice. :)

folletto avatar Oct 16 '13 09:10 folletto

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

tekdope avatar Oct 16 '13 23:10 tekdope

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

MrKistic avatar Oct 17 '13 01:10 MrKistic

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

fcontreras avatar Nov 17 '13 20:11 fcontreras