I tried to use callback to communicate between my fragments but it seems that infowindowfragment does not recognize my mapFragment as its parentfragment, is there something I can do to work or have another way to do this?
The reason your check isn't working is because getParentFragment() returns you the MapInfoWindowFragment.
getParentFragment().getParentFragment() will return your MapFragment and the your check will be true.
I tried to use callback to communicate between my fragments but it seems that infowindowfragment does not recognize my mapFragment as its parentfragment, is there something I can do to work or have another way to do this?
Mapfragment(parentFragment):
InfoWindowFragment:
Logcat: