NextDots.RetargetlyLib.IOS 1.0.0.1

Android geolocation Library

Install-Package NextDots.RetargetlyLib.IOS -Version 1.0.0.1
dotnet add package NextDots.RetargetlyLib.IOS --version 1.0.0.1
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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";  
}  
}

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";  
}  
}

Release Notes

Bug fixes.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0.1 216 8/9/2018
1.0.0 194 8/9/2018