Skip to content
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

Facing Crash After using geo location library #1404

Open
siddhantunico opened this issue Jan 13, 2025 · 6 comments
Open

Facing Crash After using geo location library #1404

siddhantunico opened this issue Jan 13, 2025 · 6 comments
Labels
IGNORED ISSUE TEMPLATE Please do not ignore the issue template.

Comments

@siddhantunico
Copy link

Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{6d4b0f9 u0 org.hccts.brain/com.transistorsoft.locationmanager.service.LocationRequestService c:org.hccts.brain}
at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2298)
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2266)
at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2640)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8787)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)


## Expected Behavior
we should not face any crash

## Actual Behavior
app is continuesly crashing





@christocracy
Copy link
Member

The issue template is not optional, it's required.

Your Environment

  • Plugin version:
  • Platform: iOS or Android
  • OS version:
  • Device manufacturer / model:
  • Flutter info (flutter doctor):
  • Plugin config:
PASTE_YOUR_CODE_HERE

Expected Behavior

Actual Behavior

Steps to Reproduce

Context

Debug logs

Logs
PASTE_YOUR_LOGS_HERE

@christocracy
Copy link
Member

Also see the Wiki about this

@christocracy christocracy added the IGNORED ISSUE TEMPLATE Please do not ignore the issue template. label Jan 13, 2025
@siddhantunico
Copy link
Author

I read documentation, but it does not give a clear idea how I can solve this issue?

@christocracy
Copy link
Member

The first step is to boot your app with Android’s StrictMode enabled. Have you done so?

@siddhantunico
Copy link
Author

Will try this first and let you know.

@christocracy
Copy link
Member

It’s exactly what the wiki told you to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IGNORED ISSUE TEMPLATE Please do not ignore the issue template.
Projects
None yet
Development

No branches or pull requests

2 participants