A simple Android app for managing a user's flairs
reddit-flair-manager.mp4
- Create a Reddit application to enable OAuth login for the user
- Selecting "installed app" doesn't work as it uses the implicit flow for access token retrieval, and currently Reddit's APIs do not work at all with tokens issues through this flow (issue discussion here). For personal use, you can opt for "script" as the app type as it will allow Android custom deep links for the OAuth redirect URI. Otherwise, "web app" requires an
https
redirect. - If using a custom Android deeplink, set your redirect uri to
<SCHEME>://<HOST>
, whereSCHEME
andHOST
are values of your own choosing.SCHEME
should be unique to prevent clashing with other installed apps.
- Add an untracked resource file,
app/src/main/res/values/secrets.xml
. The file should contain the following:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="reddit_app_id">YOUR_APP_ID</string>
<string name="reddit_app_secret">YOUR_APP_SECRET</string>
<string name="app_scheme">SCHEME</string>
<string name="app_host">HOST</string>
</resources>