This component is working amazing on android but is at all not supporting IOS. It does not throw any error too. We tried with 3 4 iphones and none of them worked. I saw one more post of this same issue on this component. Anyone able to figure this out?
Thanks,Anagha
Any luck making it work on iOS?
Hello Sergio,No the component did not worked for us and we got it done with javascript.
Did you use the same script from http://html2canvas.hertzen.com/ on your javascript solution?
Thanks,
Sérgio
Anagha Chikate wrote:
Hi Anagha, Can you share your solution?
Diogo.
Hey,Sorry for replying so late.You can try the below javascript for mobile.
var tCtx;var img;function textToImage (){img = document.createElement('image');img.id = "my-image";document.getElementsByClassName('output')[0].appendChild(img);var canvas = document.createElement('canvas');tCtx = canvas.getContext("2d");tCtx.textAlign = "center";canvas.height = 60;canvas.width=300; document.getElementsByClassName('output')[0].appendChild(canvas);tCtx.fillText(document.getElementsByClassName('my-input')[0].value, 10, 40);img.src = tCtx.canvas.toDataURL();}
Hope this helps.Anagha