Am trying to get an FCM Token using
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging.instance;
const String firebaseCloudvapidKey = "MY_PUBLIC_KEY_IS_HERE";
_firebaseMessaging.getToken(vapidKey: firebaseCloudvapidKey).then((val) async {
print('Token: ' + val);
});
This is the error i get whenever i run this

Am using genymotion emulator and i don't know where the error is coming from please help me out and if you need more explanation tell me i will add to it