only register with GCM if Android