I am handling OAuth requests in my iOS React Native application. This application is contained and launched through Expo. I want to add in a custom callback url, so that I can return back to the application after jumping into a browser. Supposedly, I do this through modifying the info.plist
file, except it is nowhere to be found. My project folder does not contain this file anywhere and I am not entirely sure if npm, the command line tool, is generating it on runtime.
Where on earth is this file?
For context, I am not using Xcode. I am just using sublime to edit my project files with a terminal running npm start
.
Edit - After the solution was found:
There is another question on StackOverflow that aims to answer this same question, but for different reasons: "Info.plist file for react native ios app using expo SDK." However, my question is specific to callback urls. As I described in my answer below, Expo has its own callback URL for your app (i.e. no need to edit the info.plist
file). If you need that info.plist
, see the question linked above. The info.plist
file is hidden when using Expo, but there is a work around to accessing some of its fields.
info.plist
, which they are normally, but when you are using Expo, they are not. Expo does things differently and hides theinfo.plist
file entirely (as described in your linked question). For custom callback URLs, use my answer below (which it looks like you are). If you need to access other fields ininfo.plist
, then definitely see your linked question! – Sloop