NextDots.RetargetlyLib.IOS 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NextDots.RetargetlyLib.IOS --version 1.0.0
NuGet\Install-Package NextDots.RetargetlyLib.IOS -Version 1.0.0
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" />
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
#r "nuget: NextDots.RetargetlyLib.IOS, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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

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

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();  
  
var data = new  
{  
et = "custom",  
uid = Guid.NewGuid().ToString(),  
app = "com.nextdots.RetargetlyDemo2",  
appn = "RetargetlyDemo",  
device = "iPhone 7",  
ip = "190.247.21.127",  
mf = "Apple Inc.",  
lan = "en",  
source_hash = "x9mfLt0ATihM0n0bI4PPuV9bbDNa1E3D",  
value = new  
{  
aCustomValueField = "test"  
}  
};  
  
await geoLocationClient.Send(source_hash, 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";  
	this.sendGeoData = true;  
	this.forceGPS = true;  
}  
}
Product Compatible and additional computed target framework versions.
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
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 950 8/9/2018
1.0.0 904 8/9/2018

Bug fixes.