When I am trying to get GCM
token InstanceId
throws an IOException
.
I have this issue only on nexus devices 4 and 5 Google play services = 8.4.0 android 5.1.1 and 6.0.1
On samsung devices I can get GCM
token and receive push messages.
String token = InstanceID.getInstance(mContext)
.getToken(defaultSenderId, GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
W/GCM: Missmatched messenger
W/System.err: java.lang.RuntimeException: java.io.IOException: TIMEOUT