[TIMOB-24607] Android: Network connectivity change event is called initially when there is no change
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-05-15T18:46:30.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.2.0 |
| Components | n/a |
| Labels | qe-6.2.0 |
| Reporter | Frankie Merzadyan |
| Assignee | Frankie Merzadyan |
| Created | 2017-04-20T18:06:03.000+0000 |
| Updated | 2017-06-30T13:33:04.000+0000 |
Description
Android: Network change event is called initially when there is no change. Change event should only show when a change occurs and not at application launch.
master: https://github.com/appcelerator/titanium_mobile/pull/8981
*Recommends test for QE:*
Build and run a project using the PR's sample code.
On launch, verify no event has been received in the Android log.
Enable/disable wifi and verify an event the log.
Back out of the app.
Re-launch the app and verify no event was logged.
Enable/disable wifi and verify an event was logged.
Ti.Network.addEventListener("change", function(e) { console.log("test msg: change event") });{noformat} Mac OS Version : 10.12.4 Appc CLI : 6.2.1 Appc NPM : 4.2.9 Node : v4.6.0 Device: Nexus 5x(6.0.1) Pixel XL(7.1.2) Emulator: (6.0), (4.4.2) {noformat} Using above env passed FR. After merge, the changes are present in
6.2.0.v20170630052324. *Closing*