Open girish-fuluskar opened 4 years ago
You don't need steps 2 and 3.
Hi,
Thanks for reply. I followed the instructions but still getting attached errors.
Kindly advise.
Regards Girish D. Fuluskar
You can try reinstalling the plugin and changing declare let unityARCaller: any;
to declare var unityARCaller: any;
but other than that, I don't think I can pinpoint this issue.
Hi,
Thanks for your reply.
I tried your instructions but still the same error.
Do you have sample project on the same which I can download for my reference.
Regards Girish D. Fuluskar
I don't have any sample projects, sorry :/
Hi,
I have created new Ionic project and added "ionic plugin add https://github.com/yasirkula/UnityIonicIntegration.git"
Following are my Ionic Setup:
Ionic: ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 5.0.5 @angular-devkit/build-angular : 0.803.25 @angular-devkit/schematics : 8.3.25 @angular/cli : 8.3.25 @ionic/angular-toolkit : 2.2.0
Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : not available Cordova Plugins : not available
System: NodeJS : v13.11.0 (/usr/local/bin/node) npm : 6.13.7 OS : macOS High Sierra Xcode : Xcode 9.2 Build version 9C40b
1) After this I added the mentioned code into .ts file. 2) Added plugin reference into app.module.ts file as well, "import { unityARCaller } from 'unityARCaller';" OR "import { unityARCaller } from 'UnityIonicIntegration';"
3) Import reference into .ts file like "import { unityARCaller } from 'unityARCaller';" OR "import { unityARCaller } from 'UnityIonicIntegration';"
While compiling i am getting error as "Cannot find module 'unityARCaller'" or ""Cannot find module 'UnityIonicIntegration'"
Kindly advise.
Regards Girish D. Fuluskar