Skip to content

Callback not getting called from ClientNetworkMonitor cellularDidChange method #530

Open
@tikekar

Description

@tikekar

New Issue Checklist

Issue Description

When I turn the airplane mode on and off from wifi, the cellularDidChange method of ClientNetworkMonitor class gets called. But the callback "self.callback(State..." doesn't get called. If I remove the if() statement surrounding it, it gets called.

// commenting the if statement works.
// if let newCellularName = newCellularName, self.cellularName != newCellularName {
        self.cellularName = newCellularName
        self.callback(State(lastChange: .cellularTechnology(technology: newCellularName ?? ""),
                            isReachable: self.isReachable ?? false))
      // }
Complete output when running grpc-swift, including the stack trace and command used
[INSERT OUTPUT HERE]

Environment

Key Value
OS Version x.x.x
Swift Version x.x.x
Xcode Version x.x.x
gRPC-Swift Version x.x.x
gRPC-Swift Version x.x.x
protoc Version x.x.x
protoc-gen-swift Version x.x.x
protoc-gen-swiftgrpc Version x.x.x

Metadata

Metadata

Assignees

Labels

version/cgrpcRelates to the CgRPC based version of gRPC Swift

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions