App-Flip

Sobald Sie eine OAuth 2.0-Implementierung haben, können Sie optional App Flip auf OAuth-Basis App Flip konfigurieren. Damit können Ihre Android Nutzer ihre Konten in Ihrem Authentifizierungssystem schneller mit ihren Google-Konten verknüpfen. In den folgenden Abschnitten wird beschrieben, wie Sie App Flip für Ihre Cloud-to-cloud Integration entwerfen und implementieren.

Design guidelines

This section describes the design requirements and recommendations for the App Flip account linking consent screen. After Google calls your app, your app displays the consent screen to the user.

Requirements

  1. You must have a Google authorization statement such as "Once linked, Google will have permission to control your devices."
  2. You must communicate that the user's account is being linked to Google, not to a specific Google product, such as Google Home or Google Assistant.
  3. You must state a clear call-to-action on your consent screen and use the wording "Agree and link" for linking action. This is because users need to understand what data they're required to share with Google to link their accounts.
  4. You must provide a way for users to go back, deny or cancel, if they choose not to link. Use the wording "Cancel" for the cancel action.
  5. You must implement this workflow: After clicking "Agree and link", you must show linking success and redirect the user back to the Google Home app automatically. The user should now see the linked device on the Google Home app with your action. After clicking "Cancel" you should redirect the user back to the Google Home app.

Recommendations

We recommend that you do the following:

  1. Display Google's Privacy Policy. Include a link to Google's Privacy Policy on the consent screen.

  2. Data to be shared. Use clear and concise language to tell the user what data of theirs Google requires and why.

  3. Ability to unlink. Offer a mechanism for users to unlink, such as a URL to their account settings on your platform. Alternatively, you can include a link to Google Account where users can manage their linked account.

  4. Ability to change user account. Suggest a method for users to switch their account(s). This is especially beneficial if users tend to have multiple accounts.

    • If a user must close the consent screen to switch accounts, send a recoverable error to Google so the user can sign in to the desired account with OAuth linking and the implicit flow.
  5. Include your logo. Display your company logo on the consent screen. Use your style guidelines to place your logo. If you wish to also display Google's logo, see Logos and trademarks.

This figure shows an example consent screen with call-outs to the
            individual requirements and recommendations to be followed when
            you design a user consent screen.
Figure 1: Account linking consent screen design guidelines.

Einrichtung für OAuth-Basis App Flip

In den folgenden Abschnitten werden die Voraussetzungen für App Flip auf OAuth-Basis beschrieben und wie Sie Ihr App Flip-Projekt in der Google Home Developer Console konfigurieren.

Cloud-zu-Cloud-Integration erstellen und OAuth 2.0-Server einrichten

Bevor Sie App Flip konfigurieren können, müssen Sie Folgendes tun:

App Flip in der Developer Console konfigurieren

Im folgenden Abschnitt wird beschrieben, wie Sie App Flip in der Developer Console konfigurieren.

  1. Füllen Sie alle Felder unter OAuth-Clientinformationen aus. Wenn App Flip nicht unterstützt wird, wird reguläres OAuth als Fallback verwendet.
  2. Aktivieren Sie unter Ihre App für die Kontoverknüpfung verwenden(optional) die Option Für iOS aktivieren.
  3. Füllen Sie das Feld Universeller Link aus. Weitere Informationen zu universellen Links finden Sie unter Apps und Websites erlauben, auf Ihre Inhalte zu verlinken.
  4. Wenn Sie Ihren Client optional konfigurieren möchten, fügen Sie Bereiche hinzu und klicken Sie unter Client konfigurieren (optional) auf Bereich hinzufügen.
  5. Klicken Sie auf Speichern.

Sie können jetzt mit dem nächsten Abschnitt fortfahren, um App Flip in Ihrer iOS- oder Android App zu implementieren.

App Flip in nativen Apps implementieren

Wenn Sie App Flip implementieren möchten, müssen Sie den Autorisierungscode des Nutzers in Ihrer App so ändern, dass ein Deeplink von Google akzeptiert wird.

App Flip auf Ihrem Gerät testen

Nachdem Sie eine Cloud-zu-Cloud-Integration erstellt und App Flip in der Console und in Ihrer App konfiguriert haben, können Sie App Flip auf Ihrem Mobilgerät testen. Sie können die Google Home App verwenden, um App Flip zu testen.

So testen Sie App Flip über die Google Home App:

  1. Gehen Sie zur Developer Console und wählen Sie Ihr Projekt aus.
  2. Gehen Sie zu Cloud-zu-Cloud > Testen.
  3. Lösen Sie den Kontoverknüpfungsvorgang über die Home App aus:
    1. Öffnen Sie die Google Home app (GHA).
    2. Klicken Sie auf die Schaltfläche +.
    3. Klicken Sie auf Gerät einrichten.
    4. Klicken Sie auf Du hast bereits Geräte eingerichtet?.
    5. Wählen Sie Ihre Cloud-zu-Cloud-Integration aus der Liste der Anbieter aus. In der Liste wird ihr das Präfix „[Test]“ vorangestellt. Wenn Sie Ihre [Test]-Integration aus der Liste auswählen, sollte Ihre App geöffnet werden.
    6. Prüfen Sie, ob Ihre App gestartet wurde, und beginnen Sie mit dem Testen Ihres Autorisierungsvorgangs.