HI, I was having the same issue too but managed to solve it.
Apps should use the Bundle ID rather than the Service ID for the client_id value. You will need to make sure you generate a corresponding client_secret using the Bundle ID too otherwise you will get an invalid_client error. The Bundle ID should not include the Team ID.
Hope that helps.