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

[iOS] Custom URL Scheme within CONFIG.XML #71

Closed
amirudin opened this Issue Dec 13, 2012 · 30 comments

Comments

Projects
None yet
@amirudin

amirudin commented Dec 13, 2012

Feature Request:

The ability to add custom URL scheme directly into config.xml so that a native application can be launched from Safari or other applications on IOS.

Related thread:
http://community.phonegap.com/nitobi/topics/custom_url_scheme_within_config_xml

@andreassolberg

This comment has been minimized.

Show comment
Hide comment
@andreassolberg

andreassolberg Dec 13, 2012

There is a really large interest in this! Follow the linked thread to get a sense of that.

andreassolberg commented Dec 13, 2012

There is a really large interest in this! Follow the linked thread to get a sense of that.

@MikeDHarris

This comment has been minimized.

Show comment
Hide comment
@MikeDHarris

MikeDHarris Dec 13, 2012

Thanks Amir

From: amirudin [mailto:notifications@github.com]
Sent: Thursday, December 13, 2012 1:39 AM
To: phonegap/build
Subject: [build] [iOS] Custom URL Scheme within CONFIG.XML (#71)

Feature Request:

The ability to add custom URL scheme directly into config.xml so that a native application can be launched from Safari or other applications on IOS.

Related thread:
http://community.phonegap.com/nitobi/topics/custom_url_scheme_within_config_xml?utm_content


Reply to this email directly or view it on GitHubhttps://github.com/phonegap/build/issues/71.

MikeDHarris commented Dec 13, 2012

Thanks Amir

From: amirudin [mailto:notifications@github.com]
Sent: Thursday, December 13, 2012 1:39 AM
To: phonegap/build
Subject: [build] [iOS] Custom URL Scheme within CONFIG.XML (#71)

Feature Request:

The ability to add custom URL scheme directly into config.xml so that a native application can be launched from Safari or other applications on IOS.

Related thread:
http://community.phonegap.com/nitobi/topics/custom_url_scheme_within_config_xml?utm_content


Reply to this email directly or view it on GitHubhttps://github.com/phonegap/build/issues/71.

@ghost ghost assigned goya Dec 13, 2012

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 19, 2012

Can you also consider adding the ability to check for other applications URL scheme via the javascript API. This would allow phonegap app's to check if google maps is installed on an iPhone before launching a native mapping app.

In the iOS plugin:

  • (id)isUriAvailable:(NSString*)uri {
    return [NSURL URLWithString:uri]];
    }

In Android plugin:

public static boolean isUriAvailable(Context context, String uri) {
Intent test = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
return context.getPackageManager().resolveActivity(test, 0) != null;
}

Thanks,
James

ghost commented Dec 19, 2012

Can you also consider adding the ability to check for other applications URL scheme via the javascript API. This would allow phonegap app's to check if google maps is installed on an iPhone before launching a native mapping app.

In the iOS plugin:

  • (id)isUriAvailable:(NSString*)uri {
    return [NSURL URLWithString:uri]];
    }

In Android plugin:

public static boolean isUriAvailable(Context context, String uri) {
Intent test = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
return context.getPackageManager().resolveActivity(test, 0) != null;
}

Thanks,
James

@AndrewDryga

This comment has been minimized.

Show comment
Hide comment
@AndrewDryga

AndrewDryga Dec 21, 2012

+1

This is only one reason, why we cant use build.phonegap :(.

AndrewDryga commented Dec 21, 2012

+1

This is only one reason, why we cant use build.phonegap :(.

@nathanathan

This comment has been minimized.

Show comment
Hide comment
@nathanathan

nathanathan commented Feb 6, 2013

+1

@Prinzhorn

This comment has been minimized.

Show comment
Hide comment
@Prinzhorn

Prinzhorn commented Feb 13, 2013

+1

@thrar

This comment has been minimized.

Show comment
Hide comment
@thrar

thrar commented Feb 18, 2013

+1

@mattdot

This comment has been minimized.

Show comment
Hide comment
@mattdot

mattdot Mar 25, 2013

+1 ... especially with the ability to check if the url scheme is registered.

mattdot commented Mar 25, 2013

+1 ... especially with the ability to check if the url scheme is registered.

@zacheryrodgers

This comment has been minimized.

Show comment
Hide comment
@zacheryrodgers

zacheryrodgers Mar 29, 2013

+1, but this should be done with a universal plugin for all (if possible) supported devices. I have found dozens of plugins that do this, but do not want to have to compile locally. That is why I decided to use PhoneGap Build

zacheryrodgers commented Mar 29, 2013

+1, but this should be done with a universal plugin for all (if possible) supported devices. I have found dozens of plugins that do this, but do not want to have to compile locally. That is why I decided to use PhoneGap Build

@bogdanh

This comment has been minimized.

Show comment
Hide comment
@bogdanh

bogdanh commented Apr 8, 2013

+1

@goya

This comment has been minimized.

Show comment
Hide comment
@goya

goya May 14, 2013

Member

we are working on this and it will be integrated with our release of 2.7 support in build, which we are targeting for the next few weeks.

Member

goya commented May 14, 2013

we are working on this and it will be integrated with our release of 2.7 support in build, which we are targeting for the next few weeks.

@shawnmckay24

This comment has been minimized.

Show comment
Hide comment
@shawnmckay24

shawnmckay24 May 24, 2013

This issue has closed with the release of PhoneGap Build 1.8 on May 22, 2013, which supports PhoneGap 2.7.

shawnmckay24 commented May 24, 2013

This issue has closed with the release of PhoneGap Build 1.8 on May 22, 2013, which supports PhoneGap 2.7.

@klemetsson

This comment has been minimized.

Show comment
Hide comment
@klemetsson

klemetsson Jun 5, 2013

is this supported now in PhoneGap Build 1.8? and if so, how?

klemetsson commented Jun 5, 2013

is this supported now in PhoneGap Build 1.8? and if so, how?

@orenagiv

This comment has been minimized.

Show comment
Hide comment
@orenagiv

orenagiv Jun 13, 2013

Hey guys,
Have the docs been updated?
How can the custom URL scheme be set from the config.xml of PhoneGAP Build?

orenagiv commented Jun 13, 2013

Hey guys,
Have the docs been updated?
How can the custom URL scheme be set from the config.xml of PhoneGAP Build?

@jbjorge

This comment has been minimized.

Show comment
Hide comment
@jbjorge

jbjorge Jun 18, 2013

@orenagiv it's added to the documentation under "Custom URL Schemes"

jbjorge commented Jun 18, 2013

@orenagiv it's added to the documentation under "Custom URL Schemes"

@jbjorge

This comment has been minimized.

Show comment
Hide comment
@jbjorge

jbjorge Jun 18, 2013

Are there any plans for supporting this feature on android as well, or should i create a feature request?

jbjorge commented Jun 18, 2013

Are there any plans for supporting this feature on android as well, or should i create a feature request?

@klemetsson

This comment has been minimized.

Show comment
Hide comment
@klemetsson

klemetsson commented Jun 18, 2013

Also, are there any plans for supporting Windows Phone schemes too?

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987%28v=vs.105%29.aspx

@amirudin

This comment has been minimized.

Show comment
Hide comment
@amirudin

amirudin Jun 19, 2013

Feature implemented.
Documentation available here: https://build.phonegap.com/docs/config-xml#url_schemes

amirudin commented Jun 19, 2013

Feature implemented.
Documentation available here: https://build.phonegap.com/docs/config-xml#url_schemes

@shawnmckay24

This comment has been minimized.

Show comment
Hide comment
@shawnmckay24

shawnmckay24 Jun 19, 2013

Feature implemented.
Documentation available here: https://build.phonegap.com/docs/config-xml#url_schemes
Issue Closed.

shawnmckay24 commented Jun 19, 2013

Feature implemented.
Documentation available here: https://build.phonegap.com/docs/config-xml#url_schemes
Issue Closed.

@jbjorge

This comment has been minimized.

Show comment
Hide comment
@jbjorge

jbjorge Jun 28, 2013

@shawnmckay24 @amirudin There is no mention of how to access the url it was opened from (to parse params) in the documentation. Care to enlighten/update the docs?

jbjorge commented Jun 28, 2013

@shawnmckay24 @amirudin There is no mention of how to access the url it was opened from (to parse params) in the documentation. Care to enlighten/update the docs?

@MikeDHarris

This comment has been minimized.

Show comment
Hide comment
@MikeDHarris

MikeDHarris Jun 28, 2013

Please see https://build.phonegap.com/docs/config-xml and specifically the section 'Custom URL Schemes'. There is also a link to the Apple Developer documentation which describes how to implement custom url schemes.

MikeDHarris commented Jun 28, 2013

Please see https://build.phonegap.com/docs/config-xml and specifically the section 'Custom URL Schemes'. There is also a link to the Apple Developer documentation which describes how to implement custom url schemes.

@razwasserstein

This comment has been minimized.

Show comment
Hide comment
@razwasserstein

razwasserstein Aug 25, 2013

What about android?

razwasserstein commented Aug 25, 2013

What about android?

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Sep 7, 2013

+1, especially for Android. Also, please allow params to be passed to the instance.

Example:
http://m.site.com/params1/param2/param3
OR
http://m.site.com/script.ext?params1=sample&param2=sample2&param3=sample3

Essentially everything after the domain name should be passed and/or parsed and sent to the app. A good example of this happening on both iOS and Android is with the Redfin Real Estate app.

ghost commented Sep 7, 2013

+1, especially for Android. Also, please allow params to be passed to the instance.

Example:
http://m.site.com/params1/param2/param3
OR
http://m.site.com/script.ext?params1=sample&param2=sample2&param3=sample3

Essentially everything after the domain name should be passed and/or parsed and sent to the app. A good example of this happening on both iOS and Android is with the Redfin Real Estate app.

@jbjorge

This comment has been minimized.

Show comment
Hide comment
@jbjorge

jbjorge Sep 10, 2013

+1 for android.

jbjorge commented Sep 10, 2013

+1 for android.

@klemetsson

This comment has been minimized.

Show comment
Hide comment
@klemetsson

klemetsson Sep 10, 2013

+1 for Android and Windows Phone

klemetsson commented Sep 10, 2013

+1 for Android and Windows Phone

@migswd

This comment has been minimized.

Show comment
Hide comment
@migswd

migswd Sep 18, 2013

+1 for android !

migswd commented Sep 18, 2013

+1 for android !

@migswd

This comment has been minimized.

Show comment
Hide comment

migswd commented Sep 18, 2013

Should we use webintent for android thats it ??
https://github.com/phonegap/phonegap-plugins/tree/master/Android/WebIntent/

@EddyVerbruggen

This comment has been minimized.

Show comment
Hide comment
@EddyVerbruggen

EddyVerbruggen Oct 18, 2013

Member

Android support is exactly what I need as well, so I have a plugin pending for review for Phonegap < 3 (and I will upgrade to > 3 once it's reviewed).
The source is here, this is how you will be able to use it: https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin#3-usage

Member

EddyVerbruggen commented Oct 18, 2013

Android support is exactly what I need as well, so I have a plugin pending for review for Phonegap < 3 (and I will upgrade to > 3 once it's reviewed).
The source is here, this is how you will be able to use it: https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin#3-usage

@jbjorge

This comment has been minimized.

Show comment
Hide comment
@jbjorge

jbjorge Oct 22, 2013

@EddyVerbruggen Thanks a million! Hope it goes through approval! :)

jbjorge commented Oct 22, 2013

@EddyVerbruggen Thanks a million! Hope it goes through approval! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment