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
<PackageReference Include="NextDots.RetargetlyLib.IOS" Version="1.0.0.1" />
paket add NextDots.RetargetlyLib.IOS --version 1.0.0.1
#r "nuget: NextDots.RetargetlyLib.IOS, 1.0.0.1"
// 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 Compatible and additional computed target framework versions. |
---|---|
Xamarin.iOS | xamarinios10 is compatible. |
-
- dannycabrera.GetiOSModel (>= 1.4.0)
- Microsoft.Bcl.Build (>= 1.0.21)
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 11.0.2)
- Plugin.Permissions (>= 3.0.0.12)
- Xam.Plugin.Connectivity (>= 3.2.0)
- Xam.Plugin.Geolocator (>= 4.5.0.6)
- Xam.Plugins.Settings (>= 3.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Bug fixes.