Hello,
I am writing video+audioapp, and wanted to handle IP address change event when the phone switches from one wifi network to other when an app is in a live video+audio call.
I am using Apple's sample code for Reachability (https://developer.apple.com/library/content/samplecode/Reachability/Introduction/Intro.html) to detect network change events. When cellular data is disabled, if I switch from one ipv4 wifi network to another ipv4 wifi network, the reachability callback does not get fired. Please note that app is accessing microphone and playing audio which keeps app active in the background when I am switching network from iPhone's general settings.
(I experimented the same scenario on iPhone's Facetime app, and handover worked as expected after IP address changed.)
Any advice or suggestion to detect IP address changes reliably will be greatly appreciated.
Thank you,
Piyush Tank