I’m having some trouble with installing a custom app. I tried 2 scenarios
In dev mode. with dev=true, I’m able to establish authentication with my server using OAuth.
Uploaded the same app (fdk pack), without any configuration changes. After authentication, the server returns the 200 status code, but the app is not installed.
Below is a screenshot with the console error, when the custom app is uploaded and tried to install.
In the screenshot, Freshdesk-app in Dev mode is installed successfully. But Freshdesk Local (46455-freshdesk_local), uploaded app, throws some console errors.
Also attaching the server response, just to make sure appropriate code was returned after authentication.
As I can infer, onAppInstall you are making an API call to the server. The server responds with a token that I presume the handler attached to onAppInstall would store before the app is installed successfully. Is my understanding correct? If yes, did you explore OAuth 2.0 that’s possible via the app? Any thoughts about OAuth here just to correct my understanding.
Secondly, when trying the installation as a custom app the server might have logged successfully as it received the requests… I was curious about the browser network. If possible, when this error occurs can you share XHR logs from the browser on this thread?
Please mind removing any sensitive information that comes out of logs.
Do you see onAppInstall simulation successful when the app is simulated locally?
@justin
Good Day!
Seems like the app setup events are failing, that is why the app is not installed,
and as @Saif mentioned, can you please share with us the browser logs/HRA logs to debug further?
and possible please share with us the code snippet of onAppInstal method for our better understanding
Do you mind keeping us aware of the user flow? I am guessing, you are trying to perform OAuth so that app can be used after successful authorization. Am I right?