02/19/2012 § Leave a comment
For about some time I was try to figure out what was the reason of failure integrating plugin “StatusBarNotification” with our code. After some tries I read tutorials about creating own plugin “Simple Message”, but the same problem – PhoneGap is undefined…. after some searches I have found out that the PhoneGap.js should follow before my plugin. So, it resolved the problem.
Later, there was a problem initiating the plugin object same problem [undefined]. The reason is that we have to wait until device is ready, so answer was to use deviceready event.
I do hope that it will be useful for some of you.