Android app store sign in

Sign in with your Apple ID

Your Apple ID is the account that you use to access all Apple services and make all of your devices work together seamlessly. After you log in, you can use the App Store, iCloud, iMessage, Apple Music, Apple TV+, and more.

Want to use Sign in with Apple on third-party apps or websites? Learn how to use Sign in with Apple.

Sign in on your iPhone, iPad, or iPod touch

Sign in on your Mac

Sign in on your Apple TV

Sign in on apps and other devices

Sign in on your iPhone, iPad, or iPod touch

  1. Open the Settings app.
  2. Tap Sign in to your [device].
  3. Enter your Apple ID and password.
  4. If prompted, enter the six-digit verification code sent to your trusted device or phone number and complete sign in.

If you’re already signed in to iCloud on the iPhone paired with your Apple Watch, you will automatically be signed in to that Apple ID. Learn more about how to set up and sign in to your Apple Watch.

Sign in on your Mac

  1. Choose Apple menu  > System Preferences.
  2. Click Sign In.
  3. Enter your Apple ID and password.
  4. If prompted, enter the six-digit verification code sent to your trusted device or phone number and complete sign in.

Sign in on Apple TV

  1. From the Home screen, choose Settings.
  2. Then choose Users and Accounts and select Add New User…
  3. Select Enter New…, then follow the on screen instructions.

If you use two-factor authentication on an Apple TV (2nd or 3rd generation), you might need to enter a verification code with your password. Learn how to get a verification code on your trusted device or sent to your trusted phone number.

Sign in on apps and other devices

You can use your Apple ID on some third-party devices to sign in to Apple services like Apple Music, the Apple TV app, and more.

Depending on your device, you might need to use an app-specific password.

Sign in to use Apple Music, the Apple TV app, and more on your other devices

You can sign in to Apple Music on Android, or sign in to the Apple TV app on your smart TV or streaming device.

On your Windows PC, you can sign in to iTunes for Windows to buy movies and TV shows, or listen to songs on Apple Music.

Sign in to use iCloud on your other devices

On your Windows PC, you can set up and sign in to iCloud for Windows to access photos, documents, and more.

You can also sign in to iCloud.com from your browser. Learn which iCloud.com features are available on your device.

Use Sign in with Apple on third-party apps and websites

If you see a Sign in with Apple button on a participating third-party app or website, you can use your existing Apple ID to quickly set up an account and sign in. Learn how to use Sign in with Apple.

When you sign in to the App Store and other media services for the first time, you might need to add a credit card or other payment information. You can’t sign in to the App Store and other media services with more than one Apple ID at the same time, or update the content you buy with a different Apple ID. Depending on how you created your Apple ID, you might be prompted to upgrade to two-factor authentication on an eligible device.

Learn more

  • To view and manage your Apple ID account details on the web, sign in to appleid.apple.com.
  • Learn more about where you can use your Apple ID.
  • Learn how to manage your subscriptions to services like Apple Music or Apple TV+.
  • If you have multiple Apple IDs, you can’t merge them.
Читайте также:  Разблокировка андроида по двойному тапу

Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.

Источник

Move content manually from your Android device to your iPhone, iPad, or iPod touch

Here are some tips for transferring your contacts, photos, music, documents, and more from your Android device to your new iPhone, iPad, or iPod touch.

You can also use the Move to iOS app to automatically transfer your Android content to your new iPhone, iPad, or iPod touch. If you can’t use the app, you can move your content manually instead.

Mail, contacts, and calendars

The software on your iPhone, iPad, or iPod touch works with email providers like Google, Microsoft Exchange, Yahoo, and more, so you can probably keep the email, contacts, and calendars that you have now. To get started, add each of your email accounts to your device. Then go to Settings > Passwords & Accounts.

For help moving your email, contacts, and calendars, contact Apple Support.

Photos and videos

To move photos and videos from your Android device to your iPhone, iPad, or iPod touch, use a computer:

  1. Connect your Android to your computer and find your photos and videos. On most devices, you can find these files in DCIM > Camera. On a Mac, install Android File Transfer, open it, then go to DCIM > Camera.
  2. Choose the photos and videos that you want to move and drag them to a folder on your computer.
  3. Disconnect your Android and connect your iPhone, iPad, or iPod touch to your computer.
  4. On a Mac with macOS Catalina, open Finder. On a Mac with macOS Mojave or earlier, or on a PC, open iTunes. On your computer, sync your photos to your iPhone, iPad, or iPod touch. You can find your photos and videos on your device in Photos > Albums.

You can also use iCloud Photos to keep your photos and videos in iCloud, so you can access your library from any device, anytime you want.

For help moving your photos and videos, contact Apple Support.

Music

When you switch to an iPhone, iPad, or iPod touch, you can bring your music with you. Just use a computer to transfer the music. If you use a streaming music app, go to the App Store, get the app, then sign in with your user name and password. If you use Apple Music, just sign in on your iPhone, iPad, or iPod touch.

To move music from your Android device to your iPhone, iPad, or iPod touch, use a computer:

  1. Connect your Android device to your computer and find your music. On most devices, you can find these files in Music. On a Mac, install Android File Transfer, open it, then go to Music.
  2. Select the songs that you want to move and drag them to a folder on your computer.
  3. Disconnect your Android device and connect your iPhone, iPad, or iPod touch to your computer.
  4. On a Mac with macOS Mojave 10.14 or earlier, or on a PC, open iTunes and click Songs. On a Mac with macOS Catalina 10.15, open Music.
  5. Open the folder where you put your songs and drag them to the Songs section in the Music app or iTunes Library.
  6. Select your iPhone, iPad, or iPod touch and click Music. You can choose to sync your entire library or select only the songs or artists that you just added
  7. Click Sync. You can find your music on your iPhone, iPad, or iPod touch in the Music app.

Books and PDFs

To move eBooks from your Android device, you can either import them to your iPhone, iPad, or iPod touch, or access them through apps like Kindle, Nook, Google Play Books, and others. To access books from an app, go to the App Store, get the app, then sign in with your user name and password.

Читайте также:  Зона для андроид не открывается

To move ePub books and PDFs from your Android to your iPhone, iPad, or iPod touch, use a computer:

  1. Connect your Android device to your computer and find your books and PDFs. On most devices, you can find these files in Documents. On a Mac, install Android File Transfer, open it, then go to Documents.
  2. Select the books and PDFs that you want to move and drag them to a folder on your computer.
  3. Disconnect your Android device and connect your iPhone to your computer.
  4. On a Mac, drag the books and PDFs into the Books app. On a PC, drag the books and PDFs to iTunes.
  5. On a Mac with macOS Catalina, open Finder. On a Mac with macOS Mojave 10.14 or earlier, or on a PC, open iTunes and sync your ePub books and PDFs. You can find your ePub books and PDFs on your iPhone, iPad, or iPod touch in Books > Library.

For help moving books and PDFs, contact Apple Support.

Documents

If you store documents in the cloud or another service like Dropbox, Google Drive, or Microsoft OneDrive, you can download the app from the App Store, then sign in. You can also bring all your files together with the Files app.

Whether your files are on your iPhone, iPad, or iPod touch, in iCloud Drive, or on another service like Dropbox or Box, you can easily browse, search, and organize your files all in one place.

The apps for Pages, Numbers, and Keynote work with several file types, including Microsoft Office documents. If you don’t use the cloud to transfer your documents, get the apps:

  1. Go to the App Store on your iPhone, iPad, or iPod touch and install Pages, Numbers, and Keynote.
  2. Connect your Android to your computer and find your documents. On most devices, you can find these files in Documents. On a Mac, install Android File Transfer, open it, then go to Documents.
  3. Select the documents that you want to move and drag them to a folder on your computer.
  4. On a Mac with macOS Catalina, open Finder. On a Mac with macOS Mojave 10.14 or earlier, or on a PC, open iTunes and sync your documents to your iPhone, iPad, or iPod touch.

If you need help moving documents, contact Apple Support.

Most apps that you use on your Android device are available in the App Store. Go to the App Store, search for the apps that you have now, and install them.

If you need help with third-party apps and data, contact the app developer.

Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.

Источник

Внедряем Sign in with Apple — систему авторизации от Apple

Этим летом на конференции WWDC 2019 Apple представила собственную систему авторизации Sign in with Apple и сделала ее обязательной для всех приложений в App Store, которые используют вход через соцсети. Исключение составляют образовательные, корпоративные, правительственные и бизнес-приложения, использующие собственную авторизацию. К Sign in with Apple Apple сделала качественную документацию, и в этой статье мы на примере ЦИАН расскажем, как внедрить ее в свой сервис.

Настраиваем Apple Developer Account

Работа по интеграции начинается с настройки аккаунта разработчика. Сначала нужно включить опцию Sign In with Apple для вашего App ID. Для этого заходим в список идентификаторов в Apple Developer Account, выбираем необходимый App ID и включаем для него опцию Sign In with Apple.

Теперь настраиваем Service ID — уникальный идентификатор web-приложения, который понадобится для обращения к Sign in with Apple API. Всего на один App ID можно создать до 5 Service ID. Для этого нажимаем кнопку создания идентификаторов, выбираем Service ID, заполняем необходимые поля и нажимаем Edit в поле Sign In With Apple. Откроется форма, где выбираем правильный Primary App ID, указываем веб-домен и перечислям URL для редиректа после успешного логина. Надо учитывать, что можно ввести только 10 Return URLs:

Для сохранения нажимаем Save, Continue и Register. Да, при любых изменениях конфигурации необходимо нажимать все три кнопки, иначе изменения не вступят в силу.

Теперь в списке Service ID выбираем созданный идентификатор и опять нажимаем Edit в поле Sign In With Apple. В открывшемся окне у поля с веб-адресом видим две новые кнопки:

