I checked this link to add remoteSiteSettings dynamically. Above link suggesting to add visualforce base url to remote site setting first. I am able to insert that without any issues from synchronous visualforce page. I have a requirement where I need to add remoteSiteSetting through postInstallScript.
Here, I am doing a callout to our application through postInstallScript but it does not support callouts, so I am using @future(callout=true). How to create a remoteSiteSetting in this This asynchronous. How can I get this done?