Hello everybody i create application by jQuery mobile and
i use cordova versions 6.3.0,
i have a problem because the plugin is use cordova-plugin-mauron85-background-geolocation needs version "6.3.0",
The problem is: i need push notification plugin com.phonegap.plugins.pushplugin and it needs version "3.7.0"
can use two cordova version On the same app ?.
Related
I am finding any cordova plugin to PictureInPicture for IOS. There is one plugin only for PictureInPicture which is only developed for android and working fine but I need one for ios as well.
For android I have used the plugin https://www.npmjs.com/package/cordova-plugin-pip.
Please let me know if there is any plugin available or how I can achieve this.
I am trying to get google analytics setup with my ionic Android app using this plugin: https://github.com/danwilson/google-analytics-plugin.It works fine with my iOS ionic app.
I'm using the 1.6.0 version of the plugin; using commands such as "trackView" or "trackEvent" doesn't record anything to the analytics control panel. I have no console errors and initializing with "startTrackerWithId" using the key is successful.
Running the app on an iOS phone shows up in analytics, but not for android. So not sure what the issue is and why it isn't working only for Android?
Had the same issue with version 1.7.4.
Downgrade to version 1.5.5 did the trick.
You can do it by running cordova plugin remove cordova-plugin-google-analytics and then cordova plugin add cordova-plugin-google-analytics#1.5.5
I am a little new to Salesforce Hybrid Mobile application development.
I have a well running hybrid application.
But recently when uploading the APK to play store, play store gives an error
Your APK has been rejected for containing security vulnerabilities, which violates the Malicious Behavior policy. The Alerts page has more information about how to resolve the issue. If you submitted an update, the previous version of your app is still live on Google Play.
After some analysis I found that my android platform version is 3.6.x which might be the reason for rejection.
So I updated cordova android platform of my existing Salesforce Hybrid app using the following command.
cordova platform update android
After updating the version of android platform is 5.2.2
Salesforce Mobile sdk guide says to reinstall the salesforce plugin
So,
cordova plugin remove com.salesforce
And then
cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin
But, while re-adding the plugin it gives the following message
Plugin doesn't support this project's cordova-android version. cordova-android: 5.2.2, failed version requirement: 5.0.0
Skipping 'com.salesforce' for android
And again running the project in eclipse gives many errors.
Not able to pin point the specefic issue here.
Any help is appretiated.
Thanks in advance.
You have to update to 5.0.0 instead of 5.2.2 because Salesforce plugin is made to 5.0.0 version.
You can see that in the plugin.xml file, in the engine tag.
<engines>
<engine name="cordova-android" version="5.0.0" />
<engine name="cordova-ios" version="4.2.0" />
</engines>
Google Play is showing Cordova Security Alerts on my app. And they suggested me to update existing cordova version to higher at 4.1.1.
Please migrate your app(s) to Apache Cordova v.4.1.1 or higher as soon
as possible and increment the version number of the upgraded APK. If
you are using a 3rd party library that includes Apache Cordova, please
notify the 3rd party and work with them to address the issue.
I have already upgraded my Cordova version to: 4.2.0 and here is the code:
Mds-MacBook-Pro:BanglaGaanerTaroka Morol$ cordova -v
4.2.0
Mds-MacBook-Pro:BanglaGaanerTaroka Morol$
Google Play Developer console still showing this alert and that affected my latest APK version too.
Is there anyone facing the same issue? Or how to solve it?
Thanks in advance.
First of all, you should understand that there is a cordova CLI version and cordova platform versions.
When google play ask you to update to cordova 4.1.1, he is not asking you to update the CLI to cordova 4.1.1, he is asking you to update the cordova android (platform) version to 4.1.1.
If you update the CLI to 4.2.0 you get cordova android 3.6.4 that is still vulnerable.
So, the first thing you should do is to update the cli to 6.0.0 (latest version right now) with
npm install -g cordova
But updating the CLI isn't enough, you have to update your project too.
Go to your project folder and run
cordova platform update android
That will update your project to Cordova Android: ~5.1.0
Sorry if it's a stupid question but Google this time didn't help me.
I'm making my apps using cordova. I read that phone gap comes from cordova. I read also that now they are almost the same (if you open phone gap website it talks about cordova and gives cordova examples, so...).
Now my question is: in an app created with cordova, can I use a plugin for phonegap?
Example: just made work pushplugin for cordova (https://github.com/phonegap-build/PushPlugin). Now it says it's deprecated and to use phonegap-push-plugin (https://github.com/phonegap/phonegap-plugin-push) that is also completely different (and, if you're interested, already has problems with beta iOS 9).
So, if I have an app already made with cordova, can I add this new plugin?
Using phonegap plugin add phonegap-plugin-push or cordova plugin add phonegap-plugin-push?
Yes you can use latest push plugin in cordova by using cordova plugin add phonegap-plugin-push, if you have cordova verison >= 5.0 . Cordova and Phonegap both use same plugins almost.You can resolve your confusion about phongap and cordova from this http://phonegap.com/2012/03/19/phonegap-cordova-and-what%E2%80%99s-in-a-name/ ,but in short any plugin which is used in phonegap, can be used for cordova and vice versa. You can find different ids for same plugin like , for example for push plugin
phonegap-plugin-push and cordova-plugin-push-notification, but they both have same source code.
I am quoting a pargraph from post i mentioned :
PhoneGap is a distribution of Apache Cordova. You can think of Apache
Cordova as the engine that powers PhoneGap, similar to how WebKit is
the engine that powers Chrome or Safari.