| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
On Android, when calling startMonitor it will immediately fire the callback with the current state. Now it does the same on iOS.
|
Ok, so now that I have a workaround to test tns-core-modules inside my test app, I can confirm that the code works as expected. Regarding the tests, connectivity events can't be tested on emulators, so probably that's why there are no tests for this component. |
Sorry, something went wrong.
|
test |
Sorry, something went wrong.
|
Any idea in what version of NS will this be released? It will be a nice addition to simplify a little the code in our projects 😅 |
Sorry, something went wrong.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
On Android, when calling startMonitor it will immediately fire the callback with the current state. Now it does the same on iOS.
PR Checklist
What is the current behavior?
When calling connectivity. startMonitoring() on Android, the callback will fire immediately with the current state. This behaviour is not present on iOS.
What is the new behavior?
Calling connectivity. startMonitoring() on iOS will also fire the callback immediately with the current state.
Fixes #4579 .
Please note that I didn't write any tests for this as I didn't know how to. The tests for this component seem just a stub for documentation purpose. If anyone can please point me in the right direction with the tests, I'll gladly write them.
Also didn't manage to test with my own app, as I'm blocked by #6372 😢