Is there a limit on the size of variables in a custom URL handler?

I need a way to transfer a ton of information (1-10kb) from email in the Mail app to my iPhone app.

I thought that I could create my own URL in the body of the letter, which, when clicked, will transmit information through a special URL handler to my application.

However, this is a lot of data. Can I pass a lot of data in a custom URL handler? for example MyApp: // load var1 = [lotsofdata] & var2 = [lotsofdata]

Or is there a better way to transfer information from the Mail application to my application?

0
source share
5 answers

I don’t know what the maximum length is, but I know that you can have very long URL data in Safari, which allows you to store images or other file data in the URL itself. If the limits are similar, you're in luck.

+1
source

The usual limit for a GET should be no more than 2083 characters in order to be safe. But it should also be a method of reading email directly from your own application, but I'm not very good at this solution.

0
source

Instead of the link in the letter, you could simply create a form that puts information instead of sending a request for receipt to your site; which will cover the length limit (if any)

0
source

The last answer assumes that you have a website for posting data. If you are trying to save things exclusively by e-mail, it would be nice to store data in an email message. You can embed images in email anyway, so why not?

0
source

After doing some research, I came across two blog posts that claim to have created large URLs that worked, although one uses the data: URL scheme and the other uses mailto : .

The best thing is probably to just try: Create a link using myapp: // with lots of data, paste it into an email and see if your application reads everything.

0
source

All Articles