Let $A$ be an abelian group and $G$ a group. Let $\alpha:G\rightarrow{\rm Bij}(A)$ and $\beta: A\rightarrow{\rm Bij}(G)$ be two group homomorphisms. I have tried to prove that the Zappa–Szép product $A{}_{\alpha}{\bowtie}_{\beta} G$ is isomorphic to the direct product $A\times G$ iff $\alpha(g)=id$ and $\beta(a)=id$ for all $g\in G$ and $a\in A$.
The if direction is clear. For the converse, if $G$ is abelian then $A{}_{\alpha}{\bowtie}_{\beta} G$ is abelian and hence $\alpha(g)=id$ and $\beta(a)=id$. If $G$ is nonabelian, I think it is possible for a direct product $A\times G$ to be isomorphic to $A{}_{\alpha}{\bowtie}_{\beta} G$ with $\alpha $ and $\beta$ are both nontrivial, but I couldn't find a counter-example. So I will be thankful if someone provides me a counterexample. Notice that I have asked a similar question in mathoverflow.
Thank you very much.