I've written an application that works great in the desktop browser but breaks in Safari. Does Angularjs support the iPad's native browser?
I've been googling and can't find anything that isn't related to PhoneGap. It's just javascript in a browser isn't it?
How do you even debug this?
Solution
I was using reserved words like delete
in my services which broke safari and not chrome. On both desktop and tablet safari is broken but chrome works. I have to switch the reserved words to something like remove
.
I've written an application that works great in the desktop browser but breaks in Safari. Does Angularjs support the iPad's native browser?
I've been googling and can't find anything that isn't related to PhoneGap. It's just javascript in a browser isn't it?
How do you even debug this?
Solution
I was using reserved words like delete
in my services which broke safari and not chrome. On both desktop and tablet safari is broken but chrome works. I have to switch the reserved words to something like remove
.
http://paste.laravel./NNB
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Jun 11, 2013 at 1:26 Michael J. CalkinsMichael J. Calkins 32.7k15 gold badges64 silver badges92 bronze badges3 Answers
Reset to default 5On the iPad go Settings > Safari > Developer > Enable Debugging
On top of safari you'll get a "1 Error" or "19 Errors" and when you click the bar it will list out the console for you.
Instead of renaming the method you may change the way of calling it. For instance service['delete']()
instead of
service.delete()
Same problem exists with method finally of promise object (older IEs even crash on call promise.finally()
).
AngularJS 1.0.7 works fine on my iPad (first edition) with IOS 5.whatever.the.last.supported.version.was! It's surprisingly quick, too, although Mobile Safari crashes with depressing regularity when it runs out of memory! This happens on many other web sites, though.