Firebase phone authentication iOS Token Mismatch error

I’m building an app with Firebase phone authentication using this tutorial Ionic 3 Phone Authentication with Firebase. | by Gerald Brigen | Medium. It works fine on an Android device, but on an iPhone, when I call

FirebasePlugin.verifyPhoneNumber()

I get this Token Mismatch error…

ERROR: {“description”:“Error Domain=FIRAuthErrorDomain Code=17048 "Token mismatch" UserInfo={NSLocalizedDescription=Token mismatch, error_name=INVALID_APP_CREDENTIAL}”,“code”:17048}

I have no clue how to resolve this. Any help would be greatly appreciated.

Thanks.