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

Advanced FAQ

Alessandro Morandi edited this page Jun 6, 2013 · 4 revisions

Advanced FAQ

This is a list of advanced Frequently Asked Questions for Baker. If you cannot find your question, try with the Basic FAQ.

General questions

I looked at the code and there's a delay in the page load event. Could I remove it?

You might try, but it's there for a very specific reason: the delay we have there is exactly the time it takes to complete the animation. This means that if you remove that delay the user won't see the page before that time and also will get a very bad jittery animation because it will try to load the page at the same time of the animation (in the end, effectively delaying the loading).

Does the framework only support iOS?

A few developers are trying to port Baker to Android, but we still have not managed to test it. The most promising port is currently the friar project. A BakerAndroid project also exists, but it looks like it was abandoned.

A grayish overlay appears when I scroll the page

Try adding an explicit CSS color rule for the body element, like this:

body {
  background: white;
}

See issue #651 for more context.

The download progress bar in the shelf never moves

Baker needs your server to return how big the file is in order to draw the progress bar (otherwise there's no way of knowing how close to completion the download is). Make sure your server is returning a correct Content-Length header for the download endpoint (e.g. the URL of your HPUB file).

In-App Purchase questions

I'm getting an Invalid product identifier error

This means that Baker has contacted the App Store to retrieve information about a given product (typically its price), but the provided product ID has not been recognised by the Store.

Double check that the product ID corresponds to the one you set up in iTunes Connect. If it does, make sure that the bundle ID for your app corresponds to the one in iTunes Connect.

The app keeps asking the user to enter their Apple ID

This usually means that an App Store transaction is stuck in the processing queue and iOS is sending it to Baker over and over again, waiting for it to be acknowledged.

If you've set the PURCHASE_CONFIRMATION_URL constant, make sure that the server is responding correctly: Baker will only acknowledge a transaction after the server has responded.

My app does not display the "Restore Purchases" button

Make sure that your shelf contains at least an issue with a valid product ID.

An issue in the shelf is stuck on "updating price"

Check the log for Invalid product identifier errors and see the relevant FAQ for more info.

No issue is unlocked after buying a subscription

The logic deciding which issues to unlock is up to an external server. Baker will push purchase receipts to PURCHASE_CONFIRMATION_URL and it will expect to find a list of unlocked issues at PURCHASES_URL.

Make sure the two constants are set and that your server conforms to the Baker server API.

I'm getting an "Impossible to connect to iTunes Store" error

This could be due to a lot of different reasons, such as:

  • The Bundle ID for your app is not configured correctly. Double check with the value in iTunes Connect.
  • You are already logged in with a real user. Sign out from your Apple ID and sign in with a test user.
  • The error is telling the truth: the device cannot connect to the Store. Check your connection and make sure the Store sandbox is not temporarily unavailable

"Missing Push Notification Entitlement" on submission to iTunes Connect

You may get this alert when uploading your magazine to iTunes Connect. According to other app creators, this is not an issue: if you are not using push notifications, the app will be approved all the same. See issue 879.

This is the old repository of Baker Framework. It's not in use anymore. Please go to the active repository on BakerFramework.

Clone this wiki locally