Comments on: PhoneGap and Force.com in 69 minutes https://outof.me/phonegap-and-force-com-in-69-minutes/ Thu, 28 Nov 2013 07:29:12 +0000 hourly 1 https://wordpress.org/?v=469 By: Thomas Anderson https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-1295 Thu, 28 Nov 2013 07:29:12 +0000 https://outof.me/?p=448#comment-1295 I think I figured out why your code works.

1) In your test, you’re running from your local file system. (files://). There are no cross-domain issues when you are running from files://
2) SalesForce will not give a refresh_token if you are calling from the web, but they will if you are calling from files://.

So basically, your code should work fine in PhoneGap, but I’ll have to figure out a different option for the web-app version of my app.

]]>
By: Thomas Anderson https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-1292 Thu, 28 Nov 2013 06:15:14 +0000 https://outof.me/?p=448#comment-1292 Hi Piotr,

First, I want to thank you for all of your excellent work! I was dreading having to code my own library for PhoneGap + SalesForce Rest API.

I’ve been using PhoneGap for 2+ years now, so I’m pretty comfortable with how everything works. I added in forcetk.js and forcetk.ui.js. Everything fires up just fine. Except I am hitting on issue:

When I call ftkClientUI.login(); I’m getting the javascript error:

‘Uncaught SecurityError: Blocked a frame with origin “https://www.myapp.com” from accessing a cross-origin frame.’ in https://www.myapp.com/js/forcetk.ui.js on line 160

Watching your video, it didn’t look like you had to do anything to address cross-domain stuff. Do I need to set up some sort of SalesForce proxy on my server, or is there something I’m missing?

Lastly, easy question: Once I get it working, will I be able to use it to create leads/contacts and add tasks to contacts, or is it read-only?

Thanks for your time and your hard work!

]]>
By: Piotr https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-935 Wed, 23 Oct 2013 07:52:43 +0000 https://outof.me/?p=448#comment-935 Sorry, I don’t have any tips at this time :(

]]>
By: Nikhilesh https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-888 Fri, 18 Oct 2013 20:27:39 +0000 https://outof.me/?p=448#comment-888 Hi Piotr,
Thank you for putting up this tutorial, it was really helpful. I am just starting to build an application that uses phonegap + sdfc, but when i ran the code through phonegap build, it gave me the following error
” [error] {“error”:”plugin unsupported: childbrowser”}”

When i googled a bit, I noticed that childbrowser plugin is depricated, and should be replaced by inAppBrowser instead. ( http://community.phonegap.com/nitobi/topics/_childbrowser_plugin_deprecating_use_inappbrowser)

Do you have any guidelines/steps from migrating your current demo app to use inAppBrowser instead of childBrowser to support latest versions of phonegap ?

Thanks,

Nikhil

]]>
By: Rodrigo https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-312 Mon, 25 Feb 2013 21:08:56 +0000 https://outof.me/?p=448#comment-312 Hi the tutorial is great but I’m having a bit of an issue when binding the click event for the li(s) since they are not part of the original main view (I’m on step 6).
I think the listview(‘refresh’) is not being executed. any ideas ?

]]>
By: Alessio https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-187 Fri, 16 Nov 2012 15:28:46 +0000 https://outof.me/?p=448#comment-187 If we want to be really cool we should understand how to “integrate” the new Salesforce Touch Platform in order to be able to recreate the same functionalities but wrapping the www folder with Phonegap Build… do you think is this possible?!

]]>
By: Rafa https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-186 Wed, 14 Nov 2012 16:29:42 +0000 https://outof.me/?p=448#comment-186 Amazing :) Thank you very much!!

]]>
By: Mateusz Loskot https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-185 Mon, 12 Nov 2012 22:51:09 +0000 https://outof.me/?p=448#comment-185 Hi Piotr,

The HTML5/JavaScript development for mobile devices with PhoneGap and such is a completely new thing to me and I’ve found your blog (the old ria too) extremely helpful in learning these technologies.

Keep up the great work you do here!

]]>
By: Piotr https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-166 Tue, 30 Oct 2012 11:15:14 +0000 https://outof.me/?p=448#comment-166 Don’t have it sorry 😉

]]>
By: @altius_rup https://outof.me/phonegap-and-force-com-in-69-minutes/#comment-158 Sat, 27 Oct 2012 05:43:22 +0000 https://outof.me/?p=448#comment-158 Thanks, Piotr.
Do you habe any vids on offline storage for mobile Force.com apps ?

Rup

]]>