Fix login
This commit is contained in:
parent
94ff82b0e2
commit
5314a8826a
1 changed files with 1 additions and 0 deletions
|
@ -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
|
// 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"));
|
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://app.mapcomplete.org/land.html"));
|
||||||
startActivity(browserIntent);
|
startActivity(browserIntent);
|
||||||
|
pluginCall.resolve(); // We simply resolve without anythin
|
||||||
});
|
});
|
||||||
Databridge.addResponder("request:login", pluginCall -> {
|
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
|
// We got a request - open the browser on 'app.mapcomplete.org/land' to login in the browser, then pass the token along
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue