¡@

Home 

2014/10/15 ¤U¤È 10:05:35

iphone Programming Glossary: cordova

Error: Whitelist rejection in Phonegap

http://stackoverflow.com/questions/10795628/error-whitelist-rejection-in-phonegap

Whitelist rejection in Phonegap I'm new to mobile development. I'm using Phonegap Cordova to create a cross platform app. My code works well on Android but when I'm porting it to iPhone it's showing an error 143.. 2.x onwards whitelist configuration is done via cordova.xml . You have to add allowed URLs into PhoneGap.plist's or Cordova.plist ExternalHosts array. For example if you want to allow access to this URL http www.myhost.com path file then add www.myhost.com..

Programmatically show soft keyboard on iPhone in a PhoneGap application?

http://stackoverflow.com/questions/12140484/programmatically-show-soft-keyboard-on-iphone-in-a-phonegap-application

application I've been searching far and long and to this moment I did not come across a working solution for PhoneGap Cordova applications that would show soft keyboard programmatically. Scenario We have a PhoneGap application a website created in.. plugin for PhoneGap Copyright 2012 Martin Ambrus. #import Foundation Foundation.h #ifdef CORDOVA_FRAMEWORK #import Cordova CDVPlugin.h #else #import CDVPlugin.h #endif @interface keyboardHelper CDVPlugin NSString callbackID @property nonatomic.. request to the server return NO @end javascript var keyboardHelper showKeyboard function types success fail return Cordova.exec success fail keyboardHelper showKeyboard types iphone phonegap cordova iphone softkeyboard share improve this question..

iPhone 5 splashscreen not displaying correctly - Phonegap

http://stackoverflow.com/questions/12450603/iphone-5-splashscreen-not-displaying-correctly-phonegap

its non retina version but even without the smaller ones present anywhere in the project I get the same error UPDATE 2 Cordova 2.2.0 has now been released thus fixing this issue according to http shazronatadobe.wordpress.com 2012 10 27 whats new in.. 2012 10 27 whats new in cordova ios 2 2 0 So the recommended solution would therefore be to update your app to use Cordova 2.2.0 if that is for some reason not possible solutions are provided below. iphone ios phonegap cordova splash screen .. @ 568h launchImageFile And from Brion who commented above the following pull request hoepfully to be incorporated into Cordova 2.2.0 https github.com apache incubator cordova ios pull 50 EDIT Tried T123's solution and it's working for me EDIT2 Brion's..

How can I open an iframe in a phonegap/cordova app running on IOS?

http://stackoverflow.com/questions/15212824/how-can-i-open-an-iframe-in-a-phonegap-cordova-app-running-on-ios

can I open an iframe in a phonegap cordova app running on IOS I have a webapp that I'm using with PhoneGap Cordova to install in iOS and Android. At one point in the app I have an iframe that loads content from a second server. When I.. opens in the same page and loads the content from the second site. When I run the webapp on an iPhone simulator using Cordova when the iframe opens iOS switches over to Safari and puts my app in the background. Steps taken I added the second site.. to Safari and puts my app in the background. Steps taken I added the second site to the ExternalHosts array in the Cordova.plist file. I created a config.xml file next to the index.html file in the www directory according to the PhoneGap Cordova..

Invoke native date picker from web-app on iOS/Android

http://stackoverflow.com/questions/4946919/invoke-native-date-picker-from-web-app-on-ios-android

June 1st. However when setting the value from JavaScript it needs leading zeroes 2012 06 01 . When using things like Cordova PhoneGap to display the native date picker on devices that don't support type date Be sure to properly detect built in support... Be sure to properly detect built in support. Like on the Galaxy S2 running Android 4.0.3 erroneously also using the Cordova Android plugin will result in showing the date picker twice in a row once again after clicking set in its first occurence... make the native date picker show cancel or clear but I guess that's an iOS 4 thing . On an iOS 4 iPad simulator the Cordova plugin does not seem to render correctly basically not giving the user any option to enter or change a date. Maybe iOS 4..

Access files using using Phonegap

http://stackoverflow.com/questions/10461680/access-files-using-using-phonegap

files using using Phonegap I'm trying to work with files on IOS using Phonegap cordova 1.7.0 . I read how to access files and read them on the API Documentation of phone gap. But I don't know when the file is.. reader.readAsText file function fail evt console.log evt.target.error.code javascript iphone ios5 phonegap cordova share improve this question That's what worked for me in case anyone needs it function ReadFile var onSuccess function..

Error: Whitelist rejection in Phonegap

http://stackoverflow.com/questions/10795628/error-whitelist-rejection-in-phonegap

showing an error 143 2003 ERROR whitelist rejection url abc Now can I overcome this problem iphone html5 phonegap cordova whitelist share improve this question Notice This answer only applies for PhoneGap version 1.x and below. From version.. answer only applies for PhoneGap version 1.x and below. From version 2.x onwards whitelist configuration is done via cordova.xml . You have to add allowed URLs into PhoneGap.plist's or Cordova.plist ExternalHosts array. For example if you want to..

Is PhoneGap the right choice for me?

http://stackoverflow.com/questions/11422108/is-phonegap-the-right-choice-for-me

contact a server Can PhoneGap handle that Thank you for bearing with all these questions android iphone ios phonegap cordova share improve this question PhoneGap achieves platform compatibility by embedding a webview within your application...

Programmatically show soft keyboard on iPhone in a PhoneGap application?

http://stackoverflow.com/questions/12140484/programmatically-show-soft-keyboard-on-iphone-in-a-phonegap-application

function types success fail return Cordova.exec success fail keyboardHelper showKeyboard types iphone phonegap cordova iphone softkeyboard share improve this question You can get the coordinates for the input field using javascript on..

iPhone 5 splashscreen not displaying correctly - Phonegap

http://stackoverflow.com/questions/12450603/iphone-5-splashscreen-not-displaying-correctly-phonegap

has now been released thus fixing this issue according to http shazronatadobe.wordpress.com 2012 10 27 whats new in cordova ios 2 2 0 So the recommended solution would therefore be to update your app to use Cordova 2.2.0 if that is for some reason.. app to use Cordova 2.2.0 if that is for some reason not possible solutions are provided below. iphone ios phonegap cordova splash screen share improve this question I've received two answers elsewhere but haven't had time to test them out.. above the following pull request hoepfully to be incorporated into Cordova 2.2.0 https github.com apache incubator cordova ios pull 50 EDIT Tried T123's solution and it's working for me EDIT2 Brion's fix was incorporated in Cordova 2.2.0 which..

How can I open an iframe in a phonegap/cordova app running on IOS?

http://stackoverflow.com/questions/15212824/how-can-i-open-an-iframe-in-a-phonegap-cordova-app-running-on-ios

can I open an iframe in a phonegap cordova app running on IOS I have a webapp that I'm using with PhoneGap Cordova to install in iOS and Android. At one point in.. there could be something else... Does anyone have any ideas what I might be doing wrong iphone ios phonegap iframe cordova share improve this question After adding an InAppBrowser in place of the iframe I was using before I eventually tried..

NativeControls plugin doesn't work with Cordova 2.7.0

http://stackoverflow.com/questions/16680793/nativecontrols-plugin-doesnt-work-with-cordova-2-7-0

plugin doesn't work with Cordova 2.7.0 Cordova 2.7.0 no longer allows deprecated forms of calls to cordova.exec . For example 44. 2013 05 09 01 18 29.850 myiOSApp 9764 17903 The old format of this exec call has been removed 1 deprecated.. 01 18 29.850 myiOSApp 9764 17903 The old format of this exec call has been removed 1 deprecated since 2.1 . Change to cordova.exec null null NativeControls createTabBar The latest version of the iOS NativeControls plugin I know of is at Here and.. this. Is there a more recent version of NativeControls anywhere else Please help me to fix this issues by John iphone cordova share improve this question This is because of a changes in 2.1 deprecated previous iOS plugin signature to void myMethod..

Phonegap App : External URL don't open in InApp Browser of IOS

http://stackoverflow.com/questions/17569787/phonegap-app-external-url-dont-open-in-inapp-browser-of-ios

fine but when i used required url for my app it did not worked even that url works fine in browser. iphone ios xcode cordova inappbrowser share improve this question Javascript myURL encodeURI myURL window.open myURL '_blank' 'location yes'..

https request doesn't work in phonegap-iphone app

http://stackoverflow.com/questions/3236787/https-request-doesnt-work-in-phonegap-iphone-app

safari but in mobile safari It gives error like Download Failed Safari cannot download this file . iphone phonegap cordova share improve this question This error occur because the desired server has invalid certificate the https server must..

Invoke native date picker from web-app on iOS/Android

http://stackoverflow.com/questions/4946919/invoke-native-date-picker-from-web-app-on-ios-android

currentCtx ctx with final Context currentCtx ctx.getContext and in the JavaScript file replace PhoneGap with cordova . Also note that GitHub sometimes renders README.md wrong see its raw version . The iOS plugin is already updated for Cordova...

how do I open iphone apps via phonegap

http://stackoverflow.com/questions/7851346/how-do-i-open-iphone-apps-via-phonegap

the browser and using window.open but how do I open other apps eg window.open contacts '_blank' doesn't work iphone cordova contacts share improve this question The only way that one app PhoneGap based or otherwise can cause another app to..

Ajax https call in ios using PhoneGap not working?

http://stackoverflow.com/questions/9276643/ajax-https-call-in-ios-using-phonegap-not-working

I am trying to call this in my PhoneGap application. Could you please help me in this regard. iphone ios ajax cordova cross platform share improve this question You have not stated the kind of certificate on the server. I suspect that..

Phonegap Xcode iOS app crashes when status bar is tapped

http://stackoverflow.com/questions/9700310/phonegap-xcode-ios-app-crashes-when-status-bar-is-tapped

any insight would be greatly appreciated. iphone ios xcode ios5 phonegap share improve this question I am using cordova 1.7 and have the same problem. I found a workaround though. You need to patch phonegap by commenting out the creation of.. with the native side. In fact this iframe causes all kinds of rendering issues not only the status bar problem if cordova.commandQueue.length 1 cordova.commandQueueFlushing if gapBridge createGapBridge gapBridge.src gap ready location gap ready.. fact this iframe causes all kinds of rendering issues not only the status bar problem if cordova.commandQueue.length 1 cordova.commandQueueFlushing if gapBridge createGapBridge gapBridge.src gap ready location gap ready I didn't find any side effects..