arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1.01k stars 1.56k forks source link

Plugin will will not install when another plugin have added Google-Service-info.plist #774

Closed ThorvaldAagaard closed 6 years ago

ThorvaldAagaard commented 6 years ago

When I add this plugin to my project, i get the an error telling me that Google-Service-info.plist already exist in …/platform/ios/appName/Resources

I can work around this by manually deleting the file prior to installing the plugin, but it is pretty annoying, when removing and adding the platform, as the build then is halted during the add platform process.

Is it possible to overwrite the file (as it is the same) or just ignore it if it exist?

I am unsure which other plugin I the conflict is with as I then might be able to change the order, but I am using the following plgins

call-number 1.0.4 "Cordova Call Number Plugin"
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"cordova-custom-config 5.0.2 "cordova-custom-config"
cordova-open-native-settings 1.5.1 "Native settings"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-app-preferences 0.99.3 "AppPreferences"cordova-plugin-apprate 1.4.0 "AppRate"cordova-plugin-background-mode 0.7.2 "BackgroundMode"
cordova-plugin-badge 0.8.7 "Badge"cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-crop 0.0.3 "CropPluginWithRatio"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-email-composer 0.8.15 "EmailComposer"cordova-plugin-facebook4 2.2.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-firebase 1.0.5 "Google Firebase Plugin"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-google-analytics 1.8.3 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.3 "LocalNotification"
cordova-plugin-mauron85-background-geolocation 3.0.0-alpha.38 "CDVBackgroundGeolocation"
cordova-plugin-media 5.0.2 "Media"
cordova-plugin-nativestorage 2.3.1 "NativeStorage"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova-sms-plugin 0.1.11 "Cordova SMS Plugin"
cordova-sqlite-storage 2.3.3 "Cordova sqlite storage plugin"
cordova.plugins.diagnostic 4.0.8 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
mx.ferreyra.callnumber 0.0.2 "Cordova Call Number Plugin"
uk.co.workingedge.phonegap.plugin.launchnavigator 4.2.1 "Launch Navigator"

My current setup is

cli packages:
    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.11
    Cordova Platforms  : android 6.4.0 browser 5.0.1 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.9.3
    npm               : 5.5.1
    OS                : Windows 10
fsacrepe commented 6 years ago

Had the same issue, I fixed it by removing the <resource-file src="GoogleService-Info.plist" /> from my config.xml Hope it helps !

soumak77 commented 6 years ago

closing as resolved per the above comment