forked from Simbul/baker
-
Notifications
You must be signed in to change notification settings - Fork 101
4.0 tutorial for Newsstand
Simbul edited this page Dec 22, 2012
·
27 revisions
Using Baker is simple and even if there are some technicalities involved, it's doable with just basic technical knowledge.
This tutorial assumes that you choose the Newsstand publication support in Baker. If you're not sure, read [here](Newsstand vs Bundled publications support in Baker 4.0).
REQUIREMENTS
- A Mac with Xcode
- An Apple iOS Developer account (required to test Newsstand and publish to the store).
- A server (to store your issues)
- Create your issues using the Book tutorial.
- Upload the issues, as zipped [Hpubs](hpub specification) (remember to zip the files, not the folder), to your server.
- Create the
shelf.json
file following the instructions for Newsstand shelf JSON. - Upload the
shelf.json
file to your server (e.g. tohttp://example.com/baker/shelf.json
).
To meet the App Store requirements for a Newsstand app, you must provide a free subscription. You can create one on iTunes Connect.
- From the iTunes Connect page for your application, select Manage In App Purchases.
- Click the Create New button.
- Select Free Subscription.
- Fill in all the required form fields. Baker will need a reference to the Product ID, which will be something similar to
com.example.Baker.subscriptions.free
.
- Download and unzip the current working version from master.
- Open
Baker.xcodeproj
in the latest version of Xcode. - Change the Bundle ID in Baker to your own Bundle ID (which you can find on iTunes Connect).
- Replace the icon files (ios-icon-*.png, check the Apple Guidelines for reference).
- Within Xcode, open file
Constants.h
inside theBakerShelf
folder. - Set
NEWSSTAND_MANIFEST_URL
to the fullshelf.json
URL (e.g.http://example.com/baker/shelf.json
). - Set
PRODUCT_ID_FREE_SUBSCRIPTION
to the iTunes Connect Product ID of your free subscription (e.g.com.example.Baker.subscriptions.free
). - (optional) Set
PURCHASE_CONFIRMATION_URL
to the URL where you want to receive the ping when a user subscribes to your app (see Subscription-pingback).
- Within Xcode, open file
UIConstants.h
inside theBakerShelf
folder. - There you can set many details about the shelf look and feel.
Title color, info text color, button color, button text color, loading color and so on. - Within Xcode, open file
Baker/Supporting Files/en.lproj/Localizable.strings
. - There you can set the shelf title, button titles and messages related to downloading and archiving.
- Test your publication, subscriptions and downloads
- When you're ready, submit to the App Store.