主权项 |
1. A computer-implemented method to establish temporary background communication between two applications, the method comprising;
communicating, by a first application executing on a computing device, a request to create a pasteboard to an operating system of the computer device; communicating, by a first application executing on a computer device, a launch request the launch request comprising a launch URL scheme for launching a second application, a return URL scheme for returning control to the first application, and the name of the created pasteboard; launching, by the operating system, the second application by opening the launch URL scheme in the launch request received from the first application; recording, by the launched second application, the name of the pasteboard; establishing, by the second application, a background monitoring task to monitor the named pasteboard for data requests from the client application; returning, by the second application, control to the first application; writing, by the client application, a data request to the named pasteboard; reading, by the service application, the data request to the named pasteboard; and writing, by the service application, a response to the data request to the named pasteboard. |