I’m having a problem relating to Fabric Twitter in Unity for iOS in regards to posting an App Card. I’m not having this issue under Android however.
I’ve pasted the relevant code below:
Uri myUri = new Uri (imageUri); card = new AppCardBuilder () .ImageUri(myUri.AbsoluteUri) .GooglePlayId("my.app.com") .IPhoneId ("myid") .IPadId ("myid");
This code runs successfully for Android but under iOS I will consistently get the error from xcode output:
NullReferenceException: A null value was found where an object instance was required. at Fabric.Twitter.Card.get_imageUri () [0x00000] in <filename unknown>:0 at TwitterCalls.LoginComplete (Fabric.Twitter.TwitterSession session) [0x00000] in <filename unknown>:0 at UnityEngine.Events.InvokableCallList.Invoke (System.Object parameters) [0x00000] in <filename unknown>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [0x00000] in <filename unknown>:0 at UnityEngine.EventSystems.TouchInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, Boolean pressed, Boolean released) [0x00000] in <filename unknown>:0 at UnityEngine.EventSystems.TouchInputModule.ProcessTouchEvents () [0x00000] in <filename unknown>:0 UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.TouchInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) UnityEngine.EventSystems.TouchInputModule:ProcessTouchEvents()
To me this error suggests that it is having trouble finding the correct file? I have tried using both the normal filepath and the uri formatted filepath with the same result each time.
Does anyone know the issue here?