# Démarrage rapide du SDK Android

Démarrez avec le SDK Android de Pushwoosh en utilisant cet exemple simple et rapide.

## Prérequis

Pour intégrer le SDK Android de Pushwoosh dans votre application, vous aurez besoin des éléments suivants :

<TranslatedFragment id="prerequisites-android" />

## Télécharger le projet d'exemple

Clonez le projet d'exemple depuis GitHub :
```bash
git clone https://github.com/Pushwoosh/pushwoosh-android-sample
```

## Configurer le projet

1. Placez votre fichier **google-services.json** dans le répertoire pushwoosh-demoapp/app.

2. Dans votre fichier **build.gradle** (Module : app), mettez à jour l'`applicationId` pour qu'il corresponde au nom de votre package.

3. Dans **res/values/strings.xml**, remplacez les valeurs de l'espace réservé par vos détails spécifiques :
  - `pushwoosh_app_id` : Utilisez votre code d'application Pushwoosh.
  - `pushwoosh_api_token` : Utilisez votre [jeton d'API de l'appareil Pushwoosh](/fr/developer/api-reference/api-access-token/#device-api-token)
```xml title="strings.xml"
<resources>
    <string name="app_name">demoapp</string>
    <string name="title_home">Actions</string>
    <string name="title_notifications">Paramètres</string>
    <string name="pushwoosh_app_id">_VOTRE_PUSHWOOSH_APP_ID_</string>
    <string name="pushwoosh_api_token">_VOTRE_JETON_API_APPAREIL_PUSHWOOSH_</string>
</resources>
```

## Exécuter le projet

1. Compilez et exécutez le projet.
2. L'application aura deux onglets : « Actions » et « Paramètres ». Accédez à l'onglet **Paramètres**.
3. Appuyez sur le bouton **Register for Pushes**.
4. Accordez l'autorisation pour les notifications push. L'appareil sera enregistré auprès de Pushwoosh.

Vous devriez voir une entrée de journal comme celle-ci :
```plaintext title="Logcat"
Log level: INFO
[RequestPermissionHelper] Requesting permissions
Pushwoosh SDK initialized successfully
HWID: __HWID_OF_YOUR_DEVICE__
APP_CODE: __YOUR_PUSHWOOSH_APP_ID__
PUSHWOOSH_SDK_VERSION: __PUSHWOOSH_SDK_VERSION_INSTALLED__
FIREBASE_PROJECT_ID: __YOUR_FIREBASE_PROJECT_ID__
PUSH_TOKEN:
User ID "__USER_ID_OF_THE_DEVICE__" successfully set

[NotificationManager] Registered for push notifications: __DEVICE_PUSH_TOKEN__
```

## Envoyer une notification push

Retournez au Control Panel de Pushwoosh et [envoyez une notification push](/fr/product/messaging-channels/push-notifications/send-push-notifications/one-time-push) à votre appareil enregistré.

## Prochaines étapes
Pour en savoir plus, veuillez vous référer au [guide d'intégration de base](/fr/developer/pushwoosh-sdk/android-sdk/firebase-integration/integrate-pushwoosh-android-sdk/).