tahamalas / internet_speed_test Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
It may be helpful to be able to set up and configure the server test.
My speed test returns this result
"the transfer rate 3121.395, the percent 50.0, the speed unit is SpeedUnit.Mbps. "
I am pretty sure my Internet speed is not 3121.395 Mbps.
finished with error [-1022] Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=http://ipv4.ikoula.testdebit.info:8080/../download?size=200000, NSErrorFailingURLKey=http://ipv4.ikoula.testdebit.info:8080/../download?size=200000,
Error:
The plugin internet_speed_test uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib\main.dart on sdk gphone x86 arm in debug mode...
lib\main.dart:1
e: C:\Users\siuba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\internet_speed_test-1.5.0\android\src\main\kotlin\com\tahamalas\internet_speed_test\InternetSpeedTestPlugin.kt: (50, 66): Type mismatch: inferred type is Activity? but Activity was expected
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':internet_speed_test:compileDebugKotlin'.
> Compilation error. See log for more details
I am suggesting to add a method like stopTesting();
to stop the process of getting upload and download rates.
The plugin internet_speed_test
uses a deprecated version of the Android
embedding.
To avoid unexpected runtime failures, or future build failures, try to see
if this plugin supports the Android V2 embedding. Otherwise, consider
removing it since a future release of Flutter will remove these deprecated
APIs.
If you are plugin author, take a look at the docs for migrating the plugin
to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
On ios the steps take 1-2 steps wich is what is should take on a 1mb file size.
However on Android it takes 40 steps like almost everytime.
I am getting this error:
FAILURE: Build failed with an exception.
What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':internet_speed_test' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 4s
Error: Gradle task assembleDebug failed with exit code 1
The upload and download test servers are down! Any solution to make the server come back live?!
SpeedTest.swift class has ping function I want to use it to display ping value in flutter app
I am in error when performing the speed test on android when the download server has port 8080.
The error only occurs on Android (Emulator and physical device)
Error: I / flutter (4654): arguments are {id: 0, speedTestError: Error status code 500, errorMessage: INVALID_HTTP_RESPONSE, type: 1}
Flutter warns me about this plugin.
With new releases of Flutter this plugin will not work.
Any ideas for future releases of plugin?
ipv4.ikoula.testdebit.info url throws connection error. Is there an alternative service to replace the default url?
OnError: CONNECTION_ERROR, ipv4.ikoula.testdebit.info
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\internet_speed_test-1.5.0\android\src\main\kotlin\com\tahamalas\internet_speed_test\InternetSpeedTestPlugin.kt: (50, 66): Type mismatch: inferred type is Activity? but Activity was expected
FAILURE: Build failed with an exception.
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 1s
Exception: Gradle task assembleDebug failed with exit code 1
I was wondering if this package or part of it can get converted to native dart and thus work on all platforms, and can get executed from server side as well?.
What part of this library require the flutter framework and what part of it only required native dart code.
when i compare the results given and the other speed test, the difference is so huge.
I am having the result sometimes and sometimes it's throwing the error of INVALID_HTTP_RESPONSE and Error status code 500. even my onDone callback never calling
An error occurs in the Android device.
continuously on startUploadTesting (onProgress) method call and throw this error.
In startDownloadTesting it's working fine only Android, not in IOS
I/flutter ( 6394): arguments are {id: 1, percent: 0.0, transferRate: 0.0, type: 1, speedTestError: Error status code 500, errorMessage: INVALID_HTTP_RESPONSE}
I/flutter ( 6394): callbacks are {1: [Closure: (String, String) => Null, Closure: (double, double, SpeedUnit) => Null, Closure: (double, SpeedUnit) => Null]}
I am getting this error on iOS 17.2:
The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.)
cancelListening = await internetSpeedTest.startDownloadTesting(
onDone: (double transferRate, SpeedUnit unit) {
SpeedUnit.Kbps;
print('the transfer rate $transferRate');
print('the transfer rate in mbps ${transferRate / 1024}');
},
onProgress: (double percent, double transferRate, SpeedUnit unit) {
print('the transfer rate $transferRate');
print('the transfer rate in mbps ${transferRate / 1024}');
},
onError: (String errorMessage, String speedTestError) {
print('the transfer rate $errorMessage');
print('the transfer rate in mbps $speedTestError');
},
);
Hi !
Please make support for Desktop Environment :)
Anyways Thank you for the great plugin
Regards
The plugin internet_speed_test_v1
uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
is there a way to manipulate this package to use it as a download speed getter for my Download Manager app?
My iOS build is failing after I have installed this package. It fails regardless if I add a custom testserver or not.
Xcode build done. 31.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/macuser/development/flutter/.pub-cache/hosted/pub.dartlang.org/internet_speed_test-1.1.0/ios/Classes/SwiftInternetSpeedTestPlugin.swift:25:27: error: missing argument label 'testServer:' in call
startListening(args: args, flutterResult: result, methodName: "startDownloadTesting", argsMap["testServer"] as! String)
^
testServer:
/Users/macuser/development/flutter/.pub-cache/hosted/pub.dartlang.org/internet_speed_test-1.1.0/ios/Classes/SwiftInternetSpeedTestPlugin.swift:28:27: error: missing argument label 'testServer:' in call
startListening(args: args, flutterResult: result, methodName: "startUploadTesting", argsMap["testServer"] as! String)
^
testServer:
/Users/macuser/development/flutter/.pub-cache/hosted/pub.dartlang.org/internet_speed_test-1.1.0/ios/Classes/SwiftInternetSpeedTestPlugin.swift:40:13: warning: variable 'fun' was never mutated; consider changing to 'let' constant
var fun = {
~~~ ^
let
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
the server url is "https://www.baidu.com",
first time,it's26.838Mb/s,
second time,it's 40.103Mb/s,
third time,it's 107.565Mb/s,
it must be something worng
Can you please provide flutter 3.0 support ?
Fatal Exception: java.lang.ArithmeticException: Division by zero
at java.math.BigDecimal.divide(BigDecimal.java:1030)
at fr.bmartel.speedtest.RepeatWrapper.getRepeatReport(RepeatWrapper.java:123)
at fr.bmartel.speedtest.SpeedTestTask.getReport(SpeedTestTask.java:211)
at fr.bmartel.speedtest.SpeedTestSocket.getLiveReport(SpeedTestSocket.java:10)
at fr.bmartel.speedtest.RepeatWrapper$2.run(RepeatWrapper.java:41)
at java.util.TimerThread.mainLoop(TimerThread.java:562)
at java.util.TimerThread.run(TimerThread.java:512)
Good Evening Devs,
We are receiving the following error on iOS when running a Speed Test.
We are using the latest Flutter version (2.5.3)
flutter: arguments are {transferRate: 77061959.88956045, type: 2, id: 0, percent: 50}
flutter: callbacks are {0: [Closure: (String, String) => void, Closure: (double, double, SpeedUnit) => void, Closure: (double, SpeedUnit) => void]}
flutter: rate is 77061.0
flutter: 50.0
flutter: DOWNLOAD PROGRESS: 50.0
flutter: DOWNLOAD RATE AT PROGRESS: 770.6100000000001
flutter: arguments are {transferRate: 55640518.52435298, type: 2, id: 0, percent: 50}
flutter: callbacks are {0: [Closure: (String, String) => void, Closure: (double, double, SpeedUnit) => void, Closure: (double, SpeedUnit) => void]}
flutter: rate is 55640.0
flutter: 50.0
flutter: DOWNLOAD PROGRESS: 50.0
flutter: DOWNLOAD RATE AT PROGRESS: 556.4
flutter: arguments are {transferRate: 55363269.548861325, type: 0, id: 0, percent: 100}
flutter: callbacks are {0: [Closure: (String, String) => void, Closure: (double, double, SpeedUnit) => void, Closure: (double, SpeedUnit) => void]}
flutter: download steps is 3}
flutter: download steps is 188064}
flutter: DOWNLOAD RATE: 626.88
flutter: test 1
file is of size 200000 Bytes
Method name is startUploadTesting
id is 1
does contain key false
does contain key true
inside if
API MISUSE: NSURLSession delegate internet_speed_test.CustomHostUploadService: <internet_speed_test.CustomHostUploadService: 0x283374b90> (0x283374b90)
API MISUSE: dataTask:didReceiveResponse:completionHandler: completion handler not called
is it possible to canceling speed testing?
onDone- Call back not calling and not working for our test server url
Always getting "Error is The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.)"
I tested in iOS only
Greetings,
thank you very much for working on this idea. It works well for me on Android, but won't event start on ios:
_NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <6FDE6602-3A55-4B4B-9253-B1F6F2DD62CA>.<1>, NSUnderlyingError=0x600000ea3510 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}}
flutter: arguments are {id: 0, speedTestError: The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.), type: 1}
flutter: callbacks are {0: [Closure: (String, String) => Null, Closure: (double, double, SpeedUnit) => Null, Closure: (double, SpeedUnit) => Stream<Null>]}
flutter: onError : The operation couldn’t be completed. (internet_speed_test.NetworkError error 0.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.