chemerisuk / cordova-plugin-firebase-analytics Goto Github PK
View Code? Open in Web Editor NEWCordova plugin for Firebase Analytics
License: MIT License
Cordova plugin for Firebase Analytics
License: MIT License
Are there Typescript typings available?
Now i'm getting a lot of Property 'cordova' does not exist on type 'Window' errors when trying to call window.cordova.plugins.firebase.analytics.*
Hi, using
cordova 7.0.1
android 6.2.3
Android build failed message
Execution failed for task ':mergeDebugResources'.
[string/google_app_id] .../platforms/android/res/values/strings.xml
[string/google_app_id] .../platforms/android/build/generated/res/google-services/debug/values/values.xml: Error: Duplicate resources
Any idea?
Hi There,
Recently we have installed cordova firebase analytics plug-in and we are able to get the hits in our firebase account but we would like implement GTM container in the app so that we can manage each and everything via GTM whenever we want to fire an additional event.
Can someone please guide if we can implement GTM along with this plug-in. If yes, then what is the process.
Native: tried calling FirebaseAnalytics.setCurrentScreen, but the FirebaseAnalytics plugin is not installed.
vendor.js:54174 Install the FirebaseAnalytics plugin: 'ionic cordova plugin add cordova-plugin-firebase-analytics'
Build error when using Cocoon.io service. Could you please help?
COMPILER ERROR:
/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Where:
Script '/workspace/platforms/android/cordova-support-google-services/global-build.gradle' line: 16
What went wrong:
A problem occurred evaluating root project 'android'.
Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
For input string: "+"
CORDOVA LOG:
�[36m[2017-11-09 08:18:25.541] [DEBUG] AndroidBuilder - �[39m[prepare] cordova restore platforms
�[36m[2017-11-09 08:18:25.554] [DEBUG] AndroidBuilder - �[39m[prepare] adding engine [email protected]
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
�[36m[2017-11-09 08:18:38.481] [DEBUG] AndroidBuilder - �[39m[prepare] cordova restore plugins
�[36m[2017-11-09 08:18:38.483] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin cocoon-plugin-share@*
�[36m[2017-11-09 08:18:38.528] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin [email protected]
�[36m[2017-11-09 08:18:38.581] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin [email protected]
�[36m[2017-11-09 08:18:38.641] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin [email protected]
�[36m[2017-11-09 08:18:38.685] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin [email protected]
�[36m[2017-11-09 08:18:38.730] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin [email protected]
�[36m[2017-11-09 08:18:38.796] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin [email protected]
�[36m[2017-11-09 08:18:38.829] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin cordova-plugin-firebase-analytics@*
�[36m[2017-11-09 08:18:38.861] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin cordova-plugin-inappbrowser@*
�[36m[2017-11-09 08:18:38.907] [DEBUG] AndroidBuilder - �[39m[prepare] adding plugin cordova-plugin-whitelist@*
�[36m[2017-11-09 08:18:40.510] [DEBUG] AndroidBuilder - �[39m[build]
�[36m[2017-11-09 08:18:40.511] [DEBUG] AndroidBuilder - �[39m[build] create certs folder
�[36m[2017-11-09 08:18:40.511] [DEBUG] AndroidBuilder - �[39m[build] keystore
�[36m[2017-11-09 08:18:40.707] [DEBUG] AndroidBuilder - �[39m[build] create release build.json
�[36m[2017-11-09 08:18:40.708] [DEBUG] AndroidBuilder - �[39m[build] call cordova
ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Subproject Path: CordovaLib
Starting a Gradle Daemon, 17 stopped Daemons could not be reused, use --status for details
null
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_50oro7zaoq1sb73fozu0qul8z.run(/workspace/platforms/android/build.gradle:140)
org.xwalk:xwalk_core_library:22+
Not writing assets/xwalk-command-line since file already exists.
FAILURE: Build failed with an exception.
Where:
Script '/workspace/platforms/android/cordova-support-google-services/global-build.gradle' line: 16
What went wrong:
A problem occurred evaluating root project 'android'.
Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
For input string: "+"
BUILD FAILED
Total time: 6.32 secs
I was able to build my app but when I try installing it on an android device I get the following error "unfortunately, App has stopped."
Once I rm firebase analytics plugin the app works fine.
Pls help its urgent
Hi,
For some reason I can 't build my project after adding your plugin.
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/hazemhagrass/workspace/phonegap/dollark-elnahrda/platforms/android/src/by/chemerisuk/cordova/firebase/FirebaseAnalyticsPlugin.java:89: error: illegal start of expression
this.firebaseAnalytics.setAnalyticsCollectionEnabled(enabled === "true");
^
1 error
:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.613 secs
Error: /Users/hazemhagrass/workspace/phonegap/dollark-elnahrda/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/hazemhagrass/workspace/phonegap/dollark-elnahrda/platforms/android/src/by/chemerisuk/cordova/firebase/FirebaseAnalyticsPlugin.java:89: error: illegal start of expression
this.firebaseAnalytics.setAnalyticsCollectionEnabled(enabled =
```== "true");
^
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Installing both cordova-plugin-fcm
and cordova-plugin-firebase-analytics
result in an error that does not allow building using cordova.
Cannot add task ':processDebugGoogleServices' as a task with that name already exists.
(x-issue: fechanique/cordova-plugin-fcm#398)
Hi @chemerisuk!
I'm getting the build error No known class method for selector 'screenName:screenClass'
in the following line: https://github.com/chemerisuk/cordova-plugin-firebase-analytics/blob/master/src/ios/FirebaseAnalyticsPlugin.m#L57
If it helps, I'm running on Cordova iOS 4.3.0 and I had to manually add pod 'Firebase/Analytics
to my Podfile
because cordova-plugin-cocoapods-support
didn't add it. It installed the following pods:
It's also reusing some other Google pods previously installed by phonegap-push-plugin
, but this doesn't seem to be a problem.
Thanks!
Hello @chemerisuk,
First of all, thanks for the plugin. I have downloaded and added google-services.json
to the root folder and the build is successful, but when I check the logs using the Android Monitor I get these errors:
11-16 12:29:50.335: E/FA(23669): GoogleService failed to initialize, status: 10, Missing google app id value from from string resources with name google_app_id.
11-16 12:29:50.335: E/FA(23669): Scheduler not set. Not logging error/warn.
11-16 12:29:50.344: E/FA(23669): Measurement Service called without google_app_id
11-16 12:29:50.346: E/FA(23669): Uploading is not possible. App measurement disabled
I checked that google-services.json
is correctly copied to platforms/android/google-services.json
. Any idea of what may be causing this error?
Thanks
:compileArmv7DebugJavaWithJavacD:\androidSDK\nunuaardhi\nunuaArdhi\platforms\android\src\by\chemerisuk\cordova\firebase\FirebaseAnalyticsPlugin.java:99: error: cannot find symbol
this.firebaseAnalytics.setCurrentScreen(
^
symbol: method setCurrentScreen(Activity,String,)
location: variable firebaseAnalytics of type FirebaseAnalytics
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILED
FAILURE: Build failed with an exception.
Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
For input string: "+"
I got this error
/platforms/android/src/by/chemerisuk/cordova/firebase/FirebaseAnalyticsPlugin.java:89: error: illegal start of expression
this.firebaseAnalytics.setAnalyticsCollectionEnabled(enabled === "true");
^
1 error
and this one too
/ionic/my132/platforms/android/src/by/chemerisuk/cordova/firebase/FirebaseAnalyticsPlugin.java:98: error: expected
private void setCurrentScreen(callbackContext, String name) {
^
1 error
i have this error on IOS when i build my app after firebase plugin installation.
ld: warning: directory not found for option '-FApp/Plugins/cordova-plugin-firebase'
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can i solve?
regards,
When I fire a log event, I get the following error:
12-30 16:22:03.856: E/FA(17787): Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
any idea what;s the problem?
Thanks
as the title says, should they be both used or i should track current page_view
via setCurrentScreen
?
Like this issue there is a problem in the gradle file?
fechanique/cordova-plugin-fcm#319
Android build failed with this error message.
* What went wrong:
A problem occurred configuring root project 'android'.
> Cannot add task ':processDebugGoogleServices' as a task with that name already exists.
It works when I changed a version 3.1.0 to 3.0.0.
i have this error after build.
Plugins/cordova-plugin-firebase-analytics/FirebaseAnalyticsPlugin.m:2:9: Module 'FirebaseAnalytics' not found
any idea whats going on?
* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not get unknown property 'FIREBASE_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
`cli packages: (/Users/michael/Documents/sites/laravel/hybrid/node_modules)
@ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 1.3.12
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android 6.2.3 browser 4.1.0 ios 4.4.0
Ionic Framework : ionic-angular 3.0.1
`
Hi,
when i try to run the ios app i have this error:
could not find a valid GoogleService-Info.plist in your project
The GoogleService-Info.plist is valid and present in cordova root ios app and into www folder.
What is the error?
This seems great and exactly what I'm looking for, but how do I configure the plugin to actually use my firebase account? I mean, where to provide project number, firebase url etc?
Feels like I might be missing something really obvious here.
Great plugin, and very easy to follow setup steps, am I missing something though as I can not get any stats on firebase console analytics.
The calling code is
this.firebaseAnalytics .logEvent("page_view", { page: "dashboard" }) .then((res: any) => console.log("one", res)) .catch((error: any) => console.error(error));
the res value always comes back as null.
I have checked through my solution a number of times looking for a typo but can't find anything. I have included FirebaseAnalytics in my providers list within the app.module.ts.
Hi @chemerisuk!
First of all, thanks for updating the plugin to use Firebase v11 and removing the hooks! Unfortunately I'm getting the following error building for Android:
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
> For input string: "11+"
I noticed this is coming from src/android/build.gradle, but no version is specified there for GoogleServicesPlugin.
I've read the notes about this issue in the readme, but the only other plugin I have that uses Google Play Services is [email protected]
(latest), which has a dependency on com.google.android.gms:play-services-gcm:11+
.
I've also updated to the latest Google Play Services (v41) from Android Studio but no luck.
Do you know what might be happening?
Thanks in advance.
Hi. So I've had problems getting the plugin to pick up the google_app_id
from google-services.json
in my ionic/cordova project. Tried removing/adding both the plugin and the platform to no avail.
So I tried changing the content of the platform/android/cordova-plugin-firebase-analytics/myprojectname-build.gradle
. Changes in the buildScript
section would be picked up and give an error for the syntax error I introduced, but curiosly the ext.postBuildExtras {} section would not yield the same.
I moved the content of the file to the build-extras.gradle
in the root of the platform and now the Google app id was picked up.
So.. does anyone have an idea why the buildscript from the plugin wouldn't execute?
Hi, apologies in advance for not having a great deal of debug information, but this may ease frustration for someone else.
Ionic 3 hangs on splash screen if hasPermission() is called. The offending code in my app.component.ts:
this.firebaseNative.hasPermission()
.then(isEnabled => {
console.log("app.component firebasenative entry");
if (isEnabled){
this.logger.debug("firebase notification IS ENABLED in permissions");
} else {
this.logger.warn("firebase notification is NOT ENABLED in permissions");
}
})
.catch(error => console.error('Firebase hasPermission error token' + JSON.stringify(error)));;
I spent hours removing and re-adding the iOS platform, searching for build issues etc. I ended up stepping through the code with console.log statements as on iOS its too fast to get safari inspector up in time (let me know if theres a better option). I ended up seeing that the console log for 'app.component firebasenative entry' didn't fire, and the catch wasn't firing either. Simply commented it out and all good.
Hope this helps, apologies in advance for not having more debug information but that's the reason why it took me so long to find.
Hi,
Thank you for your time to read my issue.
I am having some issue trying to get the analytics working.
I've placed the function "window.FirebasePlugin.logEvent("page_view", {page: "dashboard"});" within my onDeviceReady() function to test it out, but unable to see any results on firebase dashboard.
Please advice, thanks very much.
Using following plugins together.
cordova-plugin-fcm ,
cordova plugin add cordova-plugin-firebase-analytics --save
and cordova plugin add cordova-plugin-googleplus.
ISSUE: After adding all the plugins FCM notification not works.
But all the three plugin works fine independent projects.
Getting some conflicts after integrating together.
I think some problem in different version of firebase and google plugin.
Hey there,
I came back to this plugin after a month and there were come upgrades. The plugin now supports cordova-android >6.0.
This is flashed in the CLI. But there is no mention of this in the docs.
Also, I wanted to revert back to a previous version but could not find it as there is no change log.
Thanks
Unfortunately, when adding the plugin, the build fails with this:
Updating ios build to use workspace.
Adding schemes
Error: EEXIST: file already exists, mkdir '/Users/myUserName/dev/myApp/platforms/ios/MyApp.xcworkspace/xcshareddata'
Any ideas? Really hope to get this working!
Thanks for all the work with the plugin!
Now the app crashes on iOS soon after the opening and nothing goes in output.
The GoogleService-Info.plist is well located in platforms/ios/{Project}/Resources and the app works good if this plugin is removed.
Searching for new pods
Checking com.dbaq.cordova.contactsPhoneNumbers for pods.
Checking cordova-plugin-app-event for pods.
Checking cordova-plugin-badge for pods.
Checking cordova-plugin-camera for pods.
Checking cordova-plugin-compat for pods.
Checking cordova-plugin-console for pods.
Checking cordova-plugin-contacts for pods.
Checking cordova-plugin-datepicker for pods.
Checking cordova-plugin-device for pods.
Checking cordova-plugin-file for pods.
Checking cordova-plugin-file-transfer for pods.
Checking cordova-plugin-firebase-analytics for pods.
cordova-plugin-firebase-analytics requires pod: Firebase/Analytics
Checking cordova-plugin-firebase-hooks for pods.
Checking cordova-plugin-google-analytics for pods.
Checking cordova-plugin-inappbrowser for pods.
Checking cordova-plugin-splashscreen for pods.
Checking cordova-plugin-statusbar for pods.
Checking cordova-plugin-whitelist for pods.
Checking cordova-plugin-x-socialsharing for pods.
Checking es6-promise-plugin for pods.
Checking ionic-plugin-deploy for pods.
Checking ionic-plugin-keyboard for pods.
Checking phonegap-plugin-push for pods.
Checking config.xml for pods.
Installing pods
Sit back and relax this could take a while.
�[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
�[0m
Analyzing dependencies
�[31mRemoving GGLInstanceID�[0m
�[31mRemoving GoogleCloudMessaging�[0m
�[31mRemoving GoogleIPhoneUtilities�[0m
�[31mRemoving GoogleInterchangeUtilities�[0m
�[31mRemoving GoogleSymbolUtilities�[0m
�[31mRemoving GoogleUtilities�[0m
Downloading dependencies
�[32mInstalling Firebase (4.0.2)�[0m
�[32mInstalling FirebaseAnalytics (4.0.1)�[0m
�[32mInstalling FirebaseCore (4.0.2)�[0m
�[32mInstalling FirebaseInstanceID (2.0.0)�[0m
�[32mInstalling GoogleToolboxForMac (2.1.1)�[0m
Generating Pods project
Integrating client project
Sending stats
�[32mPod installation complete! There is 1 dependency from the Podfile and 5 total pods installed.�[0m
Updating ios build to use workspace.
Adding schemes
Error: Cannot find module '../../node_modules/xcode'
All works fine. For example push notifications work.
But any Analytics stuff doesn't. For example: setScreenName doesn't work and analytics doesn't appear after few days at all!
i have this error after build.
Plugins/cordova-plugin-firebase-analytics/FirebaseAnalyticsPlugin.m:2:9: Module 'FirebaseAnalytics' not found
on android works. what is the problem with ios?
I have my GoogleService-info.plist in my root folder and I continually get the error that it is missing from the project. This plugin works great on Android. I have uninstalled the plugin, and the ios platform countless times and it still never works. Anyone else have this issue when using WKWebview?
Now that cordova-plugin-firebase-hooks is deprecated, how should google-services.json and GoogleService-Info.plist be copied to the correct platform folder (and added as a Resource on iOS)? I know I can do it manually, but I prefer if things just worked out of the box.
Error: cmd: Command failed with exit code 1 Error output:
app\platforms\android\src\by\chemerisuk\cordova\firebase\FirebaseAnalyticsPlugin.java:99: error: cannot find symbol
this.firebaseAnalytics.setCurrentScreen(
^
symbol: method setCurrentScreen(Activity,String,)
location: variable firebaseAnalytics of type FirebaseAnalytics
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Firebase has recently announced that Crashlytics will be their new error reporting platform. Do you have any plans to add the crashlytics API to this plugin in the near future?
Hi,
with ios version and xcode, i have this error on build.
Apple Mach-O Linker (ld) Error
"OBJC_CLASS$_FIRAnalyticsConfiguration", referenced from:
"OBJC_CLASS$_FIRAnalytics", referenced from:
"OBJC_CLASS$_FIRApp", referenced from:
linker command failed with exit code 1 (use -v to see invocation)
what is the problem?
Thanks for the great plugin, @chemerisuk! Everything is working fantastic on iOS, but have a little glitch with how it works on Android.
I can log lots of events, views etc and nothing appears in the Firebase Analytics StreamView (I get "OK" returned in the JS console, and no errors in logcat). If I then do adb shell setprop debug.firebase.analytics.app com.my.app.name
, do another analytics command and then switch back with adb shell setprop debug.firebase.analytics.app .none.
then all of the non-debug data suddenly appears on the StreamView alongside the debug data on the DebugView.
Without triggering this, the data never gets sent through to the server. I don't really know how to replicate this, I assume this works fine for everyone else from a scratch project?
Only thing I can think of that might be conflicting is the phonegap-plugin-push
plugin, which is on 2.0.0. I am using 0.10.1 of cordova-plugin-firebase-analytics
.
Got this message when trying to build for android:
Could not find any version that matches com.google.firebase:firebase-core:11.0.+.
I had to update my Google Repository in the Android SDK manager to latest. Just FYI in case anyone else runs into the same issue (could be added to the FAQ in the README). Thanks for the plugin!
The setEnabled method does not work. The comparison of the arg with true should be done with a ".equals" instead of "=="
Hi after i install this plugin my builds are failing with error cannot find module glob after i uninstall the plugin the build passes am using cordova v6.4.0 crosswalk plugin v19
After fresh install of version ~ 0.9.4 a build triggers this error...
It seems to be related to this other project, but I'm not sure yet what to do with it.
It only happens when building.
HI
I am trying to implement firebase analytics in our hybrid app . Configurations are --
node 4.2.1, ionic 2.0.0, cordova 5.3.3
->added $ cordova plugin add cordova-plugin-firebase-analytics
->I have made sure to add google-service.json file
->Made appropriate changes in build.gradle ( classpath 'com.google.gms:google-services:3.1.0')
the build is successful after these settings , but the moment I launch this app in android device
error comes App has stopped.
I was successful in implementing google analytics with cordova plugin , but there seems to be something in firebase plugin which kills the app (may be compatibility).
Please help .....
Since both have analytics and for avoiding reinventing the wheel .
https://github.com/arnesson/cordova-plugin-firebase/commits/master
I tried building my app in iOS for the first time after having added cordova-plugin-firebase-analytics, and I am getting the following error:
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build ios --release (exit code 1):
(truncated) ...
e.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c
-arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99
-fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/nafas/Library/Developer/Xcode/DerivedData/ModuleCache
-fmodules-prune-interval=86400 -fmodules-prune-after=345600
-fbuild-session-file=/Users/nafas/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation
-fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers
-Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match
-Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter
-Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow
-Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion
-Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match
-Wundeclared-selector -Wno-deprecated-implementations -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g
-fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch
-iquote
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-generated-files.hmap
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-own-target-headers.hmap
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-all-target-headers.hmap
-iquote
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-project-headers.hmap
-I/Users/nafas/updoc/app/platforms/ios/build/emulator/include
-I/Users/nafas/updoc/app/platforms/ios/build/emulator/usr/local/lib/include
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/UninstalledProducts/include
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/UninstalledProducts/iphonesimulator/include
-I/Users/nafas/updoc/app/platforms/ios/build/emulator
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/DerivedSources/i386
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/DerivedSources
-F/Users/nafas/updoc/app/platforms/ios/build/emulator -include
/Users/nafas/updoc/app/platforms/ios/build/sharedpch/Updoc-Prefix-hdaupibbgcnigebntimpqhbbwlsk/Updoc-Prefix.pch
-MMD -MT dependencies -MF
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/CDVInAppBrowser.d
--serialize-diagnostics
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/CDVInAppBrowser.dia
-c /Users/nafas/updoc/app/platforms/ios/Updoc/Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m -o
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/CDVInAppBrowser.o
** BUILD FAILED **
The following build commands failed:
CompileC
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/FirebaseAnalyticsPlugin.o
Updoc/Plugins/cordova-plugin-firebase-analytics/FirebaseAnalyticsPlugin.m normal i386 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args:
-xcconfig,/Users/nafas/updoc/app/platforms/ios/cordova/build-release.xcconfig,-workspace,Updoc.xcworkspace,-scheme,Updoc,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS
Simulator,name=iPhone
SE,build,CONFIGURATION_BUILD_DIR=/Users/nafas/updoc/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/nafas/updoc/app/platforms/ios/build/sharedpch
Please, has anyone managed to use this together with phonegap-plugin-push?
Using both plugins on android seems fine but I get an error about duplication of definitions when building for ios.
I know about cordova-plugin-firebase-messaging, but I don't want to rewrite all that code at the moment.
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v6.9.4
Xcode version: Xcode 8.2.1 Build version 8C1002
when I install the plugin, 404 error for download: node-v48-darwin-x64.tar.gz
======
$ cordova plugin add [email protected]
Fetching plugin "[email protected]" via npm
Installing "cordova-plugin-firebase-analytics" for android
Fetching plugin "cordova-plugin-firebase-hooks" via npm
Installing "cordova-plugin-firebase-hooks" for android
Fetching plugin "cordova-plugin-cocoapod-support" via npm
Installing "cordova-plugin-cocoapod-support" for android
node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v48-darwin-x64.tar.gz
node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v48-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v48-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v48-darwin-x64.tar.gz
In file included from ../vendor/libxml/xpath.c:476:
../vendor/libxml/trionan.c:194:1: warning: unused function 'trio_is_special_quantity' [-Wunused-function]
trio_is_special_quantity
^
../vendor/libxml/trionan.c:218:1: warning: unused function 'trio_is_negative' [-Wunused-function]
trio_is_negative
^
2 warnings generated.
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
ANDROID_HOME=/Users/sonic/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.
:clean
:CordovaLib:clean
BUILD SUCCESSFUL
Total time: 1.558 secs
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Installing "cordova-plugin-firebase-analytics" for ios
Installing "cordova-plugin-firebase-hooks" for ios
Installing "cordova-plugin-cocoapod-support" for ios
I'm getting the following error each time I try to run the app in an android device
"What went wrong:
Execution failed for task ':processArmv7DebugGoogleServices'.
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.0."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.