Developing third-party dual-mode apps