Hook javascript when device is android


#1

Hello everyone,

I need to add in the head of my index.html a reference to a JavaScript when the device is Android.

How do I achieve that? I suppose I should do that in the 010_add_platform_class.js ?


#2

I don’t think you should do that, but instead use the platform class to check what device os your own, and execute the correct code needed then.