-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How I can integrate this plugin into my ionic 3 app? #131
Comments
Did you try And don't forget to include typings in your tsconfig.json : "files": [ "plugins/cordova-fabric-plugin/typings/cordova-fabric-plugin.d.ts" ] |
@lsantaniello if you are using Ionic 3 you should follow these installation instructions: https://ionicframework.com/docs/native/crashlytics/ Crashlytics should be imported on the .ts file, and defined in your constructor for it to be usable. Also don't forget to add Crashlytics as a Provider in your app.module.ts file |
Am am not able to install fabric plugin in ionic 3 project, getting error: npm ERR! A complete log of this run can be found in: @lsantaniello |
Hi all,
I'd like to integrate this plugin into my ionic 3 app but I have some problems.
I installed plugin using the following command:
cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx
Then I tryed to insert the code into my app:
window.fabric.Crashlytics.addLog("about to send a crash for testing!"); window.fabric.Crashlytics.sendCrash();
but I have "fabric doesn't exist" compilation error.
I replaced with:
(<any>window).fabric.Crashlytics.addLog("about to send a crash for testing!"); (<any>window).fabric.Crashlytics.sendCrash();
Then, I built my app and I generated the apk. I tested into my android simulator and when I execute the code, the app crash.
I have two questions:
Thanks in advance
Luca
The text was updated successfully, but these errors were encountered: