![]() |
VOOZH | about |
dotnet add package NextDots.RetargetlyLib.IOS --version 1.0.0.1
NuGet\Install-Package NextDots.RetargetlyLib.IOS -Version 1.0.0.1
<PackageReference Include="NextDots.RetargetlyLib.IOS" Version="1.0.0.1" />
<PackageVersion Include="NextDots.RetargetlyLib.IOS" Version="1.0.0.1" />Directory.Packages.props
<PackageReference Include="NextDots.RetargetlyLib.IOS" />Project file
paket add NextDots.RetargetlyLib.IOS --version 1.0.0.1
#r "nuget: NextDots.RetargetlyLib.IOS, 1.0.0.1"
#:package NextDots.RetargetlyLib.IOS@1.0.0.1
#addin nuget:?package=NextDots.RetargetlyLib.IOS&version=1.0.0.1Install as a Cake Addin
#tool nuget:?package=NextDots.RetargetlyLib.IOS&version=1.0.0.1Install as a Cake Tool
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:
[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 Compatible and additional computed target framework versions. |
|---|---|
| Xamarin.iOS | xamarinios10 xamarinios10 is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Bug fixes.