Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Hashes created on iPad not resolvable through ipfs.io gateway #872

Closed
edsilv opened this issue May 28, 2017 · 3 comments
Closed

Hashes created on iPad not resolvable through ipfs.io gateway #872

edsilv opened this issue May 28, 2017 · 3 comments

Comments

@edsilv
Copy link

edsilv commented May 28, 2017

I'm seeing an issue on my iPad where hashes created with js-ipfs are not resolvable through the ipfs.io gateway.

Here's a test page: https://edsilv.github.io/ipfs-tests/ipad.html

https://github.com/edsilv/ipfs-tests/blob/gh-pages/ipad.html

I'm creating a cache-busted json object, adding it, then generating a link to view on the gateway.

Here's the user agent string:

Mozilla/5.0 (iPad; CPU OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.0 Mobile/14F89 Safari/602.1

It seems to have the same problem in Chrome for iPad too.

@daviddias
Copy link
Member

Hi @edsilv, it seems that your demo doesn't work on Safari Desktop, you might have missed this by testing it on a Windows environment.

Checking the JS console on desktop, I noticed that the daemon never gets online.

image

This might be because it is trying to use WebRTC and it fails to create that listener. It should print an error though, are you swallowing the errors with some Promise wrap?

To disable WebRTC, on your node creation, do:

const node = new IPFS({
  config: {
    Addresses: {
      Swarm: []
    }
  }
})

https://github.com/ipfs/js-ipfs#advanced-options-when-creating-an-ipfs-node

@daviddias
Copy link
Member

Ok, I've been doing more tests on this, I knew there was something more why Safari wasn't fully supported, but I was missing to remember, now I know.

See:

image

The WebCrypto spec is not fully implemented in Safari yet: libp2p/js-libp2p-crypto#18

@daviddias
Copy link
Member

@edsilv now that you have it going on your Android phone I look forward to see the demo! :D Closing this issue :)

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

No branches or pull requests

2 participants