开发者

Open iBooks from an iPad application [duplicate]

开发者 https://www.devze.com 2023-01-01 22:39 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: How do I launch iBooks e-reader programmatically on iPad?
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

How do I launch iBooks e-reader programmatically on iPad?

I'm creating an application for a client. The iPad will be pre-loaded with a ebook that we will be creating ourselves. This ebook will not be available in the bookstore, but will be preloaded via itunes.

  • Is it possible to open the iBooks application from my application, via some URL schema?
  • Is it then possible to link directly to our pre-loaded book from our application?

Any info would be appreciated.

Cheer开发者_如何学Cs

Niall


iBooks registers the itms-books: and itms-bookss: URL schemes. One would hope that passing an ISBN as the url would launch the correct book in the store, but I am not sure if it does.


It seems as if there's a solution for native apps here: http://andycodes.tumblr.com/post/738375724/ios4-sdk-opening-pdfs-in-ibooks

We have a similar issue, and working on implementing solution above. We currently have hacky version that linked from shared dropbox folder to open in browser, and then asked user to select "Open in iBooks" (as described here): http://support.apple.com/kb/ht4227

Does the trick, and prevents us from having to preload on 200 iPads but lots of room for user error.


Here's a list of url schemes in iPhone OS. Looks like you're out of luck of iBooks.


You could start a mini-webserver with your application and open a URI like itms-books://localhost:1234/my.epub


In short, no. iBooks won't be able to load anything that comes in your application's bundle.

0

精彩评论

暂无评论...
验证码 换一张
取 消