Branch plugin for unity 4.7

Asked on June 28, 2016 in Technical.

I have been trying to intergrate Branch plugin(v0.2.10 && v0.2.0) in unity 4.7 for a while now. But the post processing script gives error ‘unityEditor.ios.xcode’ deosn’t exist. Help me with version which is compatible with unity 4.7.

Digit88 — Developer
7 Answer(s)
Answered on August 25, 2016.

As for the ‘unityEditor.ios.xcode’  problem, i had to manually put xcode API folder in unity project/Assets/Editor/ folder to get it to work. i downloaded the API from this link: https://bitbucket.org/Unity-Technologies/xcodeapi/src/
For getting it to work with unity 4.7 i followed the process below:

Branch integration Process for IOS: (unity 4.7)
1. Make xcode project using unity 4.7.
2. Right click on mainProject file in navigator and select add files to ‘ProjectName’.
3. Make sure you have selected ‘Copy items if needed’ and ‘Create groups’ before adding the files/folder in project in file/selection window.
4. Navigate to CarnivalSlots/Assets/Plugin/IOS (or wherever branch’s sdk foler is located in your project)and select the branch folder.
5. Go to Build phases and then to compile sources and add ‘-fobjc-arc’ flag to all branch’s file there.
6. Build normally. Should work

7. Dont forget to add branch’s key in plist as ‘branch_key’ and the key value as string.

Digit88 — Developer
Commented on August 25, 2016.

Thanks very much for sharing your solution!

 

Branch — Developer
Answered on June 28, 2016.

Hi there!

This sounds like something that may require attention from our wonderful Integration Engineering team. I will forward this information along to them.

Branch — Developer
Answered on June 29, 2016.

Thankyou Alex. Hope to hear soon from you guys. I am stuck not able to integrate it in our game.

Digit88 — Developer
Answered on June 29, 2016.

We definitely don’t want you to be stuck! I’ll check in with the Integrations team and make sure they received the ticket. Thanks for your patience 🙂

Branch — Developer
Answered on August 24, 2016.

Hi guys, thanks for your help. We were able to integrate branch in Unity 4.7. Took some time but it was worth it.

Just wondering if there is a way to pass email’s subject when sharing a link in unity. Thanks in advance.

Digit88 — Developer
Answered on August 24, 2016.

Glad it’s working! Do you mind sharing some basic details on how you eventually got everything set up, in case someone else has a similar requirement?

I believe we have an undocumented $email_subject control parameter, but I do not know if this is fully supported on Unity. If you give it a try, please let us know how it goes.

Branch — Developer
Answered on August 25, 2016.

Hi btw i added ‘email_subject’ as control param in BranchLinkProperty i was creating when trying to shareLink. But it didn’t work.  Can you help me with what might i be doing wrong here.

Digit88 — Developer
Commented on August 25, 2016.

Ah, probably not doing anything wrong. I expect it’s just not supported in our Unity SDK currently. We’re planning to do some new development on this soon, so keep your eyes open for updates!

Alternatively, if you’d like to try adding support for this yourself, our Unity SDK is open source and we’d love a pull request 🙂

 

Branch — Developer
Commented on August 25, 2016.

Thanks for your help. Perhaps we will take you up on your offer (time permitting) 🙂

 

Have one more question – In the referral reward setup screen there’s a ‘Promo Code’ based reward option.  Could you let us know how do we setup a branch link with a promo code so that the user gets rewarded if he enters the game with this link?

Digit88 — Developer
Commented on August 26, 2016.

For sure! Time permitting, of course. We’re also always on the lookout for contractors with expertise in some of these other platform SDK integrations. Just putting that out there :).

I believe the promo code functionality was actually deprecated a few months ago, which is why we don’t have documentation on it anymore. We should probably clean this up and get it off the dashboard soon. You can see the way it is implemented in the Unity testbed app here, and use that as a model for now!

Branch — Developer