Built custom sharer on iOS safari

I built a custom sharer module on iOS Safari. Without using iOS8 latest Action module, I used bookmark to emulate this function.

I had already sharer module in my Apps, that shows a window, enter text, embed link, and share to many social sites, such as Facebook and Twitter. I had another module so called GooGLShortenURL that can request shorten URL from goo.gl, embed in my text, share to Twitter which had character limit (140 characters).

To add the bookmark into iOS Safari, I found an intuitive way, but need Mac Apple Safari, built in iCloud works along with iOS Safari, I can then add book mark through Mac Apple Safari, edit the address bar, put in some JavaScript, and then save, and then iOS Safari will get auto synced book mark.

Screen Shot 2014-08-31 at 12.10.00 pm

The JavaScript will open my apps, using iOS Custom URL Scheme set on iPhone/build/pList file.

Screen Shot 2014-08-31 at 12.11.35 pm

I then have my code to handle incoming URL scheme request.

Screen Shot 2014-08-31 at 12.12.22 pm

In my handler, interpret the incoming URL scheme request, based on parameters, fire up Sharer module, then start sharing. I can share to many social sites just in one click.

Photo 31-8-14 12 13 35 pm

Author: fyhao

Jebsen & Jessen Comms Singapore INTI University College Bsc (Hon) of Computer Science, Coventry University

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.