Читайте также:  Куда девается оперативная память андроида

Этот файл необходим, чтобы Apple верифицировала ваш ресурс. Скачиваем его и размещаем его на своем ресурсе. Сразу у нас этот финт не сработал: когда наши админы добавили файл, то по указанному url срабатывал редирект (302) на файл, лежащий в другом месте, и Apple его не верифицировал. Тогда пришлось размещать файл по прямому доступу по URL (200). После того как Apple успешно проверит файл, рядом с доменом загорится зеленая галочка:

Из раздела идентификаторов переходим в раздел Keys и создаем новый ключ. Для этого ставим галочку Sign In with Apple и нажимаем сначала Configure, чтобы проверить App ID, затем Continue:

На следующем экране обязательно скачиваем файл с ключом и сохраняем его в безопасном месте, так как после ухода с этого экрана ключ будет недоступен для скачивания. На этой же странице можно увидеть Key ID, который нам еще понадобится:

Для пользователей у Sign In with Apple есть бонус: она позволяет предоставить фейковый e-mail, на который можно писать только с доверенных адресов. В этом случае нужна дополнительная настройка. Открываем раздел More, нажимаем Configure в разделе Sign In with Apple и вписываем свой URL:

Добавляем кнопку Sign In with Apple в iOS-приложение

ЦИАН работает на трех платформах: iOS, Android, Web. Для iOS есть нативное SDK, поэтому авторизация будет выглядеть следующим образом:

Чтобы добавить в iOS-приложение Sign in with Apple, добавляем кнопку ASAuthorizationAppleIDButton и вешаем на нее обработчик нажатия:

Кроме ASAuthorizationAppleIDProvider, обратите внимание еще на ASAuthorizationPasswordProvider, который позволяет получать связки «логин-пароль» из Keychain.

Теперь мы реализуем ASAuthorizationControllerPresentationContextProviding:

Создаем делегат ASAuthorizationControllerDelegate, который сообщает об успехе или ошибке:

Полученный authorizationCode мы отправляем на сервер и ждем ответа от бэкенда об успешности авторизации в нашей системе.

Реализуем Sign in with Apple для web и Android

Внезапно, для Android и Web Apple не предоставляет SDK, поэтому в обоих случаях нужно открыть страницу авторизации от Apple и процесс будет иным:

URL для страницы авторизации выглядит следующим образом:

Рассмотрим его параметры:

  • client_id — Service ID, который регистрировали выше.
  • redirect_uri — URI, куда пользователь перенаправляется после успешной аутентификации через AppleID. Этот URI мы указывали выше при настройке Apple Developer.
  • state — идентификатор сессии пользователя, который Apple вернет при вызове redirect_uri, чтобы мы могли проверить отправителя. Правило генерации этого параметра можете придумать самостоятельно, например, рандомную строку.
  • scope — в этом параметре указывается, какая нужна информация от пользователя. Например, name, email или сразу оба, как в примере выше.
  • response_type — этот параметр указывает, в каком виде нужен ответ. Он может быть code или id_token. Если выбрать id_token, то его нужно уточнить параметром response_mode, в котором можно указать query, fragment и form_post.

После успешной двухфакторной аутентификации через appleID Apple вызовет указанный redirect_uri и передаст параметры state и code:

В параметре code передается одноразовый код аутентификации пользователя, который действует в течение 5 минут. В параметре state — идентификатор сессии, отправленный при создании формы авторизации, а в параметре user — данные пользователя.

Получение данных

На всех клиентах, чтобы сохранить данные пользователя, нужно получить от Apple access_token. Для этого сначала запрашиваем authorization_code:

  • в client_id указывается созданный для web-приложений ServiceID и AppID для iOS-приложения.
  • code — мы получили выше после редиректа или передали с iOS-клиента
  • в параметре grant_type передаем цель получения токена: авторизация (authorization_code) или продление токена (refresh_token)
  • в параметре client_secret — JSON Web Tokens на основе секретного ключа, полученного при регистрации приложения.

Создать JSON Web Tokens можно на Python:

Если все прошло успешно, то в ответе придут такие параметры:

Ура, вот и access_token. Вместе с ним приходит refresh_token, которым можно обновить при необходимости access_token.

Информация о пользователе хранится в поле id_token, но его нужно декодировать:

Apple_public_key — это публичный ключ, который можно получить по ссылке.

После декодирования получаем:

Email передается только один раз, когда пользователь впервые авторизуется в вашем сервисе через Sign in with Apple. В следующий раз Apple передаст эти данные только в том случае, если пользователь самостоятельно отвяжет ваше приложение. Этим авторизация от Apple отличается от других сервисов, где данные можно получить через API, и мы не нашли информацию о том, что они планируют реализовать что-то подобное.

В этом ответе нам нужны параметры sub, который передается каждый раз, и email, поэтому мы сохраняем их у себя в системе и сообщаем клиенту о успешной авторизации. PROFIT.

Источник

Оцените статью