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 050E2200C30 for ; Tue, 7 Mar 2017 09:15:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 03A1B160B74; Tue, 7 Mar 2017 08:15:37 +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 4E940160B68 for ; Tue, 7 Mar 2017 09:15:36 +0100 (CET) Received: (qmail 55450 invoked by uid 500); 7 Mar 2017 08:15:35 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 55437 invoked by uid 99); 7 Mar 2017 08:15:35 -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; Tue, 07 Mar 2017 08:15:35 +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 E384BC0115 for ; Tue, 7 Mar 2017 08:15:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-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 pUu7BMJy0zP0 for ; Tue, 7 Mar 2017 08:15:34 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CEC845FE0B for ; Tue, 7 Mar 2017 08:15:33 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 489E2E0156 for ; Tue, 7 Mar 2017 08:15:33 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 05F462416A for ; Tue, 7 Mar 2017 08:15:33 +0000 (UTC) Date: Tue, 7 Mar 2017 08:15:33 +0000 (UTC) From: "Zia Sergio (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12529) Support default 'cellular' detection into cordova-plugin-network-information for Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Mar 2017 08:15:37 -0000 [ https://issues.apache.org/jira/browse/CB-12529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15898925#comment-15898925 ] Zia Sergio commented on CB-12529: --------------------------------- Hi Joe, Ok, but in this case why the IOS version of this plugin can return "cellular" instead of "unknown" when the cellular type connection can not be detected for older IOS releases ? OnePlus 3 device (Android 7.1) connected to the cellular data network of "Orange" or "Base" belgian providers returns a technology unsupported by the plugin when 4G is available for this connection. Unfortunately I have not in my possession this device to debug what is the returned string in this case. But I have built a release of my cordova application with the purposed patch implemented for test and it works. In my opinion, when some application features need to be enabled/disabled in case of cellular connection, it is more useful to know it is a cellular connection instead of an unknown connection, even if the cellular technology can not be detected because perhaps too recent and not yet supported by your plugin. > Support default 'cellular' detection into cordova-plugin-network-information for Android > ---------------------------------------------------------------------------------------- > > Key: CB-12529 > URL: https://issues.apache.org/jira/browse/CB-12529 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin Network Information > Reporter: Zia Sergio > Priority: Minor > Labels: Android > > cordova-plugin-network-information/src/android/NetworkManager java class : > Method getType() : In case of unknown cellular network detected, returned value is TYPE_UNKNOWN (equals "unknown" string) > It seems it is better in this case that returns "cellular" string. > For this simply add a constant : > public static final String TYPE_CELL = "cellular"; > And add a 'else' statement after all 'else if' statements detecting the cellular connection sub-types : > else { > return TYPE_CELL; > } -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org