This extension provides a unified, simple to show and interface with Zendesk conversations on iOS and Android.
To use this library in your Defold project, add the following URL to your game.project
dependencies:
https://github.com/defold/extension-zendesk/archive/master.zip
We recommend using a link to a zip file of a specific release.
The extension can be configured by adding the following fields to game.project:
[zendesk]
channel = Add your Zendesk channel id here
function init(self)
if not zendesk then
print("Zendesk is not supported on this platform")
return
end
zendesk.set_callback(function(self, event, data)
if event == zendesk.MSG_ERROR then
print("An error occured")
pprint(data)
elseif event == zendesk.MSG_INITIALIZED then
print("Initialized")
pprint(data)
zendesk.show_messaging()
end
end)
local channel = sys.get_config_string("zendesk.channel")
zendesk.initialize(channel)
end
The source code is available on GitHub
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB