When developing provider hosted apps and testing in SharePoint Online, I've noticed that my AppInstalled remote event is often triggered 4 times when installing the app in site content. Here is an except from a log:
[07:47:38] ProcessEvent: AppInstalled
[07:47:54] ProcessEvent: AppInstalled
[07:48:04] ProcessEvent: AppInstalled
[07:48:10] ProcessEvent: AppInstalled
I suspect SPO thinks the installation somehow failed and therefore trying attempting to install it again. How can I stop this from happening? I tried using clientContext.RequestTimeout = Timeout.Infinite
without success