Implementing a user switching pattern in native and hybrid AppDelegates