-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Google Analytics - cordova_not_available #1353
Comments
Just throwing in my 2 cents. Cordova is only available on devices. If you want to use native functionalities in your browser you can mock them with ionic native 3.x.x. |
@dtaalbers I think the problem with this is that he gets |
Ah in that case, ignore me! I agree that shouldn't be an error. |
Make sure you wrap your code with |
I'm seeing this with google analytics while wrapped in platform.ready. Catching the promise fixes it, but i only expect a warning instead of an exception. |
Seeing this too. I'm in platform ready on the browser, no reason to throw an exception, really annoying... Could this issue be reopened @ihadeed ? |
Same here. Very weird. It happens just with Analytics. |
However, as @boboldehampsink has said, setting a simple catch() fixes it. But it's worth the record. |
@ihadeed can this be reopened? I am seeing the issue when wrapping in platform.ready on @boboldehampsink do you mean a catch on the |
@ihadeed, I would also like to request that this be reopened. I'm facing this issue as well even after wrapping in |
I have also the problem with Ionic 4 |
The same problem on @ionic/angular 5.3.2 ... is there any solution after 3 years? |
Same issue here, the docs for this library say it can be used in browser to why is |
From @mikeborozdin on April 9, 2017 17:19
Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
An error in the browser screen:
Expected behavior:
No error. I should be able to see my application
Steps to reproduce:
ionic start --v3 myApp
)2.1 ionic plugin add cordova-plugin-google-analytics
2.2 npm install --save @ionic-native/google-analytics
2.3. Add the sample snippet code
2.4 Run
ionic serve
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):Copied from original issue: ionic-team/ionic-framework#11139
The text was updated successfully, but these errors were encountered: