Search the Community

Showing results for tags 'safari'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 40 results

  1. Hello guys. I am struggling with having my game to run on minimal-ui on iOS safari. That is where the address bar becomes smaller when you scroll. I have found a game that does that, but how the hell they do it? CLICK Does anyone know how to achieve this?
  2. Hi guys, So I have issues with my game in safari but I'm coding it on windows. I've tried the older versions of safari available on dodgy download sites but they're far too outdated. Is there any way I can test a safari browser on windows reliably? Looking for any options here, VM's in cloud, emulators, SDKS, anything - or if you have a mac and can spare an hour or so that would also help. I can't afford to buy a mac. Thanks, Adam.
  3. Hi! I'm having this problem only in the Safari browser. Phaser does not work. Phaser.Loader - audio[hit]: error loading asset from URL null (no supported audio URL specified) phaser.min.js:7Phaser.StateManager - No state found with the key: Game In other browsers everything is fine. Here is the index code. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Recicle Game</title> <script src="build/phaser.min.js"></script> <script type="text/javascript"> BasicGame = {}; var game; </script> <script src="build/Boot.js"></script> <script src="build/Preloader.js"></script> <script src="build/Game.js"></script> </head> <body> <script type="text/javascript"> (function () { game = new Phaser.Game(1000, 600, Phaser.CANVAS, ''); game.state.add('Boot', BasicGame.Boot); game.state.add('Preloader', BasicGame.Preloader); game.state.add('Game', BasicGame.Game); game.state.start('Boot'); })(); </script> </body> </html> What can it be?
  4. Hey there, let me give you my problem as visual as possible ( attached file ). It seems like safari / fb in app browser does not use my ScaleManager.RESIZE as requested. I had some issues calling my resize function on oriantation change, so i implemented this: window.onresize = function(event) { them.resize(game.width, game.height); }; And finally added this.resize(game.width, game.height); in the end of my create function. But nothing results the correct view in ios safari / fb in app view. Any suggestions? Thanks
  5. Hello, We are developing an HTML game using the Phaser framework with Javascript. We have run into some issues regarding the mobile usability for Safari on iPhones. At certain times the player's address bar appears, when this happens the game is moved down. Since the game is moved down, we lose access to part of the game. That leads me to our two questions: 1) How can we detect a swipe motion and then use that motion to hide the address bar? 2) How can we detect that the player address bar is open in the the first place?
  6. Hi, does anyone have problems with new playground on mac safari browsers? Every time I click run scene just disappears.
  7. Open this fiddle on Safari/Mac and check the console. You'll see sprite/1/1, sprite2/0/0. Then hit Run and you'll see 50/50 for both sprites. It seems as though BitmapData.generateTexture doesn't execute the first time around on Safari. The code that produces this issue is as follows; var bmd =, 50); var result = bmd.generateTexture('test'); var sprite =, 0, result); console.log('sprite', sprite.width, sprite.height); var sprite2 =,50, 'test'); console.log('sprite2', sprite2.width, sprite2.height); First time around, whatever's in return from generateTexture has 1,1 dimension, and whatever's been placed in the cache under 'test' has 0,0 dimension. Running it again, or reloading the window in Safari causes the dimensions to be 50,50 for both as is expected. I am not having this problem in Chrome on Windows or Mac. Does anyone know how I can get around this?
  8. We adapted some code we found for a "pie progress" tracker found on these forums. It works great in Chrome, but on Safari (both desktop and mobile), if you try to force Phaser.CANVAS mode, the bitmap data is not drawn. Is there something we are doing wrong? Or is this a bug? Check out our fiddle below: - Canvas mode - it doesn't draw the circle (in Safari) - WebGL mode - it draws the circle everywhere We cannot use WebGL because on mobile safari it is not performant (avg 15fps vs canvas which gets 60fps)
  9. Hi everyone, I'm having some weird issues with Safari on Mac : it seems like using the arrow keys in combination with A messes up the keyboard language. I have a french keyboard (azerty), and if I press A, no issue, A is triggered. If I press the right arrow + A, the A becomes a Q. Is that a known issue? Is anyone having the same issue? Is there something wrong with the way I handle the keys? Here is a JSFiddle to illustrate the issue (open the console to see the logs) : Thanks a log guys!
  10. Hi everyone, I am working on a scene that requires import meshes from .babylon file, most of the time I debug the scene on android mobile browser, and I got this error while trying to load the scene in iphone 5 & 6 (ios 10.2.1 up to date)safari browser: Error status: 0 - Unable to load myfile.babylon this is the link of the webpage I have no problem loading the scene on desktop, android mobile browser(chrome, firefox, opera), however, when I try to load the scene on iphone 6, most of the times I encounter the above error during the middle of importing mesh, if you open the webpage using iphone, there is a chance for you to stuck in the loading screen, when the error occurs. Nonetheless, there is a few times the scene can be successfully loaded, but only a few times. May I know if anyone who ever got with this error knows what is going on, as I am mainly working on the content of the 3D scene rather than handle the back-end part, thanks!
  11. I finished making my game with Phaser, and it works very well on Google Chrome, and Safari, and Firefox on Desktop. But it shocked me on how slow it runs on Safari on iOS! Why is this? My game is an incredibly simple game, it does not make sense to me. Game: Source code: Thanks!
  12. Hello people, I’m here to ask for assistance on PixiJs (more like a canvas related stuff) and IOS. I want to make an app than take all the available space of the webpage, kinda “Fullscreen” but not necessarily without the actions bar of the browser, What I was doing work pretty well on any browsers except in Safaris IOS browser, in landscape mode (sometime loading the page the first time in landscape work, then when changing orientation and coming back to landscape make the bugs appear). I can’t get to handle the IOS browser correctly, the canvas ignores one or both of the browser bar, causing it to appear under these bar. I just adapted quickly the Pixi’s “bunnymark” demo to show this problem. ( ). I found on the web an example working really fine on iOS landscape mode ( but can’t see an obvious differences with my simple example. It may be an HTML/CSS problem, but I can’t find it exactly. Thanks for your help and have a nice day.
  13. Hello, We are making a game with Phaser and works perfect in all the browsers except in Safari (iPad). It's pretty strange becouse the game seems to be running becouse we can hear the music, but the canvas is not displayed... Few seconds later the game is destroyed... We can't use the remote debugging becouse we don't have any Mac to conect the IPad... (Phaser Version: 2.6.2 / IOS version: 9.3.2) Please help!! Thank you
  14. I'm making a game that uses pixel art, I'm designing it so that the user can choose to display the game at various screen sizes while maintaining the correct aspect ratio, doubling the number of pixels, 1x, 2x, 3x etc. I've set the game to use crisp rendering: Phaser.Canvas.setImageRenderingCrisp(game.canvas); And set the game scale mode to SHOW_ALL to maintain the aspect ratio when resizing: game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; I've also set the PIXI scale mode: PIXI.scaleModes.DEFAULT = PIXI.scaleModes.NEAREST; (I tried setting Phaser.Canvas.setSmoothingEnabled(game.context, false); but it gave me an error, never mind) However the game still looks smoothed when resizing the window in Safari on macOS Sierra, I tested it in chrome and the pixels are crisp as expected. I tried adding these CSS rules to my internal stylesheet: image-rendering: optimizeSpeed; /* Older versions of FF */ image-rendering: -moz-crisp-edges; /* FF 6.0+ */ image-rendering: -webkit-optimize-contrast; /* Safari */ image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */ image-rendering: optimize-contrast; image-rendering: pixelated; /* Awesome future-browsers */ -ms-interpolation-mode: nearest-neighbor; /* IE */ Again, to no avail. Does anyone know of a work-around for Safari? Thanks. This is for Phaser 2.6.1
  15. Hi guys, Currently having the joys of debugging someone else's code when I'm not familiar with Phaser. Currently having an issue where the game won't start in Safari. I'm getting a console error: [Error] TypeError: undefined is not an object (evaluating 'game.state.add') startGame The line the error refers to is: game.state.add('Boot', BasicGame.Boot); console.logging BasicGame.Boot before that line returns the correct function rather than undefined so I'm not sure why it's doing this. Only seems to be in Safari, OSX. Chrome and FF aren't showing the error and the game is booting fine. Any ideas?
  16. Hi guys ! I just spotted what I think is a bug (or rather a compatibility issue). Here is a *very* simple PG : It only prints the depth map on a plane. Here is a screenshot of the PG with Chrome 52 on Windows 7 : Here is a screenshot of the PG with Safari on an Ipad (iOS 9.2.1) : As you can see, no depth map with Apple, the plane is totally black (or gray with the light here). Maybe are you aware of this issue ? (do I hope too much ? ) Is there a WebGL restriction I don't know with Apple ? I had the chance to run the PG on different Macs and iPhones (different versions also), and the issue appears on every Apple device. I don't own any Apple devices but I can make tests at work if you need them. I would be glad to help if I can. PS: I make some tests and it looks like a simple render target texture with a shader material which computes the depth could work. And it seems like the RTT of the depthRenderer has a lot of different properties than the basic RTT I made.
  17. Hi guys, I need your help. This small page is producing a code in Firefox, Firefox ESR, Chrome on OSX each with its latest release. But it's not working as expected in Safari 9. Here is the very very reduced example: Surprisingly it is working on jsfiddle which doesn't make it any more logical I don't get any sound output in safari 9 (still under yosemite) on the first page load. But if I reload it works as expected for any successive reload. There are no external files involved. So what the heck is happening here? This currently happens in my larger project with large files I am decoding and also in this small example. Can someone confirm this? I'm looking into this for some days now and I just don't get it? What do I miss? It feels like a bug that can't be a real bug but rather is some stupid error on my site. Thanks for looking into this. Btw this is the code- easy isn't it? var AudioContext = window.AudioContext || window.webkitAudioContext;var ac = new AudioContext();var oscillator = ac.createOscillator();oscillator.frequency.value = 200;oscillator.connect(ac.destination);oscillator.start();Thanks for taking your time. Regards George
  18. Hola! I wanted to take a screenshot of my game and download it to the user's device. I have this working, almost except that on my iPhone5s in Safari, the downloaded image is upsidedown. To get the screen shot I use my code below (specifically, the toDataURL() function). On my desktop, the downloaded image is oriented the right way. But not in Safari mobile. I don't have Safari Desktop to try it there, so I'm not sure if mobile vs. desktop makes a difference. Has anyone dealt with this? Know of any work arounds? Thank you in advance! saveCanvas : function () { var link = document.createElement('a'); link.href ='image/png'); = 'Highscore.jpg'; document.body.appendChild(link);; document.body.removeChild(link); }
  19. I'm having an issue with my game, specifically on Safari (desktop). The game is built for desktop only, so this isn't an issue with iOS. After my game complete's it's preloading, I get a "beachball"/spinning wheel, which never stops - there are no errors thrown to the console. When I refresh the browser, the game plays as expected after preload, without any issues. I've read a lot of posts regarding CORS, so I've set my game.load.crossOrigin to "anonymous". I've also read posts regarding audio issues with Safari, but upon removing all audio from my game, the same error occurs. Here's a link to the build in question: I apologize for the load time - this is currently being optimized. As you can tell, this is for a fairly large client, who we've been pushing strongly towards Phaser, and unfortunately, this issue is now shaking some confidence in Phaser (which I don't agree with). If anyone has encountered similar issues with Safari, please let me know! I'm absolutely in love with Phaser and would love to use it for all future games with this client!
  20. I have tested already on Safari on Mac, Chrome on both desktop and mobile and various Android default browsers, and FB.login works fine (on desktop it's the modal and on mobile it's a new browser window/tab). However, it's not working on any iOS 9 device I've tested. My code looks like this (TypeScript, "this" in the code it's a Phaser.State object): var playbtn =, 0, 'play-btn'); playbtn.inputEnabled = true; playbtn.onInputDown.add(() => { console.log("INPUT! Calling Facebook login..."); FB.login(() => { var response = FB.getAuthResponse(); console.log(response); /* REST OF LOGIN CODE */ }, {scope: 'public_profile, email', return_scopes: true}); }, this); The game is online right now ( for testing. It's a mini game I'm making for a local store Has anybody called FB.login from inside Phaser? What do I have to do for it to work?
  21. this is my main.js and this is my index.html why can i load images in safari and not chrome? what am i doing wrong? the syntax looks correct, is it a setting in chrome? chrome has this error in the console Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at file:///Users/robmccrady/Desktop/Test%20Projects/JavaScript/Farm%20Animal/assets/images/background.png may not be loaded. im using phasor 2.4.6
  22. Problems with TilingSprite in Safari: Is there a work-around? See playground:
  23. Hi this is my first topic so be gentle. I have a project using a wide and short canvas, around 4300 x 730. A strange thing happens with desktop Safari. Once the canvas hits a certain width, around ~2500, the fps drops down to a steady 30fps. When I switch to the canvasRenderer it jumps back up to 60, but I would like the ability to use webgl filters. Chrome handles everything just fine. I've tested on a new Mac Pro and my development machine is 2012 Macbook Pro. Both exhibit the same issue. var renderer = new PIXI.WebGLRenderer(4300, 730, { transparent: true, antialias: true });
  24. hi. i can draw my game with chrome or explore but safari can't use fullscreen function like requestFullscreen( how can i draw fullscreen with safari
  25. iOS 9 will be released this fall. I would like to have a discussion about what it will bring to us. E.g. iOS8 was great release for us because of WebGL. Small downside - they have removed minimal-ui. The new Safari release brings Content Blocking Safari Extensions (ad blockers). Thats bad news for html5 publishers hence for us too. I don't think that adblockers will be widely used but it will definitely reduce ad impressions.