Modified to support WebClient on Android and iOS.