Both OS have a similar stance on background running processes - they kill them after a short delay. Iphones are more aggressive and consistent about it, and android OEMs sometimes give exceptions for their own bloatware.
It would be nice to be able to reliably run background apps on Android.
Also as an aside Android doesn't appear to reliably kill background processes, it kills them if it thinks that something else needs the resources. Running the Facebook app is one way of triggering Android to kill a bunch of background apps.
Unfortunately trusting developers to use those allowances wisely did not pan out.