please explain me, why response HmsInstanceId.getInstance always empty.
in first time token comes to onNewToken, but why always String token = HmsInstanceId.getInstance(MainActivity.this).getToken(appId, "HCM"); empty and how I could get this token?
new Thread() {
@Override
public void run() {
try {
String appId = AGConnectServicesConfig.fromContext(MainActivity.this).getString("client/app_id");
String token = HmsInstanceId.getInstance(MainActivity.this).getToken(appId, "HCM");
} catch (Exception e) {
}
}
}.start();
and maybe second question: token assigned to the phone, but if my app has two users, how I could assign token fore each user in one app?
