Proper install/uninstall when running on iOS device.

- Install the app only if it is not installed or fullReset is requested.
- Uninstall the app only if fullReset is requested.
fixup! Proper install/uninstall when running on iOS device.
Merge pull request #3070 from paymand/ios_app_setup

Proper install/uninstall when running on iOS device.