Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58EE518358 for ; Wed, 15 Jul 2015 18:12:59 +0000 (UTC) Received: (qmail 60289 invoked by uid 500); 15 Jul 2015 18:12:59 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 60247 invoked by uid 500); 15 Jul 2015 18:12:59 -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 60233 invoked by uid 99); 15 Jul 2015 18:12:58 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2015 18:12:58 +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 426BDC0098 for ; Wed, 15 Jul 2015 18:12:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.871 X-Spam-Level: ** X-Spam-Status: No, score=2.871 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=google.com header.b=ithgZLne; dkim=pass (1024-bit key) header.d=chromium.org header.b=BK79G2xj Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id QFMJlrjAHmJp for ; Wed, 15 Jul 2015 18:12:52 +0000 (UTC) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A9FFC212C5 for ; Wed, 15 Jul 2015 18:12:52 +0000 (UTC) Received: by iggf3 with SMTP id f3so42613328igg.1 for ; Wed, 15 Jul 2015 11:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=yuzvMofemMOpNbHv68YLLLi+7SmJXZh6on5VgKk9XsQ=; b=ithgZLneTxNGMxmL4N9hSWgJn4LET9vx0VyuLNdNYcCxgqZ6cHNYF1jLoV5e3jZAmq 5WbiZfXQblJjlJjXdxcn09x0JqFXg/6pZiwFrBve+bQq0FVGH6SSJzYanJVdJvbINSBy N2bKTInazU3IlzNsgZ2cFFTXrTR/y3XurOnksiOBNEs57Yx4vQ6TR5PyQVmasPjVM34U bHIM0mQSzNMBrQMJb2gXNeGD9pK/72epd6P3lHjTh+c9nfOgq6vl9bnJyDP3WBXBaZQz rX5UEpHWd/Fhh/xZ7DmUI7aNzsTznCRl2qkb7JlkSVWWOjSiH6VjOiFxHzrhfB3mfi3V ZjmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=yuzvMofemMOpNbHv68YLLLi+7SmJXZh6on5VgKk9XsQ=; b=BK79G2xjEX9AIEuesOPpLi/fSMr7FMw+17NpaDrgHzdRoQ+MgZVFRF1ruDJ6mmu50E M7nU/JZByMKFkXi6tWWGRxg7TuRWLN+mlVnBARB2qKSz+NQ10oA1lR1Lhp5GhcPOqDXV YeEXX5oV+YLYtvjNVGBL8gM/rU0Y+2Jn8wazI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=yuzvMofemMOpNbHv68YLLLi+7SmJXZh6on5VgKk9XsQ=; b=IiYblHoMckQL6fNbj4U55JKOnbafVA/G9WPqosg4/6Lf/CCNuRL/hqW3bStH422D6O rgeqvqacWQjBFZancjBOPMNXv5jQVXjA2Gnx5X3pyJNVEdadUPt3qK32gxVCvvekCaXa UBkMpkJSh6wa4F43lRnMoOwD+6+igISD9RXuIUzVchzQ0EQ576A0flCDmgrURVal4D5e dpI2YPRiXIDnmZaRgbfPRXElUtlwGNCDvmypvzBqyVyBVCvMzRDwrSBelop5wwCFpgM+ si4thOepodannAmoKum/j9/G5vZE0VkZC6jWDXhzTW4M+SaarKEwqw84vRDagt3dwTIJ 5CxA== X-Gm-Message-State: ALoCoQnMVNsEp7sfiQQMDX0Fd4X0prOkuHS0JdFMsnOjAGE1jgmsJjeQycQazq220uQoFEI/aXSr X-Received: by 10.50.102.68 with SMTP id fm4mr12231024igb.25.1436983972062; Wed, 15 Jul 2015 11:12:52 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.36.130.198 with HTTP; Wed, 15 Jul 2015 11:12:32 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Wed, 15 Jul 2015 14:12:32 -0400 X-Google-Sender-Auth: SUvwMLXobqmOUrOUJDb1qGXChkE Message-ID: Subject: Re: [Android] Working with M - An update To: dev Content-Type: multipart/alternative; boundary=047d7b10c9f93426a1051aede720 --047d7b10c9f93426a1051aede720 Content-Type: text/plain; charset=UTF-8 Thanks for looking into this Joe! The runtime permissions is quite a big change! M is still in preview, so if you find any webview bugs, please feel free to send me a repro app and I'll do my best to get it fixed. In terms of Cordova API changes, here's some thoughts on your branch: - Plugins may want to request different perms at different times, so I'd remove new functions from CordovaPlugin except onRequestPermissionResult - Might be better to copy how CordovaInterfaceImpl does startActivityForResult/onActivityResponse rather than have PluginManager do it. On Tue, Jul 14, 2015 at 6:07 PM, Joe Bowser wrote: > So, since Cordova-Android wasn't completely killed off by Google at the > last Google IO like I thought it would be, we're going to have to make sure > it's compatible with Android M (Marshmellow? Marzipan?). The good news is > that this only affects the following plugins: > > MediaRecorder > Contacts > File > FileTransfer > Geolocation > > Now, for the really bad news. We might have to write a Geolocation plugin > for Android again, because Google's Android WebView doesn't play nice with > Android's new permission system, and even when you do grant the application > containing the process permission to use geolocation, you still get a > location error. I still have to test this further, but it also may be > possible that file URIs no longer have the ability to get the geolocation > either, which would be weird, since this would be a Chrome thing and not an > Android thing. > > Given our poor track record of maintaining plugins in general, and the > weird errors with Geolocation, I'm not really wanting to bring back the > code, so I'm hoping that this gets resolved in M3 with the next dev version > of M. > > But so far, I have the changes that I made to Cordova on a private branch > on Github that people can see here: > > https://github.com/infil00p/cordova-android/tree/m-compat > > Let me know if you have any questions. I'm not sure whether this makes > perfect sense yet, but I think these API changes indicate that we should > probably bump the version to 5.0 once M comes out. > > Thoughts? Questions? > --047d7b10c9f93426a1051aede720--