Search Unity

Create "Notification Service Extension" from post build script

Discussion in 'iOS and tvOS' started by fox, Sep 13, 2017.

  1. fox

    fox

    Joined:
    Jan 14, 2009
    Posts:
    118
    Hi!
    We are 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"-target 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 specific "Notification Service Extension"-one..

    Reason why we want this done by code is that we are trying to get OneSignal to work with Unity Cloud Build. We have step 1 ready and working from our script, 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. AlCaTrAzzGames

    AlCaTrAzzGames

    Joined:
    May 17, 2017
    Posts:
    25