Skip to content

GitHub App Installation flow on mobile+web (multi platform)? #24468

Discussion options

You must be logged in to vote

I’ve just come up with a hacky solution:

  1. Instead of redirecting directly from the app to github, redirect to myserver.com/install/app?platform=mobile instead.

  2. This endpoint will save the app type (web/electron/mobile) as a cookie or localstorage.

  3. Redirects to github and install the app

  4. GitHub redirects to another endpoint of mine: myserver.com/install/app/callback?installation_id=123

  5. This endpoint will check the cookie/localstorage, so now it knows the platform and what to do next. E.g. if mobile, redirect to myappscheme://. 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant