I'm using Unity to build a so called "Universal Windows 8.1" app and trying to get the Pushwoosh SDK to work properly. Both the PushSDK.winmd and Newtonsoft.Json.dll gets copied over to the Visual Studio Project successfully. But when it eventually reaches the code:
NotificationService service = PushSDK.NotificationService.GetCurrent("my-id");
I get the following error:
This seems like a quite "general" problem and thus I'm posting it here. In my understanding the lib file "PushSDK.winmd" can't find the Newtonsoft.json.dll for some reason. But I'm unsure what more I can do. It is located under "References" in the project (see below):
EDIT What I've tried so far: 1. Rebuilding the Pushwoosh SDK with same DLL and also tried with another DLL. 2. Tried without a Newtonsoft.Json.dll at all.
Both of these produce the same error as seen above. Meaning it doesn't even read any DLL it simply can't find it.
Yah, this only took about 6 hours to solve.
It seems the required step was to add the file Newtonsoft.Json.dll to the "Unprocessed Plugins"-list in Unity. Hope someone else will have use for this information.
Thanks for all the inputs given in the comments field!