Posso desenvolver um aplicativo móvel e depois usar o esquema discourse://?

I’m developing a mobile app that uses user-key–based authorization for login, which requires a custom scheme. Can I use the scheme “discourse://”?

Yes, you can use the scheme. It will “clash” with the official Discourse Hub mobile app, meaning, if both apps are installed, the OS might pick one or the other or offer a choice.

But you can use it, it’s not a private scheme.

If I use it this way, will Apple reject my iOS app?
I hope the official team can provide something like Telegram does—an authorization that gives me a dedicated ID to use this scheme—instead of being treated as if I’m “impersonating” Discourse (even though I have no intention of doing so).

Can you share a link to the Telegram documentation?

Sorry for the inaccurate explanation about Telegram authorization earlier. Their GitHub repo actually does describe how to create a third-party client—you can find the instructions in the iOS repository at this link: GitHub - TelegramMessenger/Telegram-iOS: Telegram-iOS .

Apologies again if I didn’t express myself clearly. What I really want to do is build a true native third-party Discourse client and use the discourse:// scheme for it.

Yeah, I understand what you are trying to build. You have two options:

  • use the discourse:// scheme, it comes with the advantage that our user api key framework already has that scheme registered (but also the limitation that I highlighted earlier), I don’t think Apple will reject your app, multiple apps can respond to the same URL scheme
  • use your own scheme, the risk here is that if you need to use the user api key from core, your custom scheme will need to be added by an admin for each site, see the Allowed user API auth redirects site setting

Thank you very much. However, my concern is that Apple might interpret my use of the official scheme as “impersonating or misleading users under the name of Discourse,” which is why I reached out to ask. In reality, this is not the case, and I understand that a third-party app must inform users that it is not official.

One last point: may I proceed with this? I need a reply in a format similar to an email. Could you help me with this?

I don’t know how Apple will respond to your app. I think you’ll need to handle that scenario if/when it happens.

Ok then,I want to know whether the official Discourse can mark the scheme as freely usable in the mobile repository, because I couldn’t find any relevant instructions about using this scheme on the forum.

You do not need to re-use the discourse scheme. You can create your own. I’ve deployed several apps with unique schemes and they all passed Apple’s reviews at the time.

I know it, the point is every site is have a default config is the official scheme

So I want a more convenient solution: to use the official one directly. And an important point that I’m a nobody, and I can’t persuade any site administrator to support an obscure scheme. I really hope my app can be loved and used by more people (even though it’s not finished).