Error when uninstall custom app

Hello,

I have a custom app and when I tried to uninstall it, it throws the error below:


I have updated my app to Platform 2.2.
Inside manifest.json:

> {
  "platform-version": "2.2",
  "dependencies": {
    "openpgp": "4.10.10",
    "crypto-js": "4.1.1"
  },
  "product": {
    "freshdesk": {
      "location": {
        "full_page_app": {
          "url": "index.html",
          "icon": "styles/images/GoodData_G_White_64_64.png"
        }
      },
      "events": {
        "onTicketCreate": {
            "handler": "onTicketCreateCallback"
        },
        "onTicketUpdate": {
            "handler": "onTicketUpdateCallback"
        },
        "onCompanyDelete": {
          "handler": "onCompanyDeleteCallback"
        },
        "onCompanyCreate": {
          "handler": "onCompanyCreateCallback"
        },
        "onCompanyUpdate": {
          "handler": "onCompanyUpdateCallback"
        },
        "onContactCreate": {
          "handler": "onContactCreateCallback"
        },
        "onContactUpdate": {
          "handler": "onContactUpdateCallback"
        },
        "onConversationCreate": {
          "handler": "onConversationCreateCallback"
        },
        "onTimeEntryDelete": {
          "handler": "onTimeEntryDeleteCallback"
        },
        "onTimeEntryCreate": {
          "handler": "onTimeEntryCreateCallback"
        },
        "onTimeEntryUpdate": {
          "handler": "onTimeEntryUpdateCallback"
        },
        "onAppInstall": {
          "handler": "onAppInstallCallback"
        },
        "onAppUninstall": {
          "handler": "onAppUninstallCallback"
        }
      },
}

And Inside my server.js:

    onAppUninstallCallback: function (payload) {

        console.log("Logging arguments from onAppUninstall event: ");

        console.log("payload", payload);
  
      },

I don’t know where onAppInstall is called, since I only have onAppInstallCallback. How can I solve this issue?

Other events seem to work fine.

Thank you,
Nhat Nguyen

@Nhat_Nguyen
I think you missed renderData(); function at the end

kindly refer this doc for more reference

Thanks

2 Likes

Thank you very much. It works.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.