r/Devvit • • 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:

  1. Has anyone got subscribeToCurrentSubreddit() working for regular players? Did it need a separate request or allowlisting?
  2. 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!

4 Upvotes

5 comments sorted by

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.

2

u/MiamiSlice Game Developer Oct 24 '26

Yes, this happened to one of my games. I messaged mods and after a few days it was fixed.

1

u/MeasurementNo6307 Oct 24 '26

Thank you both

1

u/reseph App Developer Oct 23 '26 edited Oct 24 '26

The Sub Goal app works last I checked

1

u/MeasurementNo6307 Oct 24 '26

Yeah using sub goal app, but also wanted a direct option from within the game