What does cordova.exec(null, null, "", "", []) do?

In a recent post, a responder suggested using the following call:

cordova.exec(null, null, "", "", [])

What does this call do?

I thought that you had to provide a plugin service name and action as the 3rd and 4th arguments respectively.

Any insights are greatly appreciated.

A bit more information.

I added it at the suggestion of rajatrocks as suggested in Barccode scanner only scans once in 1.0.0-beta.14 and it helped with a separate problem: an infinite loop in 1.0.0-beta.13. I just can’t figure out why.

The first two parameters are callbacks. The first is success, the second is error.
The third is the name of the service you want to call,
The fourth is the name of the action you want to call.
The finals are an array of arguments to pass.

http://cordova.apache.org/docs/en/4.0.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide_the_javascript_interface

Thank you but that wasn’t my question.

What does it mean when the 3rd and 4th parameters are empty strings? What does ‘’ mean? Call all services? Call none? Is it ignored?

i would say call none.

Interesting, thank you.

I added it at the suggestion of rajatrocks as suggested in Barccode scanner only scans once in 1.0.0-beta.14 and it helped with a separate problem: an infinite loop in 1.0.0-beta.13. I just can’t figure out why.