Hi!
I've implemented App42 functionality in my Unity application to store/fetch jSON data on your cloud servers and everything is fine.
Now I want to add AppWard functionality for realtime communication but I'm not able to make it work (I got error code 4 on the OnConnect event on the Listener). According to the documentation I can use both APIs on the same application and use the same keys for initialization.
This is my code:
void Awake () {
App42API.Initialize (CLOUD_API_KEY, CLOUD_SECRET_KEY);
userService = App42API.BuildUserService ();
storageService = App42API.BuildStorageService ();
WarpClient.initialize (CLOUD_API_KEY, CLOUD_SECRET_KEY);
WarpClient.GetInstance ().AddConnectionRequestListener (listen);
}
So, what can I do to solve this problem?
Note that I created my app of App42 type, not AppWarp. Do I have to create a new application? If so, will I have 2 applications with 2 different keys? Or should I disable current application and create a new application of type AppWarp? In this case, will App42 APIs work on a AppWarp application?
Thank you.