Redirect URI for mobile app OAuth

Hello,
I am developing a mobile app (for both Android and IOs) that needs to determine whether the user is a Patreon’s patron.
I have read Patreon’s OAuth API Refererence, and generated Patreon’s keys for my app.
One thing I don’t understand is what the ‘redirect_uri’ should I specify.
Again, I don’t run a website, just a mobile app on a mobile device.
My app can open the browser where user can login with Patreon.
Then I need the browser somehow redirect to inside of my mobile app where I can get the available data about the user, as described in the API Reference.
So, what redirect_uri do I need to specify to do that?
I would appreciate any suggestions.

Is there a specific android-native url that you can use in place of localhost? If so, that could work. Something like this:

Thank you, that seems to be the way to do it.

1 Like

Hello again,
I came upon some more problems. They are likely outside Patreon APIs, but perhaps someone knows the solution, so I’ll ask anyway
I am using Firebase dynamic links as the redirect_uri
My dynamic link is https://myappname.page.link/patreon
The deep link is https://myappname.net/patreon
Patreon is invoking the https://myappname.page.link/patreon as a redirect_uri,
and is supposed to append some parameters to it, so it looks like https://myappname.net/patreon?code=xxx
However, all I receive inside my app is the naked uri https://myappname.net/patreon
There are no parameters attached to it.
Again, I assume Patreon is invoking the redirect_uri, with the parameters added to it.
What is happening here?

There may be another redirect happening somewhere after Patreon redirects to your dynamic link. That should be checked out.

@puffing_devil Did you solve this problem from your side?
I am also in need of letting our mobile app users to connect to their Patreon account to mobile app for subscription. But I can’t figure out how to get tokens from redirect_uri.

@codebard do you have any actual solution for this issue?

As far as I know, there should be something that you could use as the final url that points to the local device/app in the mobile platforms. There was a related question some while back, and the asker just used the mobile platform’s own feature for that.