enableTestSession method
Enables a Firebase PNV test session using a token generated from the Firebase console's Security > Phone Verification > Testing tab.
Test sessions let you develop and test the full PNV flow on physical
devices and emulators, without a billing account and without a real
SIM - getVerifiedPhoneNumber will resolve to a fake phone number
consisting of a valid country code followed by all zeros. Test tokens
expire after 7 days.
This must be called only once per app process, before any other Firebase PNV call; the native SDK throws if called more than once on the same underlying instance.
Implementation
@override
Future<void> enableTestSession(String token) {
throw PlatformException(
code: 'UNAVAILABLE',
message:
'Firebase Phone Number Verification (PNV) is not supported on Linux.',
);
}