upload data when phone is connected to a wifi or mobile network .