treehouses / remote

⚡ control Raspberry Pi from Android Device through Bluetooth ⚡
https://play.google.com/store/apps/details?id=io.treehouses.remote
GNU Affero General Public License v3.0
62 stars 28 forks source link

all: foreground when location allowed (fixes #1992) #2004

Closed Okuro3499 closed 4 months ago

Okuro3499 commented 4 months ago

fixes #1992 https://github.com/treehouses/remote/assets/64019708/2355b914-b7b4-49e6-a4cb-1fbb36707e87

xyb994 commented 4 months ago

It seem to be crashing when:

FATAL EXCEPTION: main
Process: io.treehouses.remote, PID: 15946
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{fb5e5a6 u0 io.treehouses.remote/.utils.GPSService}
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2190)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:233)
    at android.app.ActivityThread.main(ActivityThread.java:8068)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
Okuro3499 commented 4 months ago

@xyb994 try unistalling the app before building a new one. I am not getting the crash despite trying all scenarios

https://github.com/treehouses/remote/assets/64019708/aadc5983-c5f5-4b8d-b9e5-bbef423ecfe2

Okuro3499 commented 4 months ago

@dogi location is sent from this branch. See first item is my phone today