The code below was working fine in mobile Safari with Phaser 3.24.1, but is not working in 3.52.0. It works in Chrome with both versions. Anyone know why it stopped working in mobile Safari?
this.game.renderer.snapshotArea(225, 190, 870, 460, function (image)
{
var canvas = Phaser.Display.Canvas.CanvasPool.create(this,image.width,image.height);
var ctx = canvas.getContext(‘2d’);
ctx.drawImage(image, 0, 0, image.width, image.height);
canvasToBlob(canvas)
.then(function(blob) {
var metadata = {
contentType: 'image/png',
};
})
.then(function (snapshot) {
})
.catch(function (error) {
console.log('Image failed to load.');
});
Phaser.Display.Canvas.CanvasPool.remove(canvas);
},'image/png');