L
L
lexstile2021-07-04 00:02:59
PHP
lexstile, 2021-07-04 00:02:59

How to make a redirect to the vk application through php (open the link through the application)?

I do in php:

header('Location: https://vk.com/app1111#payId-' . $tcp_id);

On android throws the default browser on the authorization page.
On iOS opens through webview at all (dark theme is not applied in my case).

Tried like this:
header('Location: vk://vk.com/app1111#payId-' . $tcp_id);

It worked correctly on android, on iOS it opened via webview, as before (photo below).

Purely theoretically, I would be able to recognize the platform, but when the application is opened through a webview and is not applied by themes, I am also not particularly happy with it.

Here, by the way, is the upper part of the screen, as it opened on iOS (you can see under the battery icon and the abbreviations LTE: a cross and a vertical bar):
60e0d02ca1051124831632.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question