Emmanuel Goldstein | 5 Jul 12:14 2015
Picon

onFileSystemPathsReady not fired

I'm trying to update a phonegap Android app from cordova 3.5.0 to cordova 5.1.1 because of security concerns. When I launch the app I get the following errors but I just can't understand where they come from.. Could you help me by suggesting where to investigate?

I'm using SDK 22 and I'm running the app on Android 4.4. I've also removed every plugin but the error stays there.

Thanks for your support!
W/System.err( 1672): org.json.JSONException: Value PluginManager at 0 of type java.lang.String cannot be converted to int W/System.err( 1672): at org.json.JSON.typeMismatch(JSON.java:100) W/System.err( 1672): at org.json.JSONArray.getInt(JSONArray.java:357) W/System.err( 1672): at org.apache.cordova.CordovaBridge.promptOnJsPrompt(CordovaBridge.java:131) W/System.err( 1672): at org.apache.cordova.engine.SystemWebChromeClient.onJsPrompt(SystemWebChromeClient.java:119) W/System.err( 1672): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655) W/System.err( 1672): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 1672): at android.os.Looper.loop(Looper.java:137) W/System.err( 1672): at android.app.ActivityThread.main(ActivityThread.java:4745) W/System.err( 1672): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 1672): at java.lang.reflect.Method.invoke(Method.java:511) W/System.err( 1672): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) W/System.err( 1672): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) W/System.err( 1672): at dalvik.system.NativeStart.main(Native Method) W/System.err( 1672): org.json.JSONException: Value App at 0 of type java.lang.String cannot be converted to int W/System.err( 1672): at org.json.JSON.typeMismatch(JSON.java:100) W/System.err( 1672): at org.json.JSONArray.getInt(JSONArray.java:357) W/System.err( 1672): at org.apache.cordova.CordovaBridge.promptOnJsPrompt(CordovaBridge.java:131) W/System.err( 1672): at org.apache.cordova.engine.SystemWebChromeClient.onJsPrompt(SystemWebChromeClient.java:119) W/System.err( 1672): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655) W/System.err( 1672): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 1672): at android.os.Looper.loop(Looper.java:137) W/System.err( 1672): at android.app.ActivityThread.main(ActivityThread.java:4745) W/System.err( 1672): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 1672): at java.lang.reflect.Method.invoke(Method.java:511) W/System.err( 1672): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) W/System.err( 1672): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) W/System.err( 1672): at dalvik.system.NativeStart.main(Native Method) W/System.err( 1672): org.json.JSONException: Value File at 0 of type java.lang.String cannot be converted to int W/System.err( 1672): at org.json.JSON.typeMismatch(JSON.java:100) W/System.err( 1672): at org.json.JSONArray.getInt(JSONArray.java:357) W/System.err( 1672): at org.apache.cordova.CordovaBridge.promptOnJsPrompt(CordovaBridge.java:131) W/System.err( 1672): at org.apache.cordova.engine.SystemWebChromeClient.onJsPrompt(SystemWebChromeClient.java:119) W/System.err( 1672): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:655) W/System.err( 1672): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 1672): at android.os.Looper.loop(Looper.java:137) W/System.err( 1672): at android.app.ActivityThread.main(ActivityThread.java:4745) W/System.err( 1672): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 1672): at java.lang.reflect.Method.invoke(Method.java:511) W/System.err( 1672): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) W/System.err( 1672): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) W/System.err( 1672): at dalvik.system.NativeStart.main(Native Method)
I/Web Console( 1312): deviceready has not fired after 5 seconds. at file:///data/data/it.myapp.app/files/target/android/cordova.js:1154
I/Web Console( 1312): Channel not fired: onFileSystemPathsReady at file:///data/data/it.myapp.app/files/target/android/cordova.js:1147

--
-- 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.
Marcos Rodrigo Ladeia | 5 Jul 09:16 2015
Picon

Video player Youtube without being webview/iframe

Hello!

This is my first post in the group. I'm starting with Cordova and am very happy with what he provides ease of development.

But I'm a difficulty in relation to Youtube videos, I have to run them efficiently and easily to the User. I do not have experience developing in Cordova I have no knowledge to create such an advanced plugins.

Navigating GitHub, I found a very interesting project of Glitchbone, CordovaYoutubeVideoPlayer that runs on Android and iOS. Efetuei tests and found it incredibly light, unlike embed native video.

My question is this, is there any native of Cordova function that performs a video with such efficiency equal to the GitHub project?

Another issue is, I can edit the CordovaYoutubeVideoPlayer plugin? Edit the player and all functions? Someone shows me a material for study?

GitHub project link: https://github.com/Glitchbone/CordovaYoutubeVideoPlayer

Sorry my English. :(

Thank you!

--
-- 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.
David | 5 Jul 13:58 2015
Picon

Build Game on PhoneGap that can communicate between iphone and android

I would like to create cross platform online game on phonegap, Before starting, i am now in staging of Proof of concept of design architecture:

Online game that allows play from 2 platforms: ios and android. include ability play between two platforms (iphone device against android device.)
include invite players between two platforms by push notification.

In the same way as whatsapp allow communication between 2 platforms.

Is this possible by developing in phonegap?

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.
Avowe System | 4 Jul 22:31 2015
Picon

Guideline to new comers

I want to start App development using Phone Gap any tutorials you refer seniors , plz post the link 

--
-- 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.
ElyasX | 4 Jul 12:34 2015
Picon

Javascript WebSQL Insert Multiple Rows and Control i value

Recently I've working on a Phonegap/Cordova App .. and in that i want to Grab Some Data From a Json ( AJAX CALL ), JSON Structure is just like this below [ a cropped sample here] :

{"result":"true","user":[{"id":1,"name":"User1"},{"id":2,"name":"User2"},{"id":3,"name":"User3"}]}

In Success i will take the Complete Object as Data , and then Access the User Values in it like this below :

success : function(data) { var i = 0; var ex = $("#dom"); var x1 = data.user; for(var i in data.user){ (function(x1){ console.log("i: " + i); db = window.openDatabase("myLocalDB", "1.0", "Users", 200000); db.transaction(function (tx) { tx.executeSql("insert into Users (id, idNumber, uName) values (?,?,?)", [i,data.user[i].id, data.user[i].name],successCB,errorCB); //i++; Controlling i }); })(x1[i]); console.log(data.user); // Simple Obj Log ex.append("<li>" + data.user[i].id + "</li>"); } }

Actually My Main Problem is :

  1. Dealing with INSERT to SQL [Multiple Rows] >> If there was a Second FOR in First For , INSERT Statement Wont Work ..
  2. Control and Handle ( i ) to not Change the i very Quick and End the For And then ExecuteSQL : Now Here i just Taking the Last User Property Value which is USER3

Explanation :

  • Using Function in For with x1 Parameter in According to this Method which had been used in this Question : How to insert multiple rows in Web SQL Database?
  • X1 Variable here is Set to data.user cause directly i couldn't use it a parameter in function [Don't Know if there is any other ways to Access Objects in Object].
  • ex is a variable for accessing #Dom Div for Appending Data in Html .


Schooling Question : Have Seen in My Searched in these days websql commands are async like Executesql :

Again do not loop executeSql, it is async. Better loop it under one transaction. looping async is generally bad

So how is the best way of Using it . . ?

I would Appreciate Further Suggestions for Enhance my Method of Grabbing Data and Insert in to WebSQL in Phonegap/Cordova App .. 


Best Regards .

--
-- 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.
John Saunders | 3 Jul 23:02 2015
Picon

Some Notes from a (very) New Guy

I have literally just begun mobile development, and using PhoneGap. Literally meaning I didn't own a SmartPhone until this week.

I now own a Samsung Galaxy S6, and am trying to install PhoneGap on my Windows 8.1 laptop using the instructions at http://phonegap.com/install/. So, first installed Node.js by clicking the "Install" link on https://nodejs.org/. Then tried

C:\> npm install -g phonegap
Only problem (so far) is that I don't have a command-line "git" installed. I know that's close to heresy, but, FYI, I'd add instructions to install one to the install page so as not to confuse us old new folks.

--
-- 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.
jeff davidson | 3 Jul 21:42 2015
Picon

Can't use ajax from PhoneGap app - Security error: DOM Exception 18

Hi,

I am having trouble using an ajax callback from a Phone Gap project. 

I am using Xcode on a Mac with Cordova and can run my app on both my iPhone and desktop iPhone simulator.  The problem is that when the app makes an ajax request, a security error is thrown.  I have made all of the corrections required for CORS:

      Server side header:
      header('Access-Control-Allow-Origin: *');
      header('Access-Control-Allow-Credentials: true');'


      <access origin="*" />
      <access origin="http://*" />
      <access origin="https://*" />

I have successfully gotten the app to work using the PhoneGap desktop simulator

--
-- 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.
Stefaan Van Goolen | 3 Jul 13:11 2015
Picon

Phonegap app with display of (many) pictures.

Hi everyone,

I'm fairly new to Phonegap and I was wondering what would be the best way of achieving following goal:
An app where people can upload pictures + some text.
Display all these pictures + text in a loop with some liking functionality.
I'm actually looking for an answer on how the best setup would be.
- Where am I going to store these pictures?
==> firebase?
==> scale and upload to php server?
==> using local app storage with sync from remote server?
==> other?
- How am I going to load them (infinite scroll) without lag.
==> from firebase?
==>from php server, per 20 or so?
==> sync?
==> other?

I am not looking for a detailed explenation, just on how the best setup would be with some minor details,
thanks in advance!

--
-- 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.
JC | 3 Jul 10:36 2015
Picon

Why to have files in local system ? (and not have them in the server)

Phonegap runs the HTML files in the localsystem, but if I say to phonegap to load an "http://mypage.com/page.php" instead of the default localhost index.html, it works too.

And if I run things like geolocation, accelerometer, or other plugins , they work too.

Having all pages in server allows me to change anything I want without having to upgrade an app (building, uploading to market, waiting to be published in case of iTunes, ...)

I see just advantages ...

Then ... why the local pages in Phonegap if you can run more comfortable things in server ?

I understand that local files can be useful to browse app without internet connection, but in case an app needs "always" (or almost always) internet-connection (as a feature, let's say for example like Foursquare) ... is any other advantage to have all files in local ?


Thank you

--
-- 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.
Scott J. Pearson | 2 Jul 20:49 2015
Picon

Any way to reset the memory in Android?

I have a memory leak in an Android app due to a plugin I'm using. (The memory does not exist in iOS.) I expect that changing the page would reset the memory; however, it did not. I have also manually called the garbage collector. It ran. It did not clear the memory.

Is there anything I can do to clear the memory?

Scott

--
-- 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.
Hk | 2 Jul 16:29 2015
Picon

Phonegap FTP service

Hello guys , i am creating an app in which i want to generate ftp address in android device connected with internet to transfer files from android device to any computer system.  
<br/>
some android devices already have this feature but i want to create app for this functionality. 
<br/>
i have read documentation of ftp client api on github , but i did't find such information 
<br/>

i want to perform these functionality
  1. create an app that will start ftp service on android device
  2. generate ftp address to transfer files from android device to computer system
  3. allow user to transfer and modify files using that addres in computer system
Example of ftp address is : 92.168.0.0:1212

 and i think there is no need for server name or password for ftp client because i want to transfer files from device to computer using internet 

--
-- 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