window.requestFileSystem seems to not be define. I put in EXACTLY the code in the filewriter http://docs.phonegap.com/en/1.0.0/pho... example. I believe this is a 1.4 issue as it was working before. I am using ipod touch 4G. I receive undefined is not a function when I put a try catch block around the code. I can provide the code example and my sample app on the build.phonegap.com site.
- 5 Posts
- 0 Reply Likes
- sad
Posted 8 years ago
- 1911 Posts
- 199 Reply Likes
I've seen a bug report for this here:
http://groups.google.com/group/phoneg...&
I'm going to check with the PhoneGap iOS devs about the status of this.
http://groups.google.com/group/phoneg...&
I'm going to check with the PhoneGap iOS devs about the status of this.
Shazron, Developer Level 42
- 37 Posts
- 2 Reply Likes
I just verified that it works as expected on 1.4.1 on a device. Please test your code again in a new project.
The sample code I used is here, into a new 1.4.1 project:
https://gist.github.com/1784253
The sample code I used is here, into a new 1.4.1 project:
https://gist.github.com/1784253
- 5 Posts
- 0 Reply Likes
shazron,
thank you for your help.
These exact same code now works perfectly. I do not know what was going on, perhaps something with the build.
Thank you,
Bill
thank you for your help.
These exact same code now works perfectly. I do not know what was going on, perhaps something with the build.
Thank you,
Bill
- 5 Posts
- 0 Reply Likes
shazron, Andrew,
I found what the problem is. It is the location of the phonegap.js file. Normally I put all my js files in an include directory. When that is done, the code does NOT work. The same phonegap.js is in the base directory and the include directory.
When I move the phonegap.js to the parent directory and change the src on the javascript everything works perfectly.
is this a limitation of the phonegap compiler??
This works -->
\
This does not
I hope this will help others as it is a common technique.
Thank you,
Bill
I found what the problem is. It is the location of the phonegap.js file. Normally I put all my js files in an include directory. When that is done, the code does NOT work. The same phonegap.js is in the base directory and the include directory.
When I move the phonegap.js to the parent directory and change the src on the javascript everything works perfectly.
is this a limitation of the phonegap compiler??
This works -->
\
This does not
I hope this will help others as it is a common technique.
Thank you,
Bill
- 5 Posts
- 0 Reply Likes
the script tags are not showing up in the reply.
So
This works -->
src='phonegap.js'
This does Not -->
src='include/phonegap.js'
So
This works -->
src='phonegap.js'
This does Not -->
src='include/phonegap.js'
Shazron, Developer Level 42
- 37 Posts
- 2 Reply Likes
Andrew can clarify - but I believe this is a limitation of PhoneGap Build currently.
I believe the server looks for the tag in a specific way (to replace it with the correct phonegap js version), and this is one of the cases where it is not changed.
I believe the server looks for the tag in a specific way (to replace it with the correct phonegap js version), and this is one of the cases where it is not changed.
- 1911 Posts
- 199 Reply Likes
It's not a limitation, it's a feature :)
PhoneGap Build adds a phonegap.js file for each specific platform, with the specified version, to each project. For consistency, this is always done in the root of the project. We may, at some point in the future, allow this path to be configured.
If you're referencing "include/phonegap.js", it's using the phonegap.js file you upload, which presumably does not have requestFileSystem support - it also won't run on every platform the app is built for.
PhoneGap Build adds a phonegap.js file for each specific platform, with the specified version, to each project. For consistency, this is always done in the root of the project. We may, at some point in the future, allow this path to be configured.
If you're referencing "include/phonegap.js", it's using the phonegap.js file you upload, which presumably does not have requestFileSystem support - it also won't run on every platform the app is built for.
- 1 Post
- 0 Reply Likes
Will "phonegap.js" be deprecated now that Cordova 1.5.0 is the current version?
The reason I ask is because of your post on Github:
https://gist.github.com/2040229
The reason I ask is because of your post on Github:
https://gist.github.com/2040229
console.log('Warning: use of "phonegap.js" is deprecated in 1.5.0');
console.log('Please see https://build.phonegap.com/cordova for details');- 1911 Posts
- 199 Reply Likes
No; I was just trying some stuff out. We'll be keeping "phonegap.js" on PhoneGap Build, for 1.5.0 at least.
- 5 Posts
- 0 Reply Likes
Andrew / shazron,
I love features. ;-))))
Thank you for the clarification. You might want to post a notice somewhere. If there is one, I did not see it.
Another possibility is that on the build site, you can post a message along the lines "used project phonegap.js instead of native one -- we suggest you use phonegap.js in the base directory". You then can link to a more lengthy expaination
I love features. ;-))))
Thank you for the clarification. You might want to post a notice somewhere. If there is one, I did not see it.
Another possibility is that on the build site, you can post a message along the lines "used project phonegap.js instead of native one -- we suggest you use phonegap.js in the base directory". You then can link to a more lengthy expaination
- 7 Posts
- 0 Reply Likes
I get this same problem if I use the window.requestFileSystem via build.phonegap.com is not defined, is there another way around this.
- 1911 Posts
- 199 Reply Likes
Are you including the phonegap.js script tag on the app you upload to PhoneGap Build?
- 4 Posts
- 1 Reply Like
Hi Bill,
I have resolved this issue. Please refer to this link:
http://community.phonegap.com/nitobi/...
Thanks
I have resolved this issue. Please refer to this link:
http://community.phonegap.com/nitobi/...
Thanks
This conversation is no longer open for comments or replies.
This conversation is no longer open for comments or replies.
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 61 Followers



