updates forceng to recent version of force.js from salesforce#10
updates forceng to recent version of force.js from salesforce#10jaygauten wants to merge 1 commit intovlocityinc:masterfrom
Conversation
… mobile sdk version 7++
| // 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, |
There was a problem hiding this comment.
why are we defaulting the proxyURL to baseURL?
|
@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 |
| } | ||
|
|
||
| function isOnMobile() { | ||
| return true; |
There was a problem hiding this comment.
@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?
There was a problem hiding this comment.
That's a good catch. I don't think we use that. Let me check with team.
There was a problem hiding this comment.
thanks Matt.
yes we dont use that we have a flag on our own in the app.js
There was a problem hiding this comment.
Can we safely remove it so it's clear it's not needed/used?
|
Who has the permission to pull in the change and close this? @mattgoldspink @haxaco ? |
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