Teragence.SDK.iOS.Background
1.0.9.7
dotnet add package Teragence.SDK.iOS.Background --version 1.0.9.7
NuGet\Install-Package Teragence.SDK.iOS.Background -Version 1.0.9.7
<PackageReference Include="Teragence.SDK.iOS.Background" Version="1.0.9.7" />
<PackageVersion Include="Teragence.SDK.iOS.Background" Version="1.0.9.7" />
<PackageReference Include="Teragence.SDK.iOS.Background" />
paket add Teragence.SDK.iOS.Background --version 1.0.9.7
#r "nuget: Teragence.SDK.iOS.Background, 1.0.9.7"
#:package Teragence.SDK.iOS.Background@1.0.9.7
#addin nuget:?package=Teragence.SDK.iOS.Background&version=1.0.9.7
#tool nuget:?package=Teragence.SDK.iOS.Background&version=1.0.9.7
Installation and Integration guide
- Open the
AppDelegate.cs
and following usage:
using Teragence.SDK.iOS.Background;
- Then add in
AppDelegate
class following property:
public static TRGController TRGController;
- In the method
FinishedLaunching
of theAppDelegate
class add the following code:
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
// Your code
this.TRGController = new TRGController("PartnerID");
return true;
}
where :
PartnerID
It's your unique Partner ID symbols
- Allowed controls
TRGController
[x] Allows to control ability conduct all measurements using the
bool IsActive { get; set; }
property. By default, IsActive == true
.
[x] Allows to control the ability conduct measurements in background (if IsRunned == true), including when application is not running using the
bool EnableBackgroundMode { get; set; }
property. By default, EnableBackgroundMode == true
.
[x] Allows conduct one-time measurements when the application is running by calling
void MakeManualMesurements();
method.
Project setup
- Add the
NSLocationWhenInUseUsageDescription
key and theNSLocationAlwaysAndWhenInUseUsageDescription
key to your Info.plist file. (Xcode displays these keys asPrivacy - Location When In Use Usage Description
andPrivacy - Location Always and When In Use Usage Description
in the Info.plist editor.)
Code for manual editing of Info.plist:
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>For detecting of your location.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>For detecting of your location.</string>
- If your app supports iOS 10 and earlier, add the
NSLocationAlwaysUsageDescription
key to your Info.plist file. (Xcode displays this key asPrivacy - Location Always Usage Description
in the Info.plist editor.)
Code for manual editing of Info.plist:
<key>NSLocationAlwaysUsageDescription</key>
<string>For detecting of your location.</string>
For each key you must write a convincing description of why you need to receive location updates in the background. For example -
For detecting of your location
.In the Background Modes tab of your
Info.plist
file app target and in Background Modes select Location updates.Add the
Required Background Modes
key with valueApp registers for location updates
to your info plist file.
Code for manual editing of Info.plist:
<key>UIBackgroundModes</key>
<array>
<string>location</string>
</array>
- Add the
App Transport Security Settings - Allow Arbitrary Loads
key with valueYES
to your info plist file.
Or open Info.plist as source code and insert this:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Author
Teragence info@teragence.com
License
ios-teragence-sdk-active is available under the EULA license. See the LICENSE file for more info.
Release notes
Product | Versions Compatible and additional computed target framework versions. |
---|---|
Xamarin.iOS | xamarinios10 is compatible. |
-
Xamarin.iOS 1.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
based on ios-teragence-sdk-background pod v 1.0.9.7