Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24607] Android: Network connectivity change event is called initially when there is no change

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-05-15T18:46:30.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0
Componentsn/a
Labelsqe-6.2.0
ReporterFrankie Merzadyan
AssigneeFrankie Merzadyan
Created2017-04-20T18:06:03.000+0000
Updated2017-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.

Comments

  1. Frankie Merzadyan 2017-04-20

    master: https://github.com/appcelerator/titanium_mobile/pull/8981
  2. Joshua Quick 2017-04-20

    *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")
       });
       
  3. Josh Longton 2017-06-30

    {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*

JSON Source