Save messages to iOS device when no internet connection.