Currently such methods as OsmOAuth.nativeGetOsmUsername()
and OsmOAuth.nativeGetOsmChangesetsCount()
doesn't provide detailed error message in case of troubles. If case of error first method returns null
or -1
.
API errors could be:
Network errors could be ignored till next API try. But errors 401 and 403 should be handled in Java/Swift code to reset authentication and ask users to relogin.
Q: How to pass error type from native code to Java/Swift? Use magic constants as return types? Or return pair of result and error code?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too