BranchMetrics / xamarin-branch-deep-linking-attribution

The Branch Xamarin SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/apps/xamarin/
MIT License
72 stars 17 forks source link

Impossible to change Profile number to 78 #41

Closed softclickbr closed 7 years ago

softclickbr commented 7 years ago

The actual .NET Framework 4.5 profile is 259, impossible to change it, impossible to use Xamarin Branch.

antonargunov commented 7 years ago

hi @softclickbr , sorry for delay, quick solution:

softclickbr commented 7 years ago

Thank you, but I'm not experienced to manual package install (i.e. I never hear about Testbeds)

TheMarshal99 commented 7 years ago

Opportunities oopooooooopo

TheMarshal99 commented 7 years ago

Ooioooooiioooooooiooo

TheMarshal99 commented 7 years ago

Oooo

TheMarshal99 commented 7 years ago

Oiooooiopuuoopooooop

TheMarshal99 commented 7 years ago

Sorry, my phone must have opened up the notification email in my pocket!

antonargunov commented 7 years ago

@softclickbr sorry for delay, can you describe me what do you want to do?

I created cross-platform application for ios and android with using Xamarin Forms. I added Branch SDK into ios and android projects (not into PCL project). I can change my profile in my PCL project as I wish.

RaFaGG commented 7 years ago

@antonargunov if you create a cross-platform application for ios, android and UWP with using Xamarin Forms and you add Branch SDK into ios, android and PLC projects, the UWP don't compile (WP 8.1 compile). Problem of profile? The error is "Cannot resolve Assembly or Windows Metadata file 'Branch-Xamarin-SDK.dll'" Any help?

antonargunov commented 7 years ago

Hello @RaFaGG , sorry, but we don't support UWP.

antonargunov commented 7 years ago

@RaFaGG , important note, I DON'T add Branch SDK to PCL project. I add Branch SDK into IOS and Android projects only.

You should have in one solution: 1) PCL project - for cross-platfrom code (business logic, deep linking processing etc.). 2) Android project - for native features (activities, GUI, initialization and working with Android implementation of Branch SDK, etc.) 3) IOS project - for native features (life cycle, GUI, initialization and working with IOS implementation of Branch SDK, etc.)

You can call deep linking processing methods of your PCL project from IOS and Android project.

RaFaGG commented 7 years ago

Hello again @antonargunov! Sorry, there is something I am not understanding well. We follow the example of testbed and there the branch SDK in PCL is used to implement IBranchUrlInterface. In addition we create BranchUniversalObject to generate URL in PCL. Everything works fine on IOS and android. In wp 8.1 there are no problems for the app to work (obviously without the Branch functionality), but when compiling in UWP fails. We should implement IBranchUrlInterface, IBranchUrlInterface and BranchUniversalObject ... in Android and ios project?

antonargunov commented 7 years ago

Hello @RaFaGG , now I understood your issue. Let me try that by myself.

antonargunov commented 7 years ago

@RaFaGG , several questions: 1) do you use Xamarin or MS VS? 2) did you add Branch SDK nuget package or Brach SDK source code?

RaFaGG commented 7 years ago

@antonargunov

  1. MS VS
  2. Nuget package (version 3.0.3). Thanks!
antonargunov commented 7 years ago

Environment: 1) Windows 10 2) MSVS 2015

Created Solution: 1) Blank App (Xamarin.Forms.Portable) 2) WindowPhone 8.1 was deleted from Targets In PCL project to change PCL profile 259 to PCL profile 78 2.1) Uninstall Xamarin Forms package 2.2) DeleteWindowPhone 8.1 2.3) Install Xamarin Forms package

Branch SDK package: 1) Branch SDK added into PCL and UWP projects. 2) Creating of BranchUniversalObject was added into PCL and UWP projects

Debug x86 Build log: Restoring NuGet packages... To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.' 1>------ Rebuild All started: Project: App1, Configuration: Debug Any CPU ------ 1> App1 -> C:\VS_projects\App1\App1\App1\bin\Debug\App1.dll 2>------ Rebuild All started: Project: App1.UWP, Configuration: Debug x86 ------ 2>C:\VS_projects\App1\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets(225,5): warning : All projects referencing App1.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569. 2> App1.UWP -> C:\VS_projects\App1\App1\App1.UWP\bin\x86\Debug\App1.UWP.exe 2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): warning APPX0108: The certificate specified has expired. For more information about renewing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. ========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

Release x64 Build Log Restoring NuGet packages... To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.' 1>------ Rebuild All started: Project: App1, Configuration: Release Any CPU ------ 1> App1 -> C:\VS_projects\App1\App1\App1\bin\Release\App1.dll 2>------ Rebuild All started: Project: App1.UWP, Configuration: Release x64 ------ 2>C:\VS_projects\App1\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets(225,5): warning : All projects referencing App1.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569. 2> App1.UWP -> C:\VS_projects\App1\App1\App1.UWP\bin\x64\Release\App1.UWP.exe 2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): warning APPX0108: The certificate specified has expired. For more information about renewing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. 2> Starting .NET Native compilation 2> Processing application code 2>C:\VS_projects\App1\App1\App1.UWP\Resources.System.Linq.Expressions.rd.xml(35): warning : ILTransform_0027: Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found. 2>C:\VS_projects\App1\App1\App1.UWP\Resources.System.Linq.Expressions.rd.xml(91): warning : ILTransform_0027: Method 'ParameterIsAssignable' within 'System.Linq.Expressions.Expression' could not be found. 2> Computing application closure and generating interop code 2> Generating serialization code 2> Compiling interop code 2> Cleaning up unreferenced code 2> Generating native code 2> Generating fixups for native code ========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

Note: I didn't solve issues with Linq and certificate, because that was test for Branch SDK

RaFaGG commented 7 years ago

@antonargunov Thanks! In WP project not need no add Branch SDK but in UWP is necessary. All OK!

antonargunov commented 7 years ago

@RaFaGG Great! Thanks for feedback! So, I think issue is solved.