Google and Apple have confirmed that they are collaborating to make switching between Android phones and iPhones more seamless.