Hot answers tagged

10

With Enterprise Distribution: You don't need to include UDIDs in your provisioning profile; any device can install the app You must host the IPA somewhere and provide an installation page (could be just a simple link) Apple can and will lay the smack down on you if they suspect you are circumventing the app store If you're not using an Enterprise profile, ...


6

For those facing the same issue, we managed to work around it with this approach In Platform/ios/CordovaLib/Classes/CDWebViewDelegate.m, there is a method (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest with the following definition - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(...


5

Since you're using a custom login screen, I'd also customize your forgot password screen to propagate that state back to the login screen. Pass it and return it as a startURL


4

I've faced this issue as well over the years. The SDK does NOT directly support testing your hybrid apps on the browser because the oAuth dance happens via a WebView that's triggered by Cordova specific APIs such as onDeviceReady which fire only on the phone (device/ emu). This is the reason why you typically get the forcetk undefined on your browser while ...


4

I've seen this earlier. This can happen on emulator when your hybrid app is invoking Visualforce pages and the root cause is same as when you'd see this issue in a web application. This thread explains the issue and the solution. In most cases, the culprit would be the requestData parameter. If you do not need it, remove it. Also, you can use add a remote ...


4

A better place to store images is the filesystem of the device. You can do this via the Cordova File functionality, documented at: http://cordova.apache.org/docs/en/2.3.0/cordova_file_file.md.html Raymond Camden wrote a couple of blog posts that demonstrate how to store images locally for Android and iOS. Blog 1 Blog 2


4

Sandboxes don't run in the same context as production, so you'll need a Connected App identified on a Sandbox org and use those keys for OAuth.


3

There's probably no open source Ionic or Angular library available for now for hybrid apps specifically for Chatter API. You should look at forceng though. Since Chatter operations are handled by Chatter REST API, it's really all about hitting those endpoints using your Angular/ ionic code using forcetk from your hybrid app. There's another library JSForce ...


3

You'll need to build your apps locally for now. PhoneGap Build doesn't have support for the SmartStore or OAuth plugins included with the Salesforce Mobile SDK. Once the SDK is updated to a newer version of cordova, perhaps the cordova plugins could be submitted as PhoneGap Build plugins.


3

http://blogs.developerforce.com/developer-relations/2013/04/access-mobile-device-functionality-with-javascript-and-cordova.html Here is the nice reference ,if you are looking to start. https://github.com/joshbirk/WarehousePhone Above github link how to use smartstore in visualforce based applications <apex:includeScript value="{!$Resource.Cordova}"/&...


3

Yes, you can use smartstore when running in hybrid remote - I have an application that is based on Visualforce pages with the thinnest of wrappers on the phone, and I am saving user setup information in the smartstore. The key here is that your Visualforce pages have to include the cordova and smartstore JavaScript files to be able to access the ...


2

A single org solution is when all customers log into a single org that you control to get the desired functionality. It does not require sites per se (although using sites is the more straightforward way of doing this). Here there is no package that the customer needs to install in their own org. All the work is happening in a single org you control. A ...


2

You can use SQLite client or the querySpec() method on the emulator to see your soup list and the data in those soups. As for the mentioned issue, I have seen this occur in my apps when there's a problem in the way A) you are creating your soup index B) you are retrieving data based on the wrong soup index. Tom Gersic from Model Metrics (now Salesforce) has ...


2

The local version of an app lives on your phone. In the Salesforce Mobile SDK, these files live in the www folder. They can include your own HTML pages and JavaScript. Basically anything you can build to run in a browser today. MobileSDK apps are built on top of Apache's Cordova, which provides the views (in Obj-C and communication from the view to the app ...


2

This is very similar to the question I answered here. If you are using Angular.js for your hybrid app, use forceng.js - it is very similar to forcetk.js (without jQuery) and is compatible with Mobile SDK.


1

As per the official documentation, it only supports Visualforce pages. Hybrid apps fall into two categories: Hybrid local—Hybrid local apps are Web apps that run locally in the mobile container. These apps are developed with the force.js library and store their HTML, JavaScript, and CSS files on the user’s device. Hybrid remote—Hybrid ...


1

The actual issue is caused by the recently (8th March) release of the 1.6.0 version of the Phonegap Push Plugin. This release now requires the SENDER_ID to be set on installations (seems an odd idea to me). The SDK folk fixed this on the 12th in this PR and is available in the master branch of the cordova plugin repo. The fix is to hard set the use of the ...


1

You can leverage Lightning out feature to run the Lightning component code in your app. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/lightning_out_requirements.htm. You can do oAuth authenticate the lightning-out code. But offline app load is not possible.


1

I've managed to run app using a bit different link: window.top.location = 'myapp://home'; It need to be something after schema and before query string like in my example. I think salesforce1 is validating a link and if it's empty after schema it throws an error.


1

Here was my solution: I customized the initial login page so that the user could simply enter their username in the username field click reset password to reset their password without leaving the page. They receive an apex:pagemessage confirming its been reset, and can then login with the temp. password, proceed to the changepassword page and login. I ...


1

When building a hybrid mobile app using Visualforce with offline support, you'll need to address: Displaying Visualforce pages offline Managing session expiration Offline data storage You can use the html5 application cache to cache your Visualforce page and its resources for offline use. You probably don't want to use JS Remoting because it injects ...


1

This may be due to the server not register these headers. But for android you can make as patch for api 16 and greater... Find the following code: if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN){ webview.getSettings().setAllowUniversalAccessFromFileURLs(true); } Hope it will work for you.


1

I think periodically checking the state of user in the user's home org is the better way to solve this. You can use the AuthToken class to obtain the user's session info for that home org. And then use the identity url to validate the user. https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_class_Auth_AuthToken.htm#apex_class_Auth_AuthToken


1

The standard way of debugging an android application is via the logcat panel of the android IDE (either the old eclipse ide or the new Jetbrains based one). If you're unfamiliar with that, you can always execute adb logcat on the command line. This will use the android debug (adb) command line tool to run logcat in the terminal. However, so far as I'm ...


1

The errors were related to force-droid. I downloaded the source from git-hub, updated with android update project -p . -t X and then ant clean debug the SalesforceSDK and Smartstore projects, imported in eclipse, imported AccountEditor and it was working.. I have no idea why force-droid was not working or what was broken inside of it.


1

According to https://help.salesforce.com/HTViewHelpDoc?id=sso_provider_addl_params_scope.htm&language=en_US and https://developer.salesforce.com/forums?id=906F00000009CO9IAM We should not set connected app for full access but Perform requests on your behalf at any time Access and manage your data If you're developing a hybrid/web app, you also need ...


Only top voted, non community-wiki answers of a minimum length are eligible