apache / apache/cordova-plugin-network-information
Correct network detection API calls deprecated on Android and iOS
- Dominant language
- Objective-C
- Stars
- 465
- Forks
- 339
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
## Problem
### What is expected to happen?
Native Android and iOS code should use not-deprecated API calls.
### What does actually happen?
Some Android and iOS native methods used are deprecated.
## Information
### Command or Code
- **Android**: [NetworkInfo](https://developer.android.com/reference/android/net/NetworkInfo) class was deprecated in API level 29
- **iOS**: _CTTelephonyNetworkInfo_ [currentRadioAccessTechnology](https://developer.apple.com/documentation/coretelephony/cttelephonynetworkinfo/1616895-currentradioaccesstechnology) property is deprecated since iOS 12.0
### Environment, Platform, Device
Android and iOS
### Version information
Current _master_ branch, version `3.0.0-dev`.
## 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
Research direction
Start by locating the Android uses of NetworkInfo and the iOS uses of CTTelephonyNetworkInfo.currentRadioAccessTechnology, then consult the linked Android and Apple platform documentation for their replacements. Done means the native Android and iOS code no longer uses these deprecated APIs and still provides network information correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios, objective-c
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100