Jeremy | 20 Dec 23:39 2014
Picon

Slow loading app due to ajax loading HTML files and several JQuery ready event handlers

Hi,

I am trying to increase loading time of my app on iOS.  To make the HTML easier to maintain, I've put some content into additional html files which I load via Ajax when the app starts up. Each HTML file has a JQuery ready event handler.

Looking in Webkit's Inspector, each time my ajax code loads a HTML file there is a "Ready State Change Event Dispatched" record is created against JQuery.  Each record takes around 220ms which is a lot, totalling around 1 second to load my extra HTML content.  I am guessing that this is due to each HTML file's JQuery event handler firing, but I'm not 100% sure.  Googling "Ready State Change Event Dispatched" brings back nothing relevant!  This phrase doesn't exist as written in Google!

Has anyone else noticed this performance hit?
How do other developers divide up their HTML and ready handlers for their apps?

Cheers
Jeremy


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
offshorewahoo | 19 Dec 21:53 2014

Very Strange Behavior in iOS with input autocapitalize Atribute

Hello,

We are seeing some very strange behavior using PhoneGap 3.6.3. We have a web form that is really pretty simple. It just has 4 text boxes in a row (input, type=text) that have autocapitalize="words" (which is the default behavior for autocapitalize). If we use iOS 8.1.2 on an iPhone and launch Safari and enjoy this form, everything works as expected. What happens is that when you tab into the first textbox, the shift key is toggled and if you type on a letter you get a capital letter, and then the shift key automatically becomes untoggled. Then, when you tab to the next input or tap to get into the next input, the shift key is again automatically toggled. This is the correct behavior.

However... If you use a PhoneGap 3.6.3 app with the in-app-browser and browse to that very same page, this is what happens: You tap into the first text field and the shift key is toggled by default. Then you type a letter and you get a capital letter. So far, so good. Then when you tab into the next field or tap into any input type=text, the shift key is *not* toggled by default. If you try this again and do not type a letter at all in the first field, this problem does not occur.

There is another way to describe this behavior and it is this: When using the in-app-browser and you tap into a text field that has any value in it at all, and then you tab or tap into another text field, the autocapitalize does not kick in. If you go back to the first text field and clear out the value and then tab or tap, then it works and you get the shift key toggled in the second text field.

Now, here's one more detail... This does not only happen with the in-app-browser. It also happens with any HTML5/css app right inside a PhoneGap 3.6.3 app. Yep, it's true - autocapitalize is just a big crazy mess inside of PhoneGap 3.6.3 whether you use the in-app-browser or not. Using the in-app-browser is just a very handy way to demonstrate that this bug only occurs inside PhoneGap and does not have to do with iOS or mobile Safari itself.

Any thoughts?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Devid Insee | 19 Dec 14:10 2014
Picon

How to force login every time open the app ?

Hello,

I'm very new with phonegap. I try to create my first app and everything is ready now but I want to add feature that user needed to put "secret key" (like dialog box) with below conditions

1. If it's the fist time user install the app they forced to filled "secret key" and after they fill and submit key "key value" will send to remote mysql server (I did it and return it by php json) and write "secret key" value to local storage file json or xml format.

2. After the first time ("secret key" filled) the app will get data from json or xml file automatic and recheck with remote server that "secret key" is still valid.

I need some advise or if someone can help me write this feature I willing to pay for the job (Please contact me)

Thank you
Devid Insee

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Shubham Gupta | 19 Dec 13:45 2014

Cordova build hidden folder

Cordova doesn't build the hidden folder please check this
following file can be the reason.
https://code.cs.nott.ac.uk/p/gp13-ajp/source/tree/84/code/gh-app/platforms/ios/cordova/lib/copy-www-build-step.sh

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Syarbel Budiman | 19 Dec 09:36 2014
Picon

Images to String

Dear All,

Is there any possibility to convert the image (image from camera) to the string?
I have success to capture image with this code:

navigator.camera.getPicture(
     function(imageData) {
          $('#ImageCanvasPhotoVisibility').show();
          $('#ImageCanvasPhotoVisibility').src = imageData;
          alert('Capture image success.');
     }, onCameraCaptureFail, { quality: 20, encodingType: Camera.EncodingType.JPEG, saveToPhotoAlbum: true }
);


Can you give the complete code for example. Thank you in advance.

Best Regards,
Syarbel Budiman

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Ken ny | 19 Dec 05:06 2014
Picon

How to read/write file on available device space

Hello

I'm quite new to web and mobile device development! I've started like 3 week ago, without any clue on how to do it!

My requirement are... like, enter some data on the capture screen, save it on the space available since we can have it work where there is no signal. And retrieve the files later with a connection to a computer via USB, and, this have to work on IOS or Android

I've build the panels/sceen, to acquire data with Ionic, now, I've know how to do that stuff... Now I'm trying to save a simple file on the available space. on IOS cause this seem to not work well in a file browser like chrome and android. So, on my Mac, I've been able to run those 2 sample correctly, without apparent problem, using the phonegap application to test our application

http://java.dzone.com/articles/cordova-sample-reading-text

and the write file

http://mobile.dzone.com/articles/cordova-example-writing-file

and console log seem ok.

BUT, file log.txt is not on the IPhone, like photos or other... file

So, my understanding is that I can't write on this space and only on the ... app space. like the www space. But, no way to access that file via usb and the space used DCIM where picture are save. Is that right?

Or, if we can, hot to do it? and if not... what are the best options?

Thx

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Roman P. | 18 Dec 23:56 2014
Picon

Please upgrade your PhoneGap Build account to submit a plugin.

Hi, When i am trying to submit a plugin i am getting this error message "Please upgrade your PhoneGap Build account to submit a plugin.", but i don't see any options for upgrade or what types of accounts there are?

Anyone knows how to fix it?

Thanks.

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Zabuza Momochi | 19 Dec 01:33 2014
Picon

Multitouch on WebView in Android 2.3.x

Someone managed to simulate or create a virtual on-screen control with support for multi-touch?

I even managed, creating a single element with addEventListener and each key would be a position click the element.

But the button is pressed.


function init(){
    gamepad
.addEventListener("touchstart", function(e){buttonStart(e)});
    gamepad
.addEventListener("touchend", function(e){buttonEnd(e)});
}

function buttonStart(e){
   
var cX = e.touches[0].pageX;
   
if(cX > 0 || cX < 32){
       
//Active Button A
   
}
   
if(cX > 100 || cX < 132){
       
//Active Button B
   
}
}

function buttonEnd(e){
   
//Disable button
   
}.

DIV Element (HTML):
<div id="gamepad" style="position:absolute;bottom:25%;left:0px;background-color:green;height: 25%;width: 100%;">

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
ton alessandro | 18 Dec 19:30 2014
Picon

error sending app for itunesconnect . The bundle not contain an app icon for iphone/ipod

error sending app for itunesconnect . The bundle not contain an app icon for iphone/ipod of exactly ' 57 x 57' pixels, in .png format for iOs version < 7.0 

Note, there is a file with certainty in the resolution set and the www folder \ res \ icon \ ios in phonegap project. 
This giving ok build without error, the problem is in the delivery to itunes connect showing this error in uploading app. 
Ton

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Adrian Benjamin | 18 Dec 19:38 2014
Picon

Apple App Store 64-Bit iOS 8 Requirements

Is phonegap updating anything on their end to be in compliance for App Store submission? 

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Jason Mumby | 19 Dec 01:37 2014
Picon

Cordova.camera plugin automated picture taking.

With this plugin is it possible to initiate a photo actually being taken? 

For example if your had programmed a timer for 10 seconds you could get the plugin to take the photo rather than have the user push the button.

Thx 


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane