ios solution based on phonegap