Comments (10)
Hi stewwan, I found the issue. It is running again.
Thanks
from firebase-analytics.
can you try again from 2.0.1 ?
from firebase-analytics.
Now it is not working at all. When you try to run it on a device you got the following error
E/AndroidRuntime: FATAL EXCEPTION: main
Process: ------, PID: 12408
java.lang.RuntimeException: Unable to start activity ComponentInfo{----/----.MainActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.coordinatorlayout.widget.CoordinatorLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
from firebase-analytics.
Are you targeting android 29? Please give it a try with a clean install from capacitor v2
from firebase-analytics.
Capacitor V2 is still beta. Is there a way I can install again the previous version of the plugin?
from firebase-analytics.
Sure you can try removing node_modules, package.lock and npm install [email protected]
Then npx cap sync android
from firebase-analytics.
Thanks. I was able to roll it back but I am getting the following error
Uncaught (in promise): TypeError: Cannot read property 'logEvent' of undefined
TypeError: Cannot read property 'logEvent' of undefined
After the update this code was working.
Just using
import { Analytics } from 'capacitor-analytics';
const analytics = new Analytics();
ngOnInit() {
analytics.logEvent({
name: 'view',
params: { page: 'carrito' }
});
}
Also try placing the code on the constructor.
Thanks
from firebase-analytics.
sounds like js api is broken.
you can try using capacitor api directly
import { Plugins } from '@capacitor/core';
const { AnalyticsPlugin } = Plugins;
//...
AnalyticsPlugin.logEvent(...)
also don't forget to initialise the plugin in java code as described on readme
add(AnalyticsPlugin.class);
from firebase-analytics.
Still the same. I have init the plugin
import io.stewan.capacitor.analytics.AnalyticsPlugin;
//...
add(AnalyticsPlugin.class);
from firebase-analytics.
nice @gusmarra. feel free to report any new issue.
from firebase-analytics.
Related Issues (20)
- Play Console Error : Manifest doesn't include Advertising ID permission HOT 2
- Expose setUserProperties to set multiple user properties at once
- Disable auto tracking screen_view on web, but still allow events
- No App Version in analytics since update to 5.0 HOT 1
- In_app_purchase and version log when using @capacitor-community/firebase-analytics HOT 2
- XCode 15 build failed - DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead HOT 1
- No data are visible in the firebase analytics console in localhost HOT 1
- Consent management HOT 4
- Android not tracked
- [IOS] [FirebaseAnalytics][I-ACS013000] Screen parameter value must be of type NSString: (nil) HOT 2
- In app purchases not reported from Android HOT 1
- [FEATURE]: Add required `Privacy Manifest` file for iOS HOT 5
- Question about the screen_view
- Question about the GDPR and the user consent
- Please update this plugin to support capacitor 6 version HOT 1
- Compatibility with @capacitor/core 6.0.0 HOT 1
- ERROR Error: Uncaught (in promise): Firebase analytics is not initialized. Make sure initializeFirebase() is called once HOT 1
- Using the latest version of the SDK for IOS HOT 6
- Disable Auto page_views for web
- Compile error when Gradle Build Cache enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-analytics.