With Android phones you could possibly use an app like NoRoot Firewall to cut off net access for the app when you want to appear offline. Unfortunately that's a pretty "advanced" use of apps for the average consumer and definitely not a replacement for building this in natively.