navigator.share on Safari iOS not working with LittleJS #117
Unanswered
wyattcheng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does anybody have ideas as to why navigator.share doesn't seem to be compatible with LittleJS when running a game on Safari on an iPhone?
Here is some sample code. Here is a bare bones index.html
If you load this, you get a simple share button that when clicked, brings up the opportunity to send the sample text to a friend via to OS share sheet.
However, if you add a simple blank LittleJS (let's say you use the game.js from LittleJS/examples/empty) then the share button no longer works.
Beta Was this translation helpful? Give feedback.
All reactions