transistorsoft / cordova-background-geolocation-SampleApp

Cordova Background Geolocation Sample Application
https://www.transistorsoft.com/shop/products/cordova-background-geolocation
MIT License
122 stars 78 forks source link

SampleApp is just terminated on the android device. #20

Closed muphy closed 8 years ago

muphy commented 9 years ago

My phone is Nexus 5. I bought a premium version last night. I built successfully my ionic app based on SampleApp. I just modified widget id and appended licence value and orderId value from you. When I ran my app in my device nexus5 with typing "cordova run" in the command line, the app is shut down . And I have debugged my app with "adb logcat" and I received below error messages in the console.

11-17 16:01:19.702 19065 19065 I TSLocationManager: - PRUNE -1days
11-17 16:01:19.723 19065 19065 I TSLocationManager: - GooglePlayServices connected
11-17 16:01:19.732 19065 19065 D AndroidRuntime: Shutting down VM
11-17 16:01:19.733 19065 19065 E AndroidRuntime: FATAL EXCEPTION: main
11-17 16:01:19.733 19065 19065 E AndroidRuntime: Process: xyz.zolywood.gpstracker.ionic, PID: 19065
11-17 16:01:19.733 19065 19065 E AndroidRuntime: java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
11-17 16:01:19.733 19065 19065 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:1599)
11-17 16:01:19.733 19065 19065 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:1552)

So I built your SampleApp but I had received same error messages.

I wondered if ACCESS_FINE_LOCATION permission was not appended, so I opened config.xml file and androidmanifest.xml file. All permissions were appended.

How can I solve this problem?

thanks.

christocracy commented 9 years ago

Will look first thing today.

Ihe plugin automatically adds required permissions

On Tuesday, November 17, 2015, JongAm Oh notifications@github.com wrote:

My phone is Nexus 5. I bought a premium version last night. I built successfully my ionic app based on SampleApp. I just modified widget id and appended licence value and orderId value from you. When I ran my app in my device nexus5 with typing "cordova run" in the command line, the app is shut down . And I have debugged my app with "adb logcat" and I received below error messages in the console.

11-17 16:01:19.702 19065 19065 I TSLocationManager: - PRUNE -1days 11-17 16:01:19.723 19065 19065 I TSLocationManager: - GooglePlayServices connected 11-17 16:01:19.732 19065 19065 D AndroidRuntime: Shutting down VM 11-17 16:01:19.733 19065 19065 E AndroidRuntime: FATAL EXCEPTION: main 11-17 16:01:19.733 19065 19065 E AndroidRuntime: Process: xyz.zolywood.gpstracker.ionic, PID: 19065 11-17 16:01:19.733 19065 19065 E AndroidRuntime: java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations. 11-17 16:01:19.733 19065 19065 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1599) 11-17 16:01:19.733 19065 19065 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1552)

So I built your SampleApp but I had received same error messages.

I wondered if ACCESS_FINE_LOCATION permission was not appended, so I opened config.xml file and androidmanifest.xml file. All permissions were appended.

How can I solve this problem?

thanks.

— Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-SampleApp/issues/20 .

Snet form Gmail Mobile

christocracy commented 9 years ago

Are you forgetting to execute "build"?

$ cordova build android
$ cordova run android
christocracy commented 9 years ago

Also, what version Cordova?

christocracy commented 9 years ago

Or maybe you've got the free version installed? Whenever installing a new version of any plugin, you must remove the previous version first.

@see "When in Doubt..."

muphy commented 9 years ago

ionic version is maybe 1.7.5. and I didn't forget order of the build and run command. I am home now. my home pc is window 7. my office pc is mac.

muphy commented 9 years ago

I will rebuild the sampleapp in my home pc. and I will be touch with you.

christocracy commented 8 years ago

update?