ios_handleResult () {
    FIFO=$1;
    if [ -n "$FIFO" ]; then
        read -s < $FIFO;
        rm -i -f $FIFO;
        if [[ $REPLY = error* ]]; then
            echo "${REPLY#error=}" | base64 -d 1>&2;
            return 1;
        fi;
        if [[ $REPLY = result* ]]; then
            echo "${REPLY#result=}" | base64 -d;
        fi;
    fi
}