I'm trying to use the Salesforce documented method for determining if we're in the Salesforce1 UI when viewing a page in my app but for some reason, this code is not working the browser version of Salesforce (one/one.app)
if( (typeof sforce != 'undefined') && (sforce != null) ) {
// Salesforce1 navigation
sforce.one.navigateToSObject(aId);
}
sforce is not defined in /one/one.app ... Any ideas?