Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krlan2789/unity-background-location
Unity Project - LAN LiveLocation Sample
https://github.com/krlan2789/unity-background-location
android gps-tracker gps-tracking location-tracker location-tracking unity unity3d-plugin
Last synced: about 2 months ago
JSON representation
Unity Project - LAN LiveLocation Sample
- Host: GitHub
- URL: https://github.com/krlan2789/unity-background-location
- Owner: krlan2789
- Created: 2023-06-26T08:49:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-04T13:54:10.000Z (5 months ago)
- Last Synced: 2024-08-04T15:47:55.851Z (5 months ago)
- Topics: android, gps-tracker, gps-tracking, location-tracker, location-tracking, unity, unity3d-plugin
- Language: C#
- Homepage: https://erlankurnia.github.io/article/3/Android%20Background%20Location%20for%20Unity
- Size: 15.5 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unity Background Location
Background location sample project using LAN LiveLocation plugin.
## **Supported Platform**
- Android OS *(Tested on Android 10 and Android 14 devices)*
- iOS *(Coming soon)*## **Requirements and Installation**
1. Install `External Dependency Manager for Unity` :
- Follows [this](https://openupm.com/packages/com.google.external-dependency-manager/#modal-manualinstallation) step.
- Or, download and import [this](https://github.com/googlesamples/unity-jar-resolver/blob/master/external-dependency-manager-latest.unitypackage) custom package.2. Install `Live Location` using the Package Manager :
- Open the Package Manager Window.
- Click the add button in the Package Manager's toolbar.
- Choose 'Add package from git url'.
- Copy and paste `https://github.com/krlan2789/Unity-LAN-LiveLocation-Plugin.git` into the textbox, then enter.
3. Make sure minimum API Level set to `API Level 26` :
4. Check following build settings :
5. Add required-optional permissions to `Assets/Plugins/Android/AndroidManifest.xml` :
```XML
...
...
```6. Insert script below into `Assets\Plugins\Android\launcherTemplate.gradle` :
```Gradle
...
android {
...
**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS**// Requirement for Live Location
packagingOptions {
pickFirst('META-INF/okio.kotlin_module')
pickFirst('META-INF/kotlinx_coroutines_core.version')
}
// Requirement for Live Location**BUILT_APK_LOCATION**
...
}
```7. Insert script below into `Assets\Plugins\Android\mainTemplate.gradle` :
```Gradle
...
// Android Resolver Exclusions End
android {
...
**PACKAGING_OPTIONS**// Requirement for Live Location
packagingOptions {
pickFirst('META-INF/okio.kotlin_module')
pickFirst('META-INF/kotlinx_coroutines_core.version')
}
// Requirement for Live Location
}
**IL_CPP_BUILD_SETUP**
...
```8. Insert script below into `Assets\Plugins\Android\gradleTemplate.properties` :
```Properties
...
android.enableJetifier=true
# Android Resolver Properties End
**ADDITIONAL_PROPERTIES**# Requirement for Live Location
android.suppressUnsupportedCompileSdk=34
# Requirement for Live Location
```
## **Error When Some Build Settings Do Not Match**
1. `Custom Gradle Properties Template` :
2. `Custom Launcher Gradle` and `Custom Main Gradle` :