question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin crashes the App in Android platform

See original GitHub issue

Your Environment

  • Plugin version: 2.2.5
  • Platform: Android
  • OS version: Android 6
  • Device manufacturer and model: Asus Selfie
  • Cordova version (cordova -v): 6.4.0
  • Cordova platform version (cordova platform ls): android 6.0.0
  • Plugin configuration options:

{ desiredAccuracy: 100, stationaryRadius: 100, distanceFilter: 100, maxLocations: 1000, stopOnTerminate: false, // Android only section locationProvider: backgroundGeolocation.provider.ANDROID_ACTIVITY_PROVIDER, interval: 60000, fastestInterval: 5000, activitiesInterval: 10000, notificationTitle: "Nearby promotions notifications active.", notificationText: "We will notify you of nearby promotions.", notificationIconColor: "#002661", notificationIconSmall: "icon_small", notificationIconLarge: "icon_large", // iOS only pauseLocationUpdates: false }

Context

I have build an app which was working as expected with your plugin but after update in Android studio it crashes the app. When I install the app with this plugin it always says “Unfortunately [App name] has stopped”. Without your plugin the app runs as expected. Please help.

This is what I have in Android SDK Manager

screen shot 2017-02-18 at 1 45 26 pm

Steps to Reproduce

  1. Build app with your plugin
  2. Configure your plugin and call the function backgroundGeolocation.start();
  3. It will crash the app with message “Unfortunately [App name] has stopped”

Debug logs

This is the logcat output. App ID is com.sirkle.app logcat.txt

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
abner-serafimcommented, Mar 27, 2017

I resolved with an update of the “phonegap-plugin-push”, because “phonegap-plugin-push” updated from “com.google.android.gms:play-services-gcm:9.8+” to “com.google.android.gms:play-services-gcm:10.2+” and resolved

1reaction
gustavo-iniguez-goyacommented, Mar 20, 2017

The stacktrace of the error is practically the same than this one: https://stackoverflow.com/a/41140199

Besides what mauron85 has said, check that answer (and the accepted one) and see if it helps you. Good luck 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
[Android] App crashes after upgrading to 2.10.x using ... - GitHub
Seems like whenever there is another PlatformView active (tested with WebView plugin) and that view is disposed app is crashing.
Read more >
Android Gradle Plugin 7.0.2 crashes app on ... - Issue Tracker
Android Gradle Plugin 7.0.2 crashes app on Android 4 and 5 devices with Verifier rejected class due to bad method.
Read more >
[Camera Plugin] App crashes after confirming picture
I take the picture, see its preview and once I click OK, the app crashes. I've been noticing these errors: My phone is...
Read more >
Android Crash Reporting & Error Monitoring | Bugsnag Platform
Know when your app crashes. Automatically get alerts when your users see crashes. Bugsnag's Android plugin captures unhandled and handled exceptions in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found