I have a PhoneGap app up and running using JavaScript and HTML.
On app startup I need to run some Objective C code (I don’t know anything about Objective C. I just have some code that I need to copy + paste so it runs when the app starts).
Where do I put that code in my Phonegap project? Is there some kind of event listener or a main function?
In your AppDelegate.m file look for a method called:
Another possible option:
It’s possible that you have other classes, like an XXXViewController.h/.m. If that’s the case, check if there is a method called: