for some reason in case of iOS, getToken is not working on simulator but works fine on real device. And also the token returned from getToken is required to send notifications from firebase notification console.