Setting up custom scheme redirect URLs for Notion OAuth in mobile applications

I’m working on a mobile application that needs to integrate with Notion’s API. I’m running into an issue with the OAuth setup process. When I try to configure the redirect URL in my Notion integration settings, it seems like the system automatically adds https:// to whatever I enter.

What I want to do is pretty standard for mobile apps. I want users to tap a button, get redirected to their mobile browser for Notion login, and then come back to my app after they authorize it. For this to work properly, I need to use a custom URL scheme like myappname://callback/notion.

However, when I enter this custom scheme in the redirect URI field, Notion’s interface keeps adding the https prefix automatically. This breaks the flow because the browser can’t redirect back to my app properly.

Has anyone found a workaround for this? Can Notion OAuth work with custom schemes, or am I missing something in the configuration? I’ve seen other APIs support this pattern, so I’m hoping there’s a solution.

Hit this same issue about six months back while building my productivity app. Yeah, that automatic https prefix is annoying - it’s a real limitation in Notion’s OAuth setup. They don’t support custom URL schemes for mobile redirects, which is frustrating since most other OAuth providers get this right. Here’s what worked for me: set up a simple web server endpoint as a middleman. Point your Notion redirect to something like https://yourdomain.com/notion-callback, then have that endpoint instantly redirect to your custom scheme URL with the auth code attached. It’s an extra step but works solid on both iOS and Android. Users see the browser for a split second before jumping back to your app, but it’s barely noticeable.

I’ve been fighting this for over a year on multiple client projects. Notion’s automatic https enforcement is just bad design - total oversight on their part. Here’s what actually works: Use a lightweight serverless function (AWS Lambda or Vercel both work great) as your OAuth callback handler. The function grabs the auth code from Notion, then redirects to your custom scheme URL. You don’t need a full web server, and it bridges the gap between Notion’s web-only redirects and your mobile app’s custom scheme. User experience is basically seamless - browsers handle the scheme transition super fast. Costs almost nothing since these functions only run during OAuth flows.

notion really needs to fix this. had the same issue last year and gave up - just used a regular https redirect to a landing page instead. not as smooth as custom schemes, but it works without extra server setup. users have to manually return to the app, but most people expect that flow from other apps anyway.