I’ve created a new ionic app with ionic version 4.0.0-beta.7 and while adding the Crashlytics plugin, my app is not compiling successfully. Also i cannot see the documentation for crashlytics on https://beta.ionicframework.com/docs/native/. So do ionic 4 beta supports crashlytics or not?
I am getting the following exception in browser console.
Uncaught TypeError: Object(...) is not a function
at index.js:194
at Object../node_modules/#ionic-native/fabric/index.js (index.js:296)
My app is using ionic native 5.0.0.beta-15.
In ionic 4 is all like before (about plugins), just need to append "/ngx" to the path of the wrapper of the plugin. So if the path was "#ionic-native/crashlytics" now it "#ionic-native/crashlytics/ngx"
Related
Version used: "#awesome-cordova-plugins/in-app-purchase-2": "^5.46.0",
Actions on Webstorm (ionic project) :
ionic build
npx cap sync
npx cap open android
Actions on Android Studio:
Generate a signed bundle
Actions on google play console:
Create new release with the signed bundle
Warning on google play :
We've detected that this app is using an old version of Google Play Billing. By November 1, 2022, all app updates must use Billing Library version 4 or newer. Update to Billing Library 4 before this date.
What I tried without success:
Add these two lines in the build.graddle:app and in capacitor.build.graddle and in the capacitor-cordova-android-plugins/build.graddle:
dependencies {
....
implementation "com.android.billingclient:billing:5.0.0"
}
What I want:
How do I update the PlayBillingLibrary from ionic and have it be taken into account with Capacitor when i sync my app on android (npx cap sync) ?
Thanks in advance
You need to update cordova-plugin-purchase to version 11.0.0 or higher (see RELEASE_NOTES.md).
I am trying to integrate adMob using capacitor to my ionic app. I followed these steps https://ionicframework.com/docs/native/admob-free
When I run the solution on Android Studio I am getting this error.
C:\Projects\my-app\android\capacitor-cordova-android-plugins\src\main\java\name\ratson\cordova\admob\AdMob.java:5: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
Am I missing something?
Hello I also tried admob free and encountered a few errors. I tried this later <https://github.com/capacitor-community/admob> If you can't find a solution, you can try this.
This is an error regarding ionic, I have just upgraded from IONIC 4 to IONIC 5. I have also upgraded my nodejs to latest version 12.16.4. Now I am getting error while performing ionic serve on my ionic projects. Could you please help me out in this regard?
I have been trying to add Cordova to ionic 4 projects but i keep getting an error and I know prior now i was able to add the same but not anymore.
Whenever i run the below command its exiting with error code 1
ionic cordova plugin add cordova-plugin-x-socialsharing
I don't actually know what i am doing wrong or Cordova is no longer working
I have asked in the ionic forum but no response yet
https://forum.ionicframework.com/t/not-able-to-add-cordova-to-ionic-4/177323
following the official getting started tutorial I get the following error when I try to deploy the application in my phone using this command: ionic serve --devapp (it works on browser):
[ERROR] Could not find cordova integration in the default project.
I get this error both on Windows and MacOS.
I'm using Node 6.4.1 and Ionic CLI 4.10.3
Does the official tutorial missing something?
I had the same issue. In fact, with the default project, you have to copy the cordova assets to prepare the native build for mobile.
You can find more info here : Ionic documentation
Try this :
ionic cordova prepare
And then go again with :
ionic serve --devapp
The accepted answer is 100% correct .
But the reason why this occurred for me was that somehow the default was capacitor and not cordova.
so first i ran
ionic integrations disable capacitor
then ran
ionic cordova prepare
which solved my issue