Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug [Unity Push Notification] [iOS] Provisioning profile does not match

Discussion in 'Player Engagement' started by rdossantos_unity, Apr 25, 2023.

  1. rdossantos_unity

    rdossantos_unity

    Joined:
    Mar 7, 2022
    Posts:
    7
    I'm getting the error below while I'm building on Unity Cloud Build.


    Error Detail with sample information:
    - INFO: ▸ ❌ error: Provisioning profile "Sample Development" has app ID "com.project.sample", which does not match the bundle ID "com.project.sample.notificationservice". (in target 'notificationservice' from project 'Unity-iPhone')

    Well, the bundle ID didn't match, but the suffix notificationservice was appended automatically. We can check the package script make the action.



    Question:
    • I saw again the integration guide and I didn't see the specific situation of notificationservice append. What do I need to change? just the Topic ID modification will be necessary?
    upload_2023-4-24_20-53-15.png

    Extra Info:

    - Unity Version: Unity 2022.2.11f1
    - Xcode Version: Xcode 13.4.1
    - Ruby version: 2.7.4
    - Package version: 3.0.1-pre.1
     
    JimAnderssonItatake likes this.
  2. JimAnderssonItatake

    JimAnderssonItatake

    Joined:
    Aug 8, 2019
    Posts:
    1
    I have the same problem.

    - Unity Version: Unity 2021.3.21f1
    - Xcode Version: Xcode 14.1.0
    - Ruby version: 2.7.4
    - Package version: 3.0.1-pre.1
     
  3. israel_nftgco

    israel_nftgco

    Joined:
    Apr 27, 2023
    Posts:
    6
    Any news on how to solve this?
     
  4. FDUnity-01

    FDUnity-01

    Joined:
    Mar 30, 2022
    Posts:
    6
    any update on this?
     
  5. migwellian

    migwellian

    Joined:
    Mar 20, 2018
    Posts:
    16
    I read elsewhere that the solution is to set `signingStyle` to `automatic` in the plist file - however I tried it and it didn't help.

    I am still looking for a solution.
     
  6. migwellian

    migwellian

    Joined:
    Mar 20, 2018
    Posts:
    16
    OK, I finally understand what's going on and I have the fix.

    The
    notificationservice
    target is built as an App Extension, and by convention its bundle ID should be the App ID with an extra suffix.

    You have to create a 2nd provisioning profile for this identifier and provide that to the build.

    In my case I am using Unity Cloud Build, and providing 2 provisioning profiles to the build process was not straightforward. It is documented here.

    I spent several days trying to find a fix for this. Shame on Unity for not mentioning any of this stuff in their documentation about push notifications.