Search Unity

Create Notification Service Extension from post build script

Discussion in 'Unity Build Automation' started by fox, Sep 13, 2017.

  1. fox

    fox

    Joined:
    Jan 14, 2009
    Posts:
    118
    Hi!
    We´re using a postbuild-script to modify our xcode project.

    Works great, but now we need your help. We are trying to add a "Notification Service Extension" from code (see picture).



    We can add a new xcode target by using PBXProject.AddAppExtension, but with this we only get a "normal" target, not a Notification Service Extension"-one..

    Reason why we want this done by code is that we are trying to get OneSignal to work with cloud build. We´ve step1 ready and working, but struggling with the second part in the setup guide found here: https://documentation.onesignal.com/docs/unity-sdk-setup

    Any input would be very nice. Thanks!
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Were you able to resolve this? Also, what Unity version are you using ?
     
  3. fox

    fox

    Joined:
    Jan 14, 2009
    Posts:
    118
    No, not yet. I did manage to add my own target via PBXProject.AddAppExtension, but when we do it that way it doesn't create the same file as when we create a Notification Service Extension via xcode.
    We´re using Unity 2017.1.1p1 at the moment. Have you tried? Any luck?
     
  4. AlCaTrAzzGames

    AlCaTrAzzGames

    Joined:
    May 17, 2017
    Posts:
    25