Closed al-bezd closed 2 years ago
@al-bezd please format code json[Keys.ARG_PROVIDER] ?? "",
@al-bezd , пожалуйста, отформатируйте код
json[Keys.ARG_PROVIDER] ?? "",
I don't quite understand what I need to do? can you write in more detail?
This other open PR achieves essentially the same thing. I think setting an emptry String is not a recommended approach, as it may lead to unexpected behaviour down the line.
Making it nullable instead (like the other PR now does) will also resolve the issue, but in a way that's more logical to understand, I think.
As an aside, I think the other person wanted you to add spaces, so go from json[Keys.ARG_PROVIDER]??""
to json[Keys.ARG_PROVIDER] ?? ""
null results in an error, since everything happens on the side of the package, I get nothing but an error
This other open PR doesn't solve my problem
Oh that's interesting, it logically should work. I'll write up a comment over there then. I see you made a new PR instead of updating this one, so I think you can safely close this PR
pump, facing the same issue where json[Keys.ARG_PROVIDER] is null
Hi @hieudz, you should hop on the version 2 of this lib https://pub.dev/packages/background_locator_2
I've just seen that @Yukams. Thank you so much for your leadership
You're welcome :)
fix bug with zero ARG_PROVIDER
In my case, the provider is set to Null and because of this I cannot get the current coordinates, checking for zero and substituting an empty string solves this problem