From application POST data to default iOS browser

I have an iOS application with a long list of items that will be sent to a remote web server. The list may be long enough to exceed the recommended length for a GET request. After the list is published, the user can log in to his account and manage the list.

Ideally, I would like the POST list to be included in Safari (or another default browser), so if the user is already logged in, they don’t need to do this again, and they have access to all the usual web browsers functionality.

It seems to work with UIWebView, but not the best interface.

This can be done on Android or UIWebView using this: stack overflow

+4
source share
1 answer

Do this in two steps:

  • SEND data to the server "anonymously". The server will assign some unique identifier and store the received data somewhere (database, temp file ...) associated with the identifier. Send the identifier to the client.

    Alternatively, the identifier may be provided directly by the client. To do this, make sure that this is some kind of UUID / GUID, so you have no conflicts.

  • Open the second URL (either in Safari, or perhaps better in SFSafariViewController), indicating the login process along with the identifier from step 1.

    The server can then use the identifier to search for data published in the first step.

+1

Source: https://habr.com/ru/post/1656997/


All Articles