cordova-3

User push notifications in cordova 3.3

孤街浪徒 提交于 2019-12-31 04:08:33
问题 I want to implement notifications in android using 3.3 cordova, I'm new at this. I have tried several tutorials but without success. Could explain a simple way to implement it step by step? Thank You 回答1: Cordova Push Notifications Plugin for Android, iOS and WP8 This plugin is for use with Cordova, and allows your application to receive push notifications on both Android and iOS devices. The Android implementation uses Google's GCM (Google Cloud Messaging) service, whereas the iOS version is

Per platform configuration (config.xml) on cordova

北慕城南 提交于 2019-12-25 02:29:07
问题 something like- <gap:config-file platform="ios" parent="UISupportedInterfaceOrientations" overwrite="true"> <array> <string>UIInterfaceOrientationPortrait</string> </array> </gap:config-file> like the answer from this question regarding Phonegap. is there an option for it in config.xml on Cordova? 回答1: For screen orientation, adding <preference name="Orientation" value="portrait" /> will result in the CLI adding the specific tags in the platform specific config files each time you build

Getting Blank Black adMob ad in Cordova using Admob Plugin

天大地大妈咪最大 提交于 2019-12-25 02:18:08
问题 I am using this admob cordova plugin. I've installed the plugin in Icenium and put the javascript code in the body: document.addEventListener('deviceready', function () { if (window.plugins && window.plugins.AdMob) { var admob_ios_key = 'xxxxxxxxxxxxxxx'; var admob_android_key = 'xxxxxxxxxxxxxxx'; var adId = (navigator.userAgent.indexOf('Android') >= 0) ? admob_android_key : admob_ios_key; var am = window.plugins.AdMob; am.createBannerView( { 'publisherId': adId, 'adSize': am.AD_SIZE.BANNER,

Phonegap 3.4 FileTransfer error (iOS)

大城市里の小女人 提交于 2019-12-24 17:26:47
问题 I'm trying to load a file from a server and save it on the device. This code used to work in Phonegap 3.1, and it's still working fine with 3.4 on Android. But when I run the same code on iOS 7.1. I got an error saying, { "code":1, "source":"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/18/96730/70400", "target":null, "http_status":200, "body":"Could not create target file" } Here's my code. var fileTransfer = new FileTransfer(); fileTransfer.download

What are the implications of disbling websecurity in a blackberry10 app?

会有一股神秘感。 提交于 2019-12-24 04:16:10
问题 In another question dealing with a bug in blackberry10 that denies cross origin XHR calls, it is proposed to get around the issue by disabling web security. But what does disabling web security really imply here? Am I going to torture small harmless woodland creatures if I use this? Seriously though, does doing this expose my app to additional security risks beyond those introduced when adding the popular wildcard access uri="*" or access origin="*" line in my config.xml for blackberry10?

Unzipping file in phonegap using zip.js

别说谁变了你拦得住时间么 提交于 2019-12-23 20:05:08
问题 am using PhoneGap Cordova 3.3.0 and latest version of zip.js. The script is able to get the list of files inside the archive but is unable to get any binary data. Am using the fix by Hugeen but no luck. function decompress(fullsavepath, filename){ zip.useWebWorkers = false; file_system.root.getFile("app_cache/temp.zip", {}, function(fileEntry){ fileEntry.file(function (file) { zip.createReader(new zip.BlobReader(file), function(reader) { // get all entries from the zip reader.getEntries

Cordova InAppBrowser and <a target=“_blank”> not working

ⅰ亾dé卋堺 提交于 2019-12-23 20:03:08
问题 I am using Cordova 3.4.1 on iOS with the InAppBrowser plugin version 0.4.0. When I have an <a href="...." target="_blank"> element, it is supposed to open in the InAppBrowser but it doesn't. Instead in replaces my app in the CordovaWebView and I have no way of getting back to the app. if I do window.open it seems to work fine, but it isn't really feasible for me to add onclick handlers to all my links to then open them up in the InAppBrowser. 回答1: This seems to be by design as per this bug...

Admob with Cordova 3 and Google play services

╄→гoц情女王★ 提交于 2019-12-22 18:47:21
问题 I am trying to get AdMob on my Phonegap/Cordova 3 application but not sure if I am using the correct plugin. I have tried these two plugins below but cant seem to get them to work. I am just wondering if someone could confirm these plugins are working with latest Cordova 3 and google play services. https://github.com/floatinghotpot/cordova-plugin-admob https://github.com/aliokan/cordova-plugin-admob These plugins seem to be using Admob plugin but now Android uses Google play services so is

Cordova 3.3 - fileSystem.root.fullPath returns “/” instead of full path

…衆ロ難τιáo~ 提交于 2019-12-22 05:34:16
问题 I had a piece of code working with Cordova 2.7. I upgraded my app to Cordova 3.3 along with upgrading all the custom plugins I developed. I was successfully able to get the full absolute path of the Documents directory on iOS with Cordova 2.7, but with Cordova 3.3 it just returns / for the fullPath Here is my code: window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); function gotFS

Jquery mobile 1.4 on iOS the fixed elements on bottom of page hide input text onfocus

孤街醉人 提交于 2019-12-21 21:43:34
问题 Hi there I am building cordova 3 app with Jquery mobile 1.4 Safari, and Chrome on my mac have no issues with the following, but when I deploy on the real device, or iOS simulator and want to type in the fields I get the bottom fixed elements of the page moving up and overlapping the input elements. The cursor is blinking in the right position, where the input field is, but the slider of the footer is hiding it. To make it simple my page looks like that: [header fixed] div with input text div