getActiveNav()
was deleted in Ionic 3.5.2
in my case I replaced the code with getRootNav()
which is unfortunately marked as deprecated (I don’t use tabs)
P.S.: About this deprecation getRootNav() deprecated, use getRootNavById(): what's the value of the root nav id?