Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12937

[iOS] Add new CDVPlugin method to handle incoming urls including sourceApplication and annotation

    Details

      Description

      The App is currently using the

      - (BOOL)application:(UIApplication*)application openURL:(NSURL*)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation

      to handle incoming URLs.

      However the notification posted with id CDVPluginHandleOpenURLNotification contains only the url.

      I would like to add alongside the current notification a new notification which posts a NSDictionary instead that contains the url, sourceApplication and annotation and if makes sense I would also like create a new method like the current handleOpenURL which will provide the NSDictionary to however wants to use.

      I propose this solution because it does not introduce any breaking changes. I hope the impact is small and easy to add to the next release. The work is already done in my local fork I will just need to create a branch and ask for a pull request if everyone is happy to proceed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shazron Shazron Abdullah
                Reporter:
                georgiosgalatoulas Georgios Galatoulas
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: