Android and iOS Phonegap download manager