Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    17
    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:
    17
    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.
     
  7. samhain323

    samhain323

    Joined:
    Aug 4, 2020
    Posts:
    28
    Thanks for this. Any way you can post the 3 files you added (with any sensitive stuff changed of course). I'm having a bit of trouble figuring out exactly how to go about it (though I think I have the new provisioning file and identifier correct)

    nevermind, figured it out.

    I wasn't using just notificationservice as a filter
     
    Last edited: May 22, 2024 at 6:53 PM