-
Notifications
You must be signed in to change notification settings - Fork 80
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
iOS run / Android builds do not work #21
Comments
I have same issue on android. Install cordova-support-google-services as well then it works. |
Thanks for the response. That did indeed get Fabric loaded but now I get another error in iOS preventing the app to actually run.
|
The plugin now installs on ionic-native 5.6.0 but I still receive an error about initializing the plugin. I've tried manually using a Cordova import and also the standard installation method. Neither work yet. Could someone please share what they did to actually have this work?
|
@markamccorkle I was not able to use this plugin in my app, but my main problem was that I ran into compatibility issues over cordova-support-google-services because we have an older version of phonegap-plugin-push. I wasn't able to get cordova-plugin-firebase-crash to work either. For what it's worth, I went back to what worked in our Ionic 3 app. Now, I'm running Ionic 4 and have had success with Firebase Crashlytics by using: Crashlytics found in @ionic-native/fabric with the cordova-fabric-plugin. ionic-native/fabric If you look at the V3 docs, you'll see what I was looking for: https://ionicframework.com/docs/v3/native/crashlytics/ Their @ionic-native/fabric wrapper STILL HAS Crashlytics and Answers in the source code. See: cordova-fabric-plugin I saw that you were having trouble, because I was too. Good Luck! |
I have been able to get it work.
used dependencies
For android i needed to install the cordova-support-google-services and the firebase plugins itself
inside the config.xml make sure to add : xmlns:android="http://schemas.android.com/apk/res/android
and set the resource file (the src is relative from the root of your app directive, the target is picked up and set to be found by the cordova-support-google-services plugin)
For iOS it was a different story. It seems to me that the plugin is not complete and I needed to add a bit of code to the native file.
The additional coding used inside iOS is placed in the AppDelegate.m
and also set the resource for iOS
app.component.ts:
I really hope they add the changes that were needed to the AppDelegate.m inside the plugin since it will be a pain in the ass if we need te remove the iOS platform and install it again. |
This should be fixed soon. Thank you for your efforts. |
@ReallySmallSoftware any ETA on resolution? I'm struggling with getting this to load using all the methods I can find.
|
I have published a new release as it was being asked for, but I haven't had time to test properly |
Expected Behavior
iOS or Android to function. Neither do.
Actual Behavior
iOS builds, displays errors the plugin could not be installed when actually ran. Android doesn't build with the errors displayed in other reports such as here.
Steps to Reproduce the Problem
Follow the instructions for install on this page. Run your iOS app and you'll see log errors stating the plugin could not start. Build / Run android and you'll see an error about the API key missing.
Specifications
The text was updated successfully, but these errors were encountered: