I am trying to get notification of when my IP address has changed on the phone, i.e. when the ISP has changed, using RConnection::ServiceChangeNotification but i am failing to get any notification when the ISP/IP address have changed.
I am doing something like this
User::LeaveIfError( iSocketServ.Connect() );
User::LeaveIfError( iConnection.Open( iSocketServ ) );
User::LeaveIfError( iConnection.Start() );
and creating a simple active object that starts a notification like this on construction
iEngine->iConnection.ServiceChangeNotification(iNewISPId, iNewServiceType, iStatus);
which prints on screen the values of the iNewISPId, iNewServiceType member variables on change notification in RunL
Has anyone ever got ServiceChangeNotification to actually notify anything or have I misinterpreted the use of the method or even does anyone have an alternative solution?
(I am testing by connecting a socket in my test app and then making a connection in a different application to a different ISP)
Thanks in advance.