--- title: "Ein Projekt über Benachrichtigung starten" slug: "launch-via-notification" updated: 2024-06-11T03:00:49Z published: 2024-06-11T03:00:49Z canonical: "support.whatfix.com/launch-via-notification" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Ein Projekt über Benachrichtigung starten - [Schritt 1: Generieren Sie die Projekt-ID](/mobile/docs/de/launch-via-notification#generate) - [Schritt 2: Erstellen einer Cloud-Benachrichtigung](/mobile/docs/de/launch-via-notification#cloud-notif) - [Schritt 3: Starten Sie Whatfix Mobile über die Benachrichtigung](/mobile/docs/de/launch-via-notification#launch) - [Schritt 4: Führen Sie es auf Ihrem Gerät aus](/mobile/docs/de/launch-via-notification#device) ## Die Projekt-ID generieren Generieren Sie die `project_id` des Projekts, das Sie über eine Benachrichtigung starten möchten. Für weitere Informationen, sehen Sie [Mit Projekt-ID veröffentlichen](/mobile/docs/de/publish-using-project-id). your title goes here Stellen Sie sicher, dass Sie die richtige `project_id` mit der richtigen App-Version in der Benachrichtigung senden. ## Einer Cloud-Benachrichtigung erstellen Für dieses Beispiel verwenden wir eine Benachrichtigung, die mit Firebase erstellt wurde. **2a. Verfassen Sie eine Benachrichtigung** ![firebase_notif](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/firebase_notif.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A59%3A12Z&se=2026-11-22T13%3A59%3A12Z&sr=b&sp=r&sig=8QGbF5FVVJSE5uG%2FK2hYyLcaokFA04FGobI1uN5IsnU%3D) **2b. Die Whatfix Mobile Projekt-ID hinzufügen** ![firebase_project_id](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/firebase_project_id.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A59%3A12Z&se=2026-11-22T13%3A59%3A12Z&sr=b&sp=r&sig=T7GcDgnzy1pSBW6xcNTPs%2FGEVHbn9yGRA09QBxEfI2c%3D) Bevor Sie die Benachrichtigung veröffentlichen, müssen Sie einen Code-Snippet im Android-Projekt hinzufügen, um das Whatfix Mobile-Projekt über die erstellte Benachrichtigung zu starten. ## Ein Whatfix Mobile über Benachrichtigung starten Um das Whatfix Mobile-Projekt über eine Benachrichtigung zu starten, müssen Sie die `project_id` im Firebase-Dashboard innerhalb Ihres Android-Projekts verarbeiten. **3a. Die Firebase-Daten in deiner Firebase-Serviceklasse verarbeiten** Android ``` public class LeapFirebaseService extends FirebaseMessagingService { @Override public void onMessageReceived(RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); RemoteMessage.Notification remoteNotification = remoteMessage.getNotification(); if (remoteNotification != null) { //1. Empfangen Sie die Daten von Firebase Map Daten = remoteMessage.getData(); String ProjektId = data.get("project_id"); //2. Erstellen Sie eine Absicht (mit project_id Daten als Extra) und geben Sie das Ziel an Absicht intent = new Intent(this, DestinationActivity.class); intent.putExtra("project_id", projectId); //3. Da wir eine Benachrichtigung starten, müssen wir ein PendingIntent erstellen PendingIntent pendingIntent = PendingIntent.getActivity(this, REQUEST_CODE, intent, PendingIntent.FLAG_UPDATE_CURRENT); //4. Erstellen Sie eine Benachrichtigung mit dem oben erstellten PendingIntent Benachrichtigung Benachrichtigung = getNotification(this, remoteNotification.getTitle(), remoteNotification.getBody(), "Start", pendingIntent); // "Start" ist der Text dem Button //5. Lassen Sie die Benachrichtigung starten NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(NOTIFICATION_ID, notification); } } } ``` Swift ``` import UIKit import Firebase import FirebaseMessaging import UserNotifications func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Überschreibepunkt für Anpassung nach dem Start der Anwendung. FirebaseApp.configure() Messaging.messaging().delegate = self UNUserNotificationCenter.current().delegate = self let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound] UNUserNotificationCenter.current().requestAuthorization( options: authOptions, completionHandler: { _, _ in } ) application.registerForRemoteNotifications() return true } ``` **3b. Starten Sie das Whatfix Mobile-Projekt** Starten Sie das Projekt auf dem Zielscreen mit `Leap.embedProject(String project_id)`. Android ``` class DestinationActivity extends Activity { @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); //1. Da das Ziel der Absicht hier war, werden wir die erhaltene Absicht hier behandeln if (intent != null && intent.hasExtra("project_id")) { //2. Erhalten Sie die project_id aus dem Intent String projectId = intent.getStringExtra("project_id"); //3. Überprüfen Sie, ob die project_id nicht null oder nicht leer ist if (projectId != null && !projectId.isEmpty()) { //4. Starten Sie das Projekt_id über die 'embedProject'-Methode des Leap SDK Leap.embedProject(projectId); } } } } ``` Swift ``` func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) { if let projectId = userInfo["projectId"] as? String { Leap.shared.embedProject(projectId) } } ``` ## Auf Ihrem Gerät ausführen **4a. Veröffentlichen Sie die Benachrichtigung** ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/firebase_publish.gif?sv=2026-02-06&spr=https&st=2026-11-22T12%3A59%3A12Z&se=2026-11-22T13%3A59%3A12Z&sr=b&sp=r&sig=5WSU1JZYKDLKO42cgIU8iiFJtBxZ1a5lXJPDtRoCNaI%3D) **4b. Überprüfen Sie Ihre App** Wann eine Benachrichtigung auf Ihrer App erscheint, können Sie den Whatfix Mobile Inhalt anzeigen. Android ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/notification_android.gif?sv=2026-02-06&spr=https&st=2026-11-22T12%3A59%3A12Z&se=2026-11-22T13%3A59%3A12Z&sr=b&sp=r&sig=T%2FLm3q9m2PBxxMtxqFDT3TBuUFUcEJzRUEB6ohRQ7Lc%3D) iOS ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/notification_ios.gif?sv=2026-02-06&spr=https&st=2026-11-22T12%3A59%3A12Z&se=2026-11-22T13%3A59%3A12Z&sr=b&sp=r&sig=iXJSflAe2PaQKqyRIStsPLhWI%2Br3m98xDrsTQAlnLh4%3D)