I
I
Ivan2022-03-05 13:46:37
JavaScript
Ivan, 2022-03-05 13:46:37

How to return to the application that made the request to the browser after it has been completed?

Good afternoon,
there was such a question, there is a mobile application that is written in ReactNative, from which a request is made to the server by opening a browser (server on django), on the page that opens, it executes some javascript code from a remote server (this happens in the form of opening windows and entering information) , then it finishes processing and an empty browser window appears in front of me, and I need the browser to close or the focus to be transferred to the application that sent the request, tell me how can this be done with less blood?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mopsicus, 2022-03-05
@mopsicus

It seems that if you set up the scheme in the application to process certain links, then you can, at least in iOS. Google Universal links.

V
Vladimir Korotenko, 2022-03-05
@firedragon

What does not suit the button now you can close this window?
https://developer.mozilla.org/ru/docs/Web/API/Wind...
and why don't you make an Ajax request and draw everything in the application?

K
Kirill Makarov, 2022-03-06
@kirbi1996

Deeplinking I would look in this direction

D
davidnum95, 2022-03-07
@davidnum95

Why not use WebView?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question