This article is for iOS developers who wish to communicate with the ZuluDesk iOS app from their own app.
Communicating with the ZuluDesk app is as simple as calling a URL. Currently there are two options which can be called to ZuluDesk. Opening the ZuluDesk app, and installing apps to the user's device.
Opening the ZuluDesk app via URL
To open the ZuluDesk app via a URL, you can simply call on “zuludesk:”. An example of this in Objective-C is shown:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"zuludesk:"]];
This simple method will open the ZuluDesk app when called from your app. With the call no other actions will take place except for starting the app and bringing it to the foreground. It is required that the ZuluDesk app is already installed on the device.
Installing an app to a user's device with the ZuluDesk app via URL
Currently ZuluDesk supports the ability to install applications to a user’s device via URL. This can done by calling “zuludesk://app/install?<appId>”
An example of this in Objective-C is shown, this opens the ZuluDesk app and begins installing the YouTube app:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"zuludesk://app/install?544007664"]];
- It is required that when calling the URL that you know the app ID of the app you wish to install. The app ID can be found in the app's URL on iTunes. Example of YouTube's URL: https://itunes.apple.com/us/app/youtube-watch-listen-stream/id544007664
- In order for this to work the user must be permitted to install the YouTube app on demand via ZuluDesk.
- It is also currently required from Apple that the ZuluDesk app be open in the foreground when carrying out tasks such as installing and app via URL.
Once the app is done installing, the user can open the app from the device's home screen.