Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nin9creative opened this issue Nov 21, 2013 · 1 comment
Closed

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

nin9creative opened this issue Nov 21, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@nin9creative
Copy link

Discussion carried over from prior Issue that I logged.

Reference to prior simbul/baker Repo


Simbul#1179

@ghost ghost assigned nin9creative Jan 26, 2014
nin9creative added a commit that referenced this issue Feb 1, 2014
This addresses issue #14.  Adds the ability to append :devicetype parameter to the API endpoints in Constants.h

Will notify the backend server (as long as it accepts/expects it) of the type of device that is making the call.  Sends either "tablet" or "phone".  Tablet is any type of iPad and Phone is any type of iPhone/iPod Touch
@nin9creative
Copy link
Author

You can now add the :devicetype parameter as part of the API endpoints in the Constants.h

It will indicate to your server backend of the type of device calling the API.

The values passed are "tablet" or "phone"

To implement this, you will need to add it to the Constants.h (see example below) as well as ensure your server backend expects the REST parameter. This will be added to the future version of Baker Cloud CE.

#define NEWSSTAND_MANIFEST_URL @"http://api.yourdomain.com/issues/:app_id/:user_id/:devicetype"

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

No branches or pull requests

1 participant