Skip to content

updates forceng to recent version of force.js from salesforce#10

Open
jaygauten wants to merge 1 commit intovlocityinc:masterfrom
jaygauten:jegauten/feature-updates-forceng
Open

updates forceng to recent version of force.js from salesforce#10
jaygauten wants to merge 1 commit intovlocityinc:masterfrom
jaygauten:jegauten/feature-updates-forceng

Conversation

@jaygauten
Copy link
Copy Markdown

feature: forceng.js update
impact: salesforce api/request calls
scope: native mobile (iOS, Android)
changes:
- refactor logic on loginWithPlugin
- refactor error response from plugin to fix blank error message on failed request
- changed method in update method from post to patch
- other salesforce changes in force.js

Comment thread forceng.js
// Only required when using REST APIs in an app hosted on your own server to avoid cross domain policy issues
// To override default, pass proxyURL in init(props)
proxyURL,
proxyURL = baseURL,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we defaulting the proxyURL to baseURL?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally see your comment. 💃

@mattgoldspink
Copy link
Copy Markdown

@frankvlocity @jegauten The changes here seem to force the file to only assume it will be used on mobile. Can we do it in a way where we don't force it to only assume it will be used on mobile because for example we'll use this in Omni in omniout?

@jaygauten
Copy link
Copy Markdown
Author

@frankvlocity @jegauten The changes here seem to force the file to only assume it will be used on mobile. Can we do it in a way where we don't force it to only assume it will be used on mobile because for example we'll use this in Omni in omniout?

hi @mattgoldspink im not sure which part are you referring to but as far as i know most of the changes can support both mobile and web, though there is one change that allow api calls via plugin but only if the networkPlugin is present otherwise it will use the browser

Comment thread forceng.js
}

function isOnMobile() {
return true;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jegauten RE: it being mobile only.

This line is what seemed to suggest it's going to be focussed on purely mobile. You're always returning true. Is this right?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good catch. I don't think we use that. Let me check with team.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Matt.

yes we dont use that we have a flag on our own in the app.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we safely remove it so it's clear it's not needed/used?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it will be removed

@frankvlocity
Copy link
Copy Markdown

Who has the permission to pull in the change and close this? @mattgoldspink @haxaco ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants