Does removing the parent device automatically remove all child devices? Or does the device parent device need to utilize a remove childs method first?
Thanks
Mike
Does removing the parent device automatically remove all child devices? Or does the device parent device need to utilize a remove childs method first?
Thanks
Mike
I believe that the parent device (or app) needs to remove the child devices when the uninstalled() method is called.
If not done properly do you think we would still see child devices without a parent. Or would the be hiding in the database?
I can only speak to child devices without a parent app. If the app crashes and gets removed for some reason then the devices remain. In my case this means having to delete all the devices since they depend strongly on code in the parent app.
When you remove a parent device all child devices will be removed automatically, but it is still a good practice to have your code remove them in the uninstalled method before the system does.
For Apps, when you remove it, the system will only attempt to remove child devices that were created with the "isComponent" flag set.