SmartApp inexplicably gets uninstalled immediately after installation

I have a SmartApp that allows multiple instances to be installed in parallel.
For the first time yesterday, I wanted to add an instance, and immediately after installing it I get an uninstall event.
Existing instances function normally.
Again I get an uninstall event immediately after the install event, without any trigger that I can see.
This was not happening a couple of months ago, and I have not put in any new code.

Any help/insight would be greatly appreciated @nayelyz

Tagging @orangebucket

I’ve checked my code, I have two projects. This is happening with both, I had recently an update on my Android phone, not sure if that is related.

But trying to install new instances, after the screen that I’m supposed to confirm/allow permissions for the app to control devices, I receive an error message. Behind the scenes I receive an install event and then an uninstall event

My immediate thought was that perhaps this is what happens if the INSTALL lifecycle doesn’t complete successfully. I just made an app exit instead of processing the lifecycle and it received an UNINSTALL lifecycle too.

Curiously supposedly being uninstalled hasn’t stopped the app appearing on the Routines page as an installed app, though it isn’t listed when I try to delete it. But then apps on the Routines page have been badly broken for several months. An instance of the app also appeared on the Linked Services page in the app (I requested that) but I could delete it from there. I don’t know if it is the same one. It is a complete mess.

1 Like

Thanks, I haven’t changed the code in many months and it has worked in the last year plus, and suddenly it stopped.

I will debug some more.
Appreciate you checking into it.

Minor bug in my Install event processor response code. Fixed it and now everything is back to working.

Oddly enough it’s worked all this time.
Appreciate the help @orangebucket

Hi, @Lev
It has happened in the past that certain things are “accepted” despite them not being ok, and, at some point they get fixed, so, if it was an issue on your side, it might have happened that.
I’ve seen the behavior you described (getting an uninstall lifecycle after installation) when it wasn’t successful. As long as you get a “Network error” in the app, it means something wasn’t completed successfully.