# Notification profile mismatch

#### iOS build failure: Notification provisioning profile mismatch

If your app build is failing, your build is not working, or your download is not completing and you see the error:

*“It seems your app build has encountered an issue. The Bundle ID of the uploaded Notification Provisioning Profile does not match this app.”*

This means the provisioning profile uploaded for push notifications does not match the required Notification Bundle ID.

This mismatch causes the iOS build failure.

#### Why this build failure happens

1. The main app provisioning profile was reused for notifications
   * The same provisioning profile was uploaded for both the app and notifications
   * A separate notification provisioning profile was not created
2. The Notification Bundle ID was not created correctly
   * The *AppNotificationServiceExtension* identifier does not exist
   * The wrong identifier was selected during profile creation

#### How to fix this iOS build failure

1. Create a new notification bundle identifier
   * Log in to your [Apple Developer account](https://developer.apple.com/)
   * Go to Certificates, Identifiers & Profiles
   * Navigate to Identifiers
   * Click the + icon
   * Select App IDs and click Continue
   * Choose App and click Continue
   * Enter the Notification Bundle ID in this format:

     app.yourapp.bundleid.ios.AppNotificationServiceExtension
   * Do not enable any additional capabilities
   * Click Continue and then Register

{% hint style="warning" %}
The Notification Bundle ID must end with AppNotificationServiceExtension and should be created separately from your main app bundle ID.
{% endhint %}

2. Generate a notification provisioning profile
   * Go to Profiles
   * Click the + icon
   * Under Distribution, select App Store Connect
   * Select the newly created AppNotificationServiceExtension identifier
   * Select the same distribution certificate used for the main app
   * Enter a name for the provisioning profile
   * Click Generate
   * Download the provisioning profile

{% hint style="warning" %}
Select the same distribution certificate used for the main app build. Only the Bundle ID should be different.
{% endhint %}

3. Upload the notification provisioning profile
   * Go to your app dashboard
   * Navigate to Notifications
   * Click on Build Settings
   * Upload the downloaded Notification Provisioning Profile in the relevant section
4. Rebuild your app
   * Go to the [Download](https://app.appmysite.com/app/download) dashoboard
   * Click Rebuild under the iOS app card

Once the correct notification provisioning profile is uploaded, your build failure should be resolved and the download should complete successfully.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmysite.com/app/download/build-failure/notification-profile-mismatch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
