Phonegap api requires different parameters