cordova-plugins

Receive URL in Ionic/Cordova

纵饮孤独 提交于 2019-12-03 07:28:39
问题 I'm trying to set up a way to receive a url from another app. Like, you are in browser, click share, and send the link to another app (my app). I found this cordova plugin, and have integrated it in my app, but I continue to not show any url when I test it. I get an alert that says: getUri url:null Any help would be great. Happy to add more code if helpful. app.js : 'use strict'; // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the

How do I implement Campaign tracking with Cordova?

末鹿安然 提交于 2019-12-03 04:42:57
I am trying to implement campaign tracking in my cordova app, but I am not having success. I previously used danwilson plugin, which works nice, but it does not have support for campaigns, as I saw here: https://github.com/danwilson/google-analytics-plugin/issues/68 So I changed my plugin to this fork: https://github.com/Anu2g/google-analytics-plugin Which have campaign tracking. I am currently testing in Android, I have added this to my manifest <!-- Used for Google Play Store Campaign Measurement--> <service android:name="com.google.android.gms.analytics.CampaignTrackingService" /> <receiver

How to bundle CocoaPods dependencies with Cordova Plugin?

浪尽此生 提交于 2019-12-03 04:21:14
I'm developing a Cordova plugin, and for the iOS platform, I'd like to incorporate a few existing (non-cordova-specific) Cocoapods. I haven't been able to find any info or examples on how to get this working, and I would've expected this to be a fairly common use-case. Note that I am not trying to use Cordova as a Cocoapod, for which there is a decent amount of information out there, but rather use Cocoapods from within the iOS platform of a Cordova plugin that I'm developing. Cordova's plugin.xml generally needs to list all project dependencies to bundle things correctly. Does anyone know of

package.json vs config.xml for cordova plugins

99封情书 提交于 2019-12-03 03:37:53
问题 What is the right way to manage Cordova's plugins & platforms ? On a project using cordova@5.4.0 & ionic-cli@1.7.8 , I face 2 possibilities: with Cordova (config.xml) cordova create dummy-project && cd dummy-project cordova platform add browser --save cordova plugin add cordova-plugin-device --save ## If forgot to add `--save` option, manually update config.xml #cordova platform save #cordova plugin save # reset platforms & plugins, like we just checked out the repository rm -rf platforms

Ionic app crashes on iOS 12.2 because of '_alwaysRunsAtForegroundPriority'

喜欢而已 提交于 2019-12-03 03:20:00
On iOS 12.2 my app is terminated just after startup, with this message in xcode: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.' Anyone who can point me in the right direction for this one? I see that there has been some warnings about this earlier: How to resolve app validation "The app references non-public selectors in Payload/MyApp.app/MyApp: _setAlwaysRunsAtForegroundPriority:"? The answer to that post is that it's a security warning from

Plugin not found, or is not a CDVPlugin. Check your plugin mapping in config.xml

荒凉一梦 提交于 2019-12-03 03:10:01
I have declared my plugin file for iOS inside plugin.xml like so: <config-file target="config.xml" parent="/*"> <feature name="CDVOP"> <param name="ios-package" value="CDVOP"/> </feature> </config-file> <header-file src="src/ios/CDVOP.h" /> <source-file src="src/ios/CDVOP.m" /> In the plugin JavaScript file I have this function which I later call from the JavaScript app showCatPictures: function(interval) { exec(null, null, 'CDVOP', 'showCatPictures', [interval]); }, I am running the app that uses this plugin from xcode to see the debug output. I get this when I call the showCatPictures

Cordova doesn't send origin on request in some Android devices

雨燕双飞 提交于 2019-12-03 02:54:21
This is a problem that happens on some android devices. I have a Samsung Galaxy A5 (2017) with Google Chrome version 76.0.3809.89 and Android version 8.0.0. When I deploy my Cordova application for the first time on this device and making a POST request I receive an error about CORS: Access to XMLHttpRequest at 'http://foo.com/bar' from origin 'file://' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. I can saw from Chrome's dev tool network tab that this POST request,

Cordova: Unexpected Machine Code - Your upload contains both bitcode and native machine code

你。 提交于 2019-12-03 02:38:54
问题 I'm building an iOS Cordova app. And when I upload it to the iTunes Connect it returns the following error. Unexpected Machine Code - Your upload contains both bitcode and native machine code. When you provide bitcode, it's not necessary to include machine code as well. To reduce the size of your upload, use Xcode 7.3 or later, or any other toolchain that removes machine code. I've changed quite a lot of settings in config.xml today so I'm not sure whether I've did something wrong and is it

Cordova shows an warning as “ THREAD WARNING: [Your function] took [n] ms. ” in iOS

我的梦境 提交于 2019-12-03 02:24:30
"THREAD WARNING: ['Console'] took '81.661865' ms. Plugin should use a background thread." While running iOS Phonegap project. Similarly for some of the remaining plugins like geolocation and filesystem. As I am new to Phonegap ,can please anyone tell me how can I run the plugin on background thread. I have checked this also. Can we ignore this thread warning or is it related to memory issue in iOS Phone-gap thanks As per this . solved my warning issue I found warning can be ignored .But this can be solved by adding background thread using this loop:(In CDVLogger.m) [self.commandDelegate

Status Bar on iOS Background Color

此生再无相见时 提交于 2019-12-02 23:57:46
I’m having a hard time setting the iOS status bar background color to transparent. I’m using the latest version of cordova statusbar and ionic, and leaving everything to their default setting, however i’m getting a white background color for some reason. How can i set the background color to transplant, i though this is the default value anyhow. Okay so after referring to: https://issues.apache.org/jira/browse/CB-12886 and https://issues.apache.org/jira/browse/CB-12890 The issue occurs in iOS 11, and cordova-ios-4.5.0 and is simply solved by adding the cover value to viewport-fit as follows in