paco icon indicating copy to clipboard operation
paco copied to clipboard

Mobile Apps: Make experiment links open in PACO and ask to join (download JSON)

Open mhadjimichael opened this issue 9 years ago • 3 comments

Mobile Apps: Make experiment links open in PACO and ask to join (download JSON).

mhadjimichael avatar Oct 05 '15 06:10 mhadjimichael

For android: The current Android Manifest uses a custom mime type to do that. (for ExperimentDetailActivity)

Should we just make it work with a custom URI scheme, like pacoapp://experiment/12345678 (reference http://stackoverflow.com/questions/18102528/android-how-to-create-custom-url-scheme-with-the-given-format-myapp-http )? (It will require slight changes to the intent-filter to handle the custom URI scheme)

For iOS: This will make the Custom URI scheme compatible with iOS devices ( http://www.idev101.com/code/Objective-C/custom_url_schemes.html ), and in turn a very easily shareable URI.

mhadjimichael avatar Oct 05 '15 07:10 mhadjimichael

This mime type is used by the system for other things, so we should add another intent filter to handle the new uri scheme that we want to capture, especially if it will allow us to match the iOS scheme.

On Oct 5, 2015, at 12:00 AM, Marios Hadjimichael [email protected] wrote:

The current Android Manifest uses a custom mime type to do that. (for ExperimentDetailActivity)

Should we just make it work with a custom URI scheme, like pacoapp://experiment/12345678 (reference http://stackoverflow.com/questions/18102528/android-how-to-create-custom-url-scheme-with-the-given-format-myapp-http )? (It will require slight changes to the intent-filter to handle the custom URI scheme)

This will make the Custom URI scheme compatible with iOS devices ( http://www.idev101.com/code/Objective-C/custom_url_schemes.html ), and in turn a very easily shareable URI.

— Reply to this email directly or view it on GitHub.

BobEvans avatar Oct 06 '15 22:10 BobEvans

Does this custom URI scheme work in Android currently? How am I supposed to deliver the URI to other participants? The link does not seem to work in chrome on android.

cjunekim avatar Sep 21 '16 07:09 cjunekim