NextDots.RetargetlyLib.IOS 1.0.0.1

dotnet add package NextDots.RetargetlyLib.IOS --version 1.0.0.1
NuGet\Install-Package NextDots.RetargetlyLib.IOS -Version 1.0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NextDots.RetargetlyLib.IOS" Version="1.0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NextDots.RetargetlyLib.IOS --version 1.0.0.1
#r "nuget: NextDots.RetargetlyLib.IOS, 1.0.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NextDots.RetargetlyLib.IOS as a Cake Addin
#addin nuget:?package=NextDots.RetargetlyLib.IOS&version=1.0.0.1

// Install NextDots.RetargetlyLib.IOS as a Cake Tool
#tool nuget:?package=NextDots.RetargetlyLib.IOS&version=1.0.0.1

NextDots.RetargetlyLib.IOS

For latest changes: https://github.com/retargetly/sdk-xamarin-ios/blob/master/README.md

EXTREMELY IMPORTANT SETUP

Please follow the guide to properly setup the NextDots.RetargetlyLib.IOS inside of your application:

Additionally, see the permission setup below for Android to ensure everything is configured correct.

It is highly recommended that you use a custom Application that are outlined in the Current Activity Plugin Documentation](https://github.com/jamesmontemagno/CurrentActivityPlugin/blob/master/README.md)

Add the following keys to the Info.plist file:

<key>CFBundleURLTypes</key>  
<array>  
<dict>  
<key>CFBundleURLName</key>  
<string>com.test</string>  
<key>CFBundleURLSchemes</key>  
<array>  
<string>test</string>  
</array>  
</dict>  
</array>  
<key>NSLocationWhenInUseUsageDescription</key>  
<string>This app needs access to location when open.</string>  
<key>NSLocationAlwaysUsageDescription</key>  
<string>This app needs access to location when in the background.</string>  
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>  
<string>This app needs access to location when open and in the background.</string>  
<key>UIBackgroundModes</key>  
<array>  
<string>location</string>  
</array>  

Installation requirements:

  • Install Microsoft Visual Studio with the Xamarin SDK
  • Create new Xamarin IOS Project
  • Install Nuget library NextDots.RetargetlyLib.IOS
  • IOS specific in your AppDelegate (for Xamarin.IOS) add this code:
[Register("AppDelegate")]  
public class AppDelegate : RAppDelegate  
{  
...  
}  

How to use the SDK?

Initialize library:

RetargetlyLib.IOS.GeoLocationClient geoLocationClient = new GeoLocationClient();  

await geoLocationClient.Init(source_hash, true, true);  
//or  
await geoLocationClient.Init(locationManager, source_hash, true, true);  

Send Custom Geo Event

RetargetlyLib.IOS.GeoLocationClient geoLocationClient = new GeoLocationClient(source_hash);

var data = new
{
    customvalue = "test",
    othervalue = "test2"
};

await geoLocationClient.Send(data);
 

DeepLink Implementation

Your AppDelegate class must inherit from RAppDelegate.

[Register("AppDelegate")]  
public class AppDelegate : RAppDelegate  
{  
// class-level declarations  

public AppDelegate()  
{  
	this.source_hash = "x9mfLt0ATihM0n0bI4PPuV9bbDNa1E3D";  
}  
}
Product Versions
Xamarin.iOS xamarinios10
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.1 764 8/9/2018
1.0.0 753 8/9/2018

Bug fixes.