Bug 15862 - UIApplicationDelegate.HandleOpenUrl should be deprecated
Summary: UIApplicationDelegate.HandleOpenUrl should be deprecated
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 6.9.5.x
Hardware: PC Mac OS
: --- normal
Target Milestone: 7.0.6
Assignee: Sebastien Pouliot
Depends on:
Reported: 2013-10-31 17:44 UTC by Larry O'Brien
Modified: 2013-12-24 06:42 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Comment 1 Sebastien Pouliot 2013-11-01 09:16:33 UTC
That true but it needs testing as both are not marked `abstract`. That means the default UIApplicationDelegate implements both methods and (in general) iOS should query if the newer version exists to call it.

IOW it's likely possible that HandleOpenUrl is never called on iOS 4.2+. If that's the case then the documentation needs to reflect this (just adding [Obsolete] is, generally, something optional to fix).
Comment 2 Sebastien Pouliot 2013-11-28 09:04:48 UTC
Fixed in master ed978a203b34dd0cc3ca8e38d518f6fcb47eab84

note: according to the header files it will be deprecated "at some point". It's likely the reason it's not in a separate _deprecated_ page in Apple's documentation web site.
Comment 3 PJ 2013-12-11 18:46:00 UTC
This fix is planned to be released with Xamarin.iOS 7.0.6, which should hit the beta channel before December 23rd.
Comment 4 Sadik Ali 2013-12-24 06:42:09 UTC
I have verified this issue following are the steps:

1. Created ios sample project 
2. searched class UIAplicationDelegate.
3. Observed that [Obsolete] attribute marked with Override message.

Refer Screen shot:  http://screencast.com/t/7IeOGdAswie

Checked With:

All Mac
XS 4.2.3 (build 23)
X iOS: