Updating SmartApps


(Alex) #1

If I make changes to a SmartApp, will that automatically update all running instances of the SmartApp on my devices, or will I have to do something in the mobile app to instantiate the update?


(Nathan Cook) #2

If I understand your question… the answer is yes. If you update code and publish “for me” the app should update all.


(Alex) #3

What if the app is a child app and I only publish “for me” its parent app, would re-publishing the parent app update all instances of the child app?


(Nathan Cook) #4

I am going to have to let one of the much more savvy people on the community tackle that one. I do know I have had made minor code changes and not had to uninstall and reinstall and the child apps updated. For the more complex apps I believe it depends on what parts of the code was changed. I think the most involved one I use is @tonesto7’s Nest Manager and when he runs updates some of them require deleting automation from the app and sometime a complete overwrite to get it back in again. Hopefully someone else with more knowledge will chime in.


(Anthony S.) #5

The answer to the question is if you update the parent app it only updates the parent if you update the child app then all instances of the child are updated


(Alex) #6

Will the apps run the initialize method again?


(Anthony S.) #7

It won’t on it’s own. You can update a lot of them quickly under the IDE clicking on My Locations > Installed SmartApps then click the update link next to each child app and it will execute the update method and accomplish what you are looking for


(Alex) #8

Thank you, this is a good enough fix for me