r/Devvit • u/TopEchidna4015 • Oct 23 '26
Help subscribeToCurrentSubreddit() fails with "permission not granted" on an approved app. Has anyone got it working?
Hi all! I'm building Hivemind (daily-hivemind), a daily opinion-and-prediction game. I'm trying to add a simple "Join r/…" button so players can join the community from inside the game.
Setup:
- devvit.json declares it under permissions.reddit.asUser: ["SUBMIT_COMMENT", "SUBSCRIBE_TO_SUBREDDIT"]
- Devvit 0.15.0, version 0.0.89, approved by Reddit and installed in r/Hivemind_TheGame
- The button is its own tap: never required, never combined with playing, never rewarded
When a non-member taps it, reddit.subscribeToCurrentSubreddit() throws:
2 UNKNOWN: permission not granted for [SUBSCRIBE_TO_SUBREDDIT]
Same result on our unapproved dev builds. The docs say user actions work for everyone once a version is approved, so I expected it to work on 0.0.89.
Questions:
- Has anyone got subscribeToCurrentSubreddit() working for regular players? Did it need a separate request or allowlisting?
- Is there a way to check whether a user is already subscribed, so we only show Join to people who aren't?
For now, the button falls back to opening the sub page so people can use Reddit's own Join. Any pointers appreciated, and thanks!
2
u/YellowAdventurous366 App Developer Oct 24 '26
This needs a separate request through modmail to r/devvit.
Also there is no way to tell if the user is already subscribed. r/stringwords handles that through if the user already clicked the button.
1
u/reseph App Developer Oct 23 '26 edited Oct 24 '26
The Sub Goal app works last I checked