Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5987E200B46 for ; Sat, 16 Jul 2016 18:02:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5848C160A6C; Sat, 16 Jul 2016 16:02:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A6959160A52 for ; Sat, 16 Jul 2016 18:02:26 +0200 (CEST) Received: (qmail 74875 invoked by uid 500); 16 Jul 2016 16:02:25 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 74863 invoked by uid 99); 16 Jul 2016 16:02:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jul 2016 16:02:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 16BE5C040A for ; Sat, 16 Jul 2016 16:02:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LpLoj2_-Upmh for ; Sat, 16 Jul 2016 16:02:24 +0000 (UTC) Received: from mail-qt0-f178.google.com (mail-qt0-f178.google.com [209.85.216.178]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id A8EA55FB3D for ; Sat, 16 Jul 2016 16:02:23 +0000 (UTC) Received: by mail-qt0-f178.google.com with SMTP id 52so73738577qtq.3 for ; Sat, 16 Jul 2016 09:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=bj/R/OuKZbt9rIhalmRoAPT0iV39QcF9UsP4C3wKoe4=; b=sOM1/jDrJd2mMbqYlR9iMT+hbVq9J8hsIKcaqZCR6u9WCWwm9cw3xHfTUDmplCiQdC X9XbZDxKKjYgu2rkD98HlBKTBRjyqZ9zKS/oatTQqxuPTlJCI6UX2DyzuE9CucsvCbTL F7HnupHrG577llhZtJ6Ik7l23pCt52pqG2/DQPIc8Wn6O36PAKIDNEPkrmNuo2nJCwTn K/cg7QruJWIFjNCjvG8WaVlftjlL3YdmKX4ipSDOqFGOIWwpVh2sx/mUJMHpsSOkgsoQ ZMjAyyEP2z2slpE+jy2MRgHAJs2U/XnUbVT04kR+lwaoqXS/rSEFAOLHIsRLV0+Tsj06 kcaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bj/R/OuKZbt9rIhalmRoAPT0iV39QcF9UsP4C3wKoe4=; b=lhFwsoKIqU28iSNMsoaIxfMpfse8Eb4rK46eSqL0gwwiv20V/y8DQdARCYlQabaJzY UTK2I0PYnqqkFykVPAkGq9yYYw5mN3nkJbtb01uJEbGtRWWm8w4Y2W4t5UZSwsp3D2Zz 3hr/pAKuIcmkxP9c1u9vOV8xnIyVEadyeHJgZjJGI2XvL6srl7ZwLZzn7RHOeL045C2w 7XAX55JFQ0U0ZkASPROf5JfQ2u+3ompCt1jHe5BIt+kIgixz7w2aIwB/NBH59LErZEY2 2au6xYk5XHOd3briKDekSZdjIot2iA1oTEdSSN/pgIJup2vvbCIwjDN10pHqFsWTn8M5 JSiw== X-Gm-Message-State: ALyK8tK4jD1fbkjeVi2RVMF6p2j0vY8rdesu8Jhr6rYpadIaQtja3KBHJeo66hCs/u96VllcjvOqU7OAZG8ygg== X-Received: by 10.200.46.122 with SMTP id s55mr38902002qta.80.1468684942474; Sat, 16 Jul 2016 09:02:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.178.7 with HTTP; Sat, 16 Jul 2016 09:02:22 -0700 (PDT) From: julio cesar sanchez Date: Sat, 16 Jul 2016 18:02:22 +0200 Message-ID: Subject: opinion about a bug fix To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a113d67da488a730537c2dc11 archived-at: Sat, 16 Jul 2016 16:02:27 -0000 --001a113d67da488a730537c2dc11 Content-Type: text/plain; charset=UTF-8 I'm looking into this issue https://issues.apache.org/jira/browse/CB-11178 The problem is on iOS 9 you can no longer query for schemes unless you add them to the info.plist under the LSApplicationQueriesSchemes key. When the inAppBrowser plugin is called with _system option this code is called: *- (**void**)openInSystem:(**NSURL***)url* *{* *if** ([[**UIApplication* *sharedApplication**] **canOpenURL**:url]) {* * [[**UIApplication* *sharedApplication**] **openURL**:url];* * } **else** { **// handle any custom schemes to plugins* * [[**NSNotificationCenter* *defaultCenter**] **postNotification**:[* *NSNotification* *notificationWithName**:* *CDVPluginHandleOpenURLNotification* *object**:url]];* * }* *}* So, it fails on iOS 9 as fb scheme is not in the info.plist I have 3 options here: 1. Document that on iOS 9 you have to add the urls to the info.plist 2. Document that you don't need inAppBrowser plugin to open a 3rd party app, you just need to use an a tag element with the url scheme on the href 3. Change the code to *- (**void**)openInSystem:(**NSURL***)url* *{* * [[**UIApplication* *sharedApplication**] **openURL**:url];* *}* This will open the app without querying, but we miss the else. I'm not sure why that code is there or if it's used anywhere, it's been there since the beginning of the github repo, it sends a notification with the url scheme in case some other plugin can do something with the url scheme, but I don't think it makes much sense as you are trying to open an external app and that code is to handle the url inside the app. So, opinions? --001a113d67da488a730537c2dc11--