11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

IndexedDBはiOS Safariの「ホーム画面に追加」でWebアプリにすると動作しない

Posted at

表題の通り。
以下のコードをiOSの通常のSafariで動作させた場合と、「ホーム画面に追加」で全画面Webアプリにした場合で比べてみてください。

var indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB;
if (indexedDB) {
    alert("great!")
}
else {
    alert("poor")
}

Apple Support Communitiesを見ても、直す気はなさそうです。

IndexedDB is not working from a web app (on the homescreen)
https://discussions.apple.com/thread/6549513?start=0&tstart=0

Apple's (iPad) implementation of IndexedDB - Is there documentation available?
https://discussions.apple.com/thread/6707922?start=0&tstart=0

11
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?