TITLE: Does an injective group homomorphism between countable abelian groups that splits over every finitely generated subgroup, necessarily split?
QUESTION [7 upvotes]: Let $G_1$ and $G_2$ be countable abelian groups, and let $\iota\colon G_1\to G_2$ be an injective group homomorphism (so that we may regard $G_1$ as a subgroup of $G_2$). Suppose that for every finitely generated subgroup $K$ of $G_2$, there is a map $\pi_K\colon K\to G_1$ such that $\iota \circ \pi_K\circ \iota= \mbox{id}_{\iota(G_1)\cap K}$ (or if you want to omit $\iota$ from the notation, this would be $\pi_K(g)=g$ whenever $g\in G_1\cap K \subseteq G_2$. 
In other words, for every finitely generated subgroup of $G_2$, one can find a splitting. Does it follow that there is a "global" splitting $\pi\colon G_2\to G_1$ for $\iota$? 
I don't want to assume that the "partial" splittings $\pi_K$ have any sort of coherence (by this I mean that I don't want to assume that whenever $K\subseteq K'$, the splitting $\pi_{K'}$ can be chosen so that $\pi_{K'}$ restricted to $K$ is just $\pi_K$). I also don't want to assume that $G_1$ is finitely generated.
Of course the conclusion would be that $G_1$ is a direct summand in $G_2$.

REPLY [4 votes]: Here is another concrete example constructed as in Yves Cornulier's comment. Let $G_2$ be the group defined by the (abelian group) presentation
$G_2=\langle\ x,y_i\ (i \ge 0) \mid y_i^2 = y_{i-1}x\ (i \ge 1)\ \rangle$
and $G_1 = \langle x \rangle$. 
Any finitely generated subgroup is contained in $\langle y_i,x\rangle$ for some $i$, which is free abelian of rank $2$, and any subgroup of that splits over its intersection with $\langle x \rangle$.
But a complement of $G_1$ in $G_2$ would be generated by elements $y_i' = y_ix^{k_i}$ for some integers $k_i$ with $y_i'^2 = y'_{i-1}$ for all $i > 1$. But $y_i'^2 = y_{i-1}x^{2k_i+1}$, so $k_{i-1} = 2k_i+1$ for all $i>1$, which is clearly not possible.