apache / apache/cordova-plugin-network-information

network.connection.type is always unkown on iOS 13.2.2

Open
#97 8 comments 1 reaction 0 assignees View on GitHub
bug platform: ios
Dominant language
Objective-C
Stars
465
Forks
339
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem
network.connection.type is always unkown though I had connected to wifi and mobile data connection.

### What is expected to happen?
network.connection.type = "WIFI"

### What does actually happen?
network.connection.type = "unkonwn"

## Information
I followed this documentation: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-network-information/index.html

### Environment, Platform, Device
iPhone XR running on iOS 13.2.2

### Version information
Cordova version: 9.0.0 (cordova-lib@9.0.1)
node version: v12.8.1
npm version: 6.13.0

ordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-barcodescanner 0.7.4 "BarcodeScanner"
cordova-plugin-battery-status 2.0.3 "Battery"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-media-capture 3.0.3 "Capture"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-plugin-whitelist 1.3.3 "Whitelist"

## Checklist
- [X] I searched for existing GitHub issues
- [X] I updated all Cordova tooling to most recent version
- [X] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing network.connection.type on an iPhone XR running iOS 13.2.2 with cordova-plugin-network-information 2.0.2, then inspect the plugin's iOS implementation. Done means the API reports WIFI or mobile data instead of unknown for the corresponding connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, objective-c
Domain
mobile-dev, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.