<key>NSPhotoLibraryUsageDescription</key>
<string>Allow the app to access your photos.</string>
Permission text is optional. you can type whatever you want. But this permission not optional. If you didn't add this permission. Desk360 Images attachment property doesn't work.
Start Desk360 with appId -and an optinal deviceId, an optional language-
import Desk360
let props = Desk360Properties(appID: "1234")
// Or if you would like to provide more info here is a full list of the params
let props = Desk360Properties(
appKey: "1234",
deviceID: "34567",
environment: .production,
language: "en",
country: "TR",
userCredentials: .init(name: "John Doe", email: "john@doe.com"),
bypassCreateTicketIntro: true,
jsonInfo: ["a": 500, "b": "c"]
)
Desk360.start(using: props)s
When you click on the notification when your application is closed, you need to add this code on which page you want Des360 to open.
import Desk360
final class YourMainViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
Desk360.showWithPushDeeplink(on: self)
}
}
Getting the unread tickets
If you would like to get a list of the unread tickets you can do so like follows:
Desk360.getUnreadTickets { results in
switch results {
case .failure(let error):
print(error.localizedDescription)
case .success(let tickets):
print("Tickets: \(tickets.count)")
}
}
You can show the unread tickets the way that fits your app design and expierence. If you want to navigate to a specific ticket detail you can do so so by following:
let detailsViewController = Desk360.ticketDetailsViewController(ofTicket: unreadTicket)
self.present(detailsViewController, animated: true, completion: nil)
Customize Desk360 Theme
Support
Note: If no deviceId is provided, Desk360 will use device's , which might cause your app to lose tickets when the application is deleted. If use environment type .production, Desk360 will look at prod url. If no application language is provided, Desk360 will use device's language.
After the above integration, it is sufficient to make the notification certificate settings in the admin panel. You can now use notifications
You should use dashboard for custom config.
For further information, please with contact us
Visit our page for usage, technical setup and detailed info.