FCM token not generating in Samsung devices in release version of app
问题 I am using FCM for sending notifications in my app. The first version of my app is in the testing phase and there is an error in Samsung devices because FCM token is not getting generated in these devices. Here is my code which generates the token: FirebaseInstanceId.getInstance().instanceId.addOnCompleteListener(OnCompleteListener { task -> if (!task.isSuccessful) { return@OnCompleteListener } // Get new Instance ID token val token = task.result?.token val ref = FirebaseDatabase.getInstance(