background_locator icon indicating copy to clipboard operation
background_locator copied to clipboard

callbackhandle value was Int.

Open argo1 opened this issue 3 years ago • 1 comments

Hi.

I encountered a problem that my initCallback was not called when I registered for location updates. After some investigation, I found out that the number value for my callback was small enough (2102889447) that it was "Int" not "Long". So this code:

(args[Keys.ARG_INIT_CALLBACK] as? Long)?.let { initCallbackHandle ->

ended up as null and the callback was not initialized. For testing, I changed this code to as? Int and everything worked fine. Might be that same problem exists with other callbacks.

argo1 avatar Aug 04 '21 18:08 argo1

Hi @argo1 Thank you for opening an issue.

The problem is really strange. In theory Int should be castable to Long without any problem. I'll try to find a fix for this

mehdok avatar Aug 10 '21 04:08 mehdok