1
_firebaseMessaging.getToken().then((token) {
      assert(token != null);
      deviceToken = token;
    });

Here is my function to get firebase token, which is working fine for most of android devices, having issue with old android devices. Here I am sharing detail of that device. Does anyone know what is the exact issue?

Redmi Note 4 Android version : 7.0 NRD90M MIUI Version : MIUI Global 11.0.2

Khyati Modi
  • 630
  • 1
  • 9
  • 19

1 Answers1

0

It is issue with api, which is not working with android 7 platform. Its not about _firebaseMessaging.getToken()

Khyati Modi
  • 630
  • 1
  • 9
  • 19
  • 1
    Yes You got it now. https://stackoverflow.com/questions/39133437/sslhandshakeexception-handshake-failed-on-android-n-7-0 for api error issues – Hardik Mehta Aug 24 '22 at 04:45