Mobile SDK Attachment
Posted Jun 03, 2024
Hello Zendesk Community.
We are using the Classic Unity SDK to integrate Zendesk into our game and we have encountered difficulties with the functionality of adding attachments on the Android platform - the button to add an attachment is just missing. Everything works correctly in the browser.
Maybe someone has encountered a similar problem and can help with a solution.
Our observations:
In the application manifest, we need to add the following line:
<activity android:name="com.zendesk.gallery.Gallery" android:label=""/>
To open the browser and select an image for attachment, we create a Java object as follows:
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject javaClass = new AndroidJavaObject("com.zendesk.gallery.UnityBinder");
Then we call the OpenGallery method, but we don't have information about what parameters and in what format they need to be passed. Here's an example of our call:
javaClass.CallStatic("OpenGallery", jc.GetStatic<AndroidJavaObject>("currentActivity"), <WHAT_ARGS?>);
What can we do to have a button and the ability to attach an attachment in the mobile SDK?
Thank you for your assistance.
0
1 comment
Greg Katechis
0
Sign in to leave a comment.