Custom url scheme not working (for first time) IOS applicaiton

i have created one distribution application also register custom URL scheme. First time after I installed application, and try custom URL link, it does not work.

However if I lunch the application manually it will prompt me below mentioned message


Are you sure you want to open the application ...from the developer iphone distribution ...?


i will click on continue, and after that custom URL link works fine with my application.


Can Custom url link launch the application directly on installation (without manually launch application and contiue)?


is there any settings, so we can make the prompt message off. So it will not prompt message.


also i had tried to create new application from another enterprise account, and deploy on other server; then it do not prompt that message, but unable to figure out the reason .



Thanks

iPhone 4, iOS 4

Posted on Aug 3, 2012 7:12 AM

Reply
5 replies

Aug 3, 2012 6:25 PM in response to vrparekh

Are you exactly following the guidance in the iOS App Programming Guide for Implementing Custom URL Schemes? Do you get the same message the first time, no matter whether app has been loaded or not? Are you really using iOS 4 per your profile?


"If your app is not running when a URL request arrives, it is launched and moved to the foreground so that it can open the URL. The implementation of your application:didFinishLaunchingWithOptions: method should retrieve the URL from its options dictionary and determine whether the app can open it. If it can, return YES and let your application:openURL:sourceApplication:annotation: (or application:handleOpenURL:) method handle the actual opening of the URL.

Aug 6, 2012 4:53 AM in response to Llessur999

Thanks,


yes i have implemented Custom URL Schemes same way; it is not working first time only after that it is working fine.


as i said above, let say i install otasetup from any webserver, now there is a webpage where it redirects to my custom url location when click on link, when i click on link, it will do nothing.


neigher it opens up application nor it gives error like safari can not open the page.


now, i launch application, it will prompt msg., after clicking on continue, i go to that webpage and click on link, it will open application.


so seems until i launch application and click on continue, custom url/application is not activate.

Aug 6, 2012 8:34 AM in response to vrparekh

Strange behaviour, as i create build of same application with two different enterprise account profile.


for one profile, when first time i launch application it prompts message, but for another profile it does not prompt message.


i want the behaviour like message should not be prompt. and custom url can work immediatly after installation.


can anybody please help me, is there any configuration settings, certificate/provisioning profile settings?

Aug 6, 2012 9:08 AM in response to vrparekh

i create build of same application with two different enterprise account profile.

Note sure what create build means. I assume you are talking about profiles created in iPCU. I don't see any iPCU restrictions that would affect custom URL's. What is the difference between the profiles, for example do both have Allow installing apps enabled?


Is the behavior difference dependent on what profile is active when the app is installed, or when the app is launched for the first time? i.e. If you install with the bad profile, then immediately switch to the good profile, does the link work?

Aug 6, 2012 10:14 PM in response to Llessur999

Create build, means i am using otasetup, to install application in device. and profile means provisioning profile,


say i have two enterprise account A and B, i have created provisioning proifle for both

Provisioning Profile A, Provisiong Profile B


now when i use acoount (to build setup and install that) A with Provisioning Profile A --> all works fine

when i use acoount (to build setup and install that) B with Provisioning Profile B --> application not active until i choose continue on prompt message i mentioned in question.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Custom url scheme not working (for first time) IOS applicaiton

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.