Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document in app URL sharing in MacOS #4

Open
marcoscaceres opened this issue Aug 14, 2014 · 8 comments
Open

Document in app URL sharing in MacOS #4

marcoscaceres opened this issue Aug 14, 2014 · 8 comments
Assignees

Comments

@marcoscaceres
Copy link
Contributor

screenshot 2014-08-12 11 55 14

@ernesto-jimenez
Copy link
Member

This also goes the other way around.

e.g: Citymapper has Send to Phone buttons in their web app to send the location to their native app. See: https://citymapper.com/go/hq

2014-08-15 01_35_05

They also have a JS widget which includes the "Send to phone" button.

2014-08-15 01_36_27

@marcoscaceres
Copy link
Contributor Author

Any idea what data they are sending (if any)? Or are they just using a native app URL?:

cittymapper://whatever...

@ernesto-jimenez
Copy link
Member

@marcoscaceres in this case they are probably just updating your citymaper profile and maybe sending a push notification.

The interesting thing is that this is based in regular URLs like https://citymapper.com/go/hq that open the webapp in desktop and the app in mobile if available.

In the same page apart from "Send to phone" they've got buttons to share the URL via email, twitter and facebook.

@marcoscaceres
Copy link
Contributor Author

screenshot_2014-10-23_09_43_08

@marcoscaceres
Copy link
Contributor Author

When sharing with Twitter on MacOS maps, it gives you the option to share with both Web applications and native applications.

Facebook

When sharing to Facebook, MacOS provides the same composing window as for twitter, but includes the ability to select who the post can be shared with. The con also provides the ability include location.
screenshot 2014-10-23 10 14 22

On Facebook, the post appears as follows:
screenshot 2014-10-23 10 23 34

Twitter

To share on Twitter, MacOS composes a small window which allows the user to enter their tweet, but also provide the ability to include location information.

screenshot 2014-10-23 09 46 07

The URL for the map is not actually included explicitly in the window, but rather is represented by an image of the map. This is evident in that there are only 117 characters available to the user, instead of the usual 140.

Once the user sends the tweet, the tweet and the link to Apple's mapping service gets sent to Twitter. When other users follow the link, they are then redirected to a custom protocol "maps://apple.maps.com/...". Each browser handles these URL differently. Firefox and Chrome prompt the user to launch a registered application ("external protocol request").

Chrome:
screenshot 2014-10-23 09 49 24

Firefox:
screenshot 2014-10-23 09 48 55

Discussion points:

  • MacOS knows to limit Twitter's posts to 140 character, while Facebook's posts are basically unlimited in length.
  • MacOS sharing does not make a distinction between native applications and web applications.
  • Integration with Twitter's capability to support the inclusion of location as part of a tweet.
  • Protocol handlers in browser are not very user friendly. The language used in the pop-us quite technical.

@marcoscaceres marcoscaceres changed the title Document in app URL sharing (e.g., Maps.app) Document in app URL sharing in MacOS Oct 23, 2014
@ernesto-jimenez
Copy link
Member

@marcoscaceres an interesting iOS example might be Tweetbot.

Then you long-press a link or click the share button in the in-app browser they open the system's share sheet which includes 3rd party apps.

@marcoscaceres
Copy link
Contributor Author

Interesting, can you drop in a few screenshots in a new issue? 

On October 23, 2014 at 3:22:19 PM, Ernesto Jiménez ([email protected]) wrote:

@marcoscaceres an interesting iOS example might be Tweetbot.

Then you long-press a link or click the share button in the in-app browser they open the
system's share sheet which includes 3rd party apps.


Reply to this email directly or view it on GitHub:
#4 (comment)

@ernesto-jimenez
Copy link
Member

For reference, it's issue #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants