-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manifest #2
Comments
In new version it is fixed |
Thank you @AppWerft, however I then get the following error message
The example code I'm following is var GeoService = require("ti.locationtrackerservice"); var opts = { }); win.open();` |
Please use the current version. But it is still under work |
Thanks for your help. I've tried the latest dist file 2.0.5 but I'm getting this erro [ERROR] : TiApplication: (main) [60,60] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/location/LocationServices;; Titanium 7.1.0,2018/03/14 13:40,undefined Any ideas why this might be? |
You forgot to add the ti.googleservice module. |
Updated the module, still getting (on example): TiApplication: (main) [145,21494] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to create service ti.locationtrackerservice.LocationUpdatesService: java.lang.IllegalArgumentException; Titanium 7.1.1,2018/04/19 11:11,undefined |
Before the errors the log says: |
In last version was an issue. Try this one. |
Ok but you've removed the dist .zip I need to rebuild it? |
Nope, mom. |
For me it's not working this is all the log:
|
This is the Oreo issue. I'm working on it. In my local repo I have a version without notification, this version doesn't crash. |
I'll try it, but I know that Oreo blocks background service since there isn't the notification. |
The problem is the usage of the right library. I'm working on it. |
As you can see there are lot of issues in original repo: https://github.com/googlesamples/android-play-location/issues |
I found: NotificationManager works since 26. |
Well I see, so we need to wait until Appcelerator release a new SDK? |
Currently I try to bind 26 to Titanium. |
Let me know! :) |
Thanks you! It works in Nougat. The last problem is the OR€O compatibility. |
Thanks for your hard work. I'm also using it on Oreo so perhaps that's what the problem is. I was under the impression that this was for O. Sorry |
This works now for Oreo |
Ok now on Oreo works but I cannot see fired the location event (I copied all the code from home) |
And no notification appears :/ |
I'm getting this error in the console
[ERROR] : E/🚘 TiGeoLogger: (main) [1,185] locationTrackingService was null, cannot start. [ERROR] : E/🚘 TiGeoLogger: Maybe you forgot to add
to application section of manifest
However I have added it:
<android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest android:versionCode="1" android:versionName="1.0.0"> <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23"/> <uses-permission android:name="android.permission.INTERNET"/> <!-- Keeps the processor from sleeping when a message is received. --> <uses-permission android:name="android.permission.WAKE_LOCK"/> <!-- Allows the API to cache data --> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <!-- Use GPS for device location --> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <!-- Use Wi-Fi or mobile connection for device location --> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <application> <service android:enabled="true" android:exported="false" android:name="ti.locationupdatesservice.LocationUpdatesService"/> </application> </manifest> </android>
Any idea why?
The text was updated successfully, but these errors were encountered: