Dhanshree More | 30 Jul 14:10 2015
Picon

I am using command "cordova build android"


C:\Users\733312\cord\cord>cordova build android
Running command: cmd "/s /c "C:\Users\733312\cord\cord\platforms\android\cordova
\build.bat""
[Error: Android SDK not found. Make sure that it is installed. If it is not at t
he default location, set the ANDROID_HOME environment variable.]
ERROR building one of the platforms: Error: cmd: Command failed with exit code 2

You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 2
    at ChildProcess.whenDone (C:\Users\733312\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Process.ChildProcess._handle.onexit (child_process.js:833:5)




I have set JAVA_HOME, ANDROID_HOME AND ANT_HOME, still facing same issue.
I googled this error and someone suggested that his android was owned by ROOT thats why he was facing this issue but this is not the case with me.
Please suggest solution.

--
-- 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.
Dhanshree More | 29 Jul 14:17 2015
Picon

I am installing PhoneGap using Node.js v0.8.9 getting following error.


--
-- 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.
Jeffrey Greenberg | 29 Jul 00:31 2015
Picon

Full Cordova/Phonegap support for Parse on iOS & Android ?

From what I can see Parse does not support a Cordova/Phonegap plugin, and there is no fully supported plugin out there for Parse.  What I see is only support for Push Notifications, not a complete wrapper for Parse functionality from a Cordova/Phonegap plugin.  Is that right?

Secondly, I am using the native iOS Facebook sdk through the Wizcorp Cordova plugin, and I want it to work with Parse to construct multiple scoreboards for users and their Facebook friends.   If I am left only with doing Javascript Parse Rest API, can I use it together with he native Facebook IOS sdk (wrapped in a plugin) to do this or not currently?  Is there a tutorial or docs that covers this case?

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.
Steve Sobol - Lobos Studios | 29 Jul 17:17 2015

SOLVED! Re: Re: Ionic/Angular $http.post results in a 404, but only on an Android phone, not on an iPhone or in the browser

SOLVED!!!!!

The proper way to handle XHR requests in an Ionic application is *this* way. Remember, Ionic incorporates AngularJS:

** Your index.html must have a Content-Security-Policy meta tag to make the browser AND the Cordova whitelist plugin happy (it was actually Cordova that threw an error when I temporarily removed it for testing purposes).

** It is also necessary to include the proper <access origin="whatever"> directives in config.xml, to make the Cordova whitelist plugin happy.

** You also must use the ng-csp attribute. This is a relatively new development. I've done Ionic apps in the past that have not required it. This disables certain behaviors of Angular that run afoul of your Content-Security-Policy. as stated in the Angular docs:

Angular has some features that can break certain CSP (Content Security Policy) rules.

If you intend to implement these rules then you must tell Angular not to use these features.

This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.

The following rules affect Angular:

  • unsafe-eval: this rule forbids apps to use eval or Function(string) generated functions (among other things). Angular makes use of this in the $parse service to provide a 30% increase in the speed of evaluating Angular expressions.

  • unsafe-inline: this rule forbids apps from inject custom styles into the document. Angular makes use of this to include some CSS rules (e.g. ngCloak and ngHide). To make these directives work when a CSP rule is blocking inline styles, you must link to theangular-csp.css in your HTML manually.

If you do not provide ngCsp then Angular tries to autodetect if CSP is blocking unsafe-eval and automatically deactivates this feature in the $parse service. This autodetection, however, triggers a CSP error to be logged in the console:

 
Old, broken index.html:

<body class="greenroom" ng-app="greenroom"> 
Working index.html:

<body class="greenroom" ng-csp ng-app="greenroom"> 
Incidentally, using Crosswalk instead of the system web view wouldn't have helped; I found the solution in an Ionic forum post where someone was having the same problem with Crosswalk. :)






Steve Sobol - Lobos Studios wrote:
Only if you didn't carefully read what I said. ;)

The web view throws an error if the CSP is set too restrictively. That is behavior that I expect and want to see.

The problem is this: Upon seeing the error, I change the CSP to allow the XHR. When I do that, THAT is when I get the 404 error and nothing in the logs or Chrome's Javascript console to indicate why.

Not on iOS, not on my computer, not on Android when I use "ionic serve" and use Google Chrome on the device. ONLY in the app on Android. Exact same behavior with my Samsung Galaxy Tab 4 tablet and my HTC Droid DNA, both running Android 4.something  (4.4.2 for sure on the tablet, 4.2.something on the phone.)

And so far, I've gotten a lot of good advice here and in the Ionic forum, but no solutions yet.




jcesarmobile wrote:
"the content is blocked based on the page's policy", seems like an issue with the CSP

El lunes, 27 de julio de 2015, 0:39:09 (UTC+2), Steve Sobol escribió:
Bare XHR gives me the same result.

I have no whitelist directives in my config.xml; I am using only the CSP meta tag. If I tighten the settings too far, and I pull up the app and look at the console in the Chrome developer tools, I can see the messages that the content is blocked based on the page's policy. If I loosen the settings up, no error,just a 404.

It's either ionicor cordova.

Steve Sobol - Lobos Studios wrote:
ionic --version says 1.6.1, which is weird. Maybe that's the CLI version; the framework itself is only on 1.0.1.

Direct links don't work. I haven't rolled my own XHR.

It works in Google Chrome on the tablet, though, when I use "ionic serve".

Kerri Shotts wrote:
Hey Steve --

What version of Angular/Ionic are you using? I did a cursory Google search, and some older versions are returning spurious 404s when the actual status is a zero and no response is generated. 

Have you tried making your own XHR call to rule out issues with Angular/Ionic? What response do you get with direct links? Is it the same 404 or something else?



--
Lobos Studios - Website and Mobile App Design & Development; IT Support; Computer Maintenance
Toll Free  877.919.4WEB - Apple Valley 760.684.8859 - Los Angeles 310.945.2410 - Cleveland 216.242.4010
www.LobosStudios.com * www.facebook.com/LobosStudios * <at> LobosStudios


--
Lobos Studios - Website and Mobile App Design & Development; IT Support; Computer Maintenance
Toll Free  877.919.4WEB - Apple Valley 760.684.8859 - Los Angeles 310.945.2410 - Cleveland 216.242.4010
www.LobosStudios.com * www.facebook.com/LobosStudios * <at> LobosStudios


--
Lobos Studios - Website and Mobile App Design & Development; IT Support; Computer Maintenance
Toll Free  877.919.4WEB - Apple Valley 760.684.8859 - Los Angeles 310.945.2410 - Cleveland 216.242.4010
www.LobosStudios.com * www.facebook.com/LobosStudios * <at> LobosStudios


--
Lobos Studios - Website and Mobile App Design & Development; IT Support; Computer Maintenance
Toll Free  877.919.4WEB - Apple Valley 760.684.8859 - Los Angeles 310.945.2410 - Cleveland 216.242.4010
www.LobosStudios.com * www.facebook.com/LobosStudios * <at> LobosStudios

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

Paul Hemans | 29 Jul 13:21 2015
Picon

Need to automate photo taking

I need the ability to take photos, in the background, on a timer. I have had a look around and can't seem to find a plugin that does that. The plugin I found pops up the modal camera interface. Is that an issue with the way the plugin works? Or is that a restriction of the API that is being used? 
That is, is it possible to write a plugin to work around the issue so that photos can be taken in the background? I am happy to put the work in to get it going just provided I know that it is possible to do. I am only interested in getting it working on Android. This is for an automation project.

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.
mail | 28 Jul 16:34 2015

PhoneGap navigator.compass.watchHeading freezes on iPhone after some time.

I'm running a three.js phonegap project on a iPhone 5s, which rotates the camera according to the compass heading readout.

All works as it should, but for the freezing of the compass readout after 10 seconds. The app continues to work fine, but the function rotateCameraWithCompass isn't called anymore. Also there is no call to compassError. The watchHeading method seems to have frozen.


function rotateCameraWithCompass( heading ) { camera.rotation.y = -1 * Math.toRad( heading.magneticHeading ); } function compassError( compassError ) { console.log( 'Compass error: ' + compassError.code ); } var watchID = navigator.compass.watchHeading( rotateCameraWithCompass, compassError, { frequency: 30 } );


I lowered the frequency down to from 30 ms to 100ms, but it still freezes after about 10 seconds. It seems such a light request, so I can't imagine why if freezes.


Can the watchHeading method be used for continuous live AR camera rotating? If not, does that mean that AR on PhoneGap iOS is impossible?

--
-- 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.
sfmedic100 | 28 Jul 17:41 2015
Picon

Opus Creator conversion

Can I use your software to develop apps in opus and then convert them to apk?

--
-- 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.
ghoward | 27 Jul 21:48 2015

problem using getFile with cordova-plugin-file 2.1.0

The following works with cordova-plugin-file 1.3.3 ok but when i try with 2.1.0 it doesn't play so nice:- 


                    $window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
                                        
                    function gotFS(fs) {
                        fs.root.getFile("/storage/emulated/0/Tulips.JPG", {create: false}, gotFileEntry, fail);
                    }

                    function gotFileEntry(fileEntry) {
                        console.log("gotFileEntry ok");
                     }
                    
                    function fail(error) {
                        console.log("Failed: " + error.code);
                    }

The log I get is "Failed: 1". Did something change in 2.1.0 to break this?

--
-- 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.
Manoj Gadhavi | 28 Jul 19:45 2015
Picon

build html,js and css and create android,ios,window app to download for my web application

I  want to make  web application where user create their own app with html and java script and at end they would be able to download android,ios and window application. So how would i able to achive this in my application.

--
-- 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.
sayak pal | 28 Jul 11:25 2015
Picon

loading bar in splash screen in phonegap build

how to add loading bar in splash screen in phonegap?

thanks
Sayak

--
-- 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.
Deepanshi Gupta | 28 Jul 10:53 2015
Picon

How to import cordova project in eclipse?

Hi, I have installed node.js and install cordova but when I open my eclipse and go to file > Import > Android Existing Project and select My project say "hello" then it fetches two projects one is "hello"  project and another one is "hello CordovaLib". I copied both into workspace but both gives me error. When I go to "properties > android" of "hello" and when tried to add library "hello CordovaLib"  but it does not show "hello CordovaLib"  option. What should I do to make my project work?

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