Fix login

This commit is contained in:
Pieter Vander Vennet 2025-04-27 22:39:20 +02:00
parent 94ff82b0e2
commit 5314a8826a

View file

@ -47,6 +47,7 @@ public class MainActivity extends BridgeActivity {
// We got a request - open the browser on 'app.mapcomplete.org/land' to login in the browser, then pass the token along
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://app.mapcomplete.org/land.html"));
startActivity(browserIntent);
pluginCall.resolve(); // We simply resolve without anythin
});
Databridge.addResponder("request:login", pluginCall -> {
// We got a request - open the browser on 'app.mapcomplete.org/land' to login in the browser, then pass the token along