Chrome Custom Tab does not go back to app
The problem is that my activity had the launch mode "singleInstance". Changing to "singleTask" or not having a launchMode set in the AndroidManifest solves the problem.
Don't know why is that. If you know why, I will gladly mark your explanation as the solution.
This can also happen if you use the application context instead of an activity context.