问题
This is the situation:
I build a app with different integrations with the mfp 8 beta.
The app worked fully on the local dev server and mostly on the Bluemix. During the beta. All basic functions of the app, were working on both MFP 8 Beta servers (Local and Bluemix)
Now I have installed actual CLI for MFP 8 GA and I created a MFP 8 Development Server on Bluemix.
I still have the local MFP 8 Beta Development Server installation on my local machine.
Now the mobile app still works with the "UserLogin" Adapter on the local beta mfp 8 server, even when I use the actual CLI MFP8.
But the app does not work the development MFP 8 GA server on Bluemix.
NOTE: By the way the local development MFP8 server download is currently not available. https://mobilefirstplatform.ibmcloud.com/downloads/
This is the config.xml entry
<mfp:platformVersion>8.0.0.00-20160328-0234</mfp:platformVersion>
<mfp:clientCustomInit enabled="false" />
<mfp:server runtime="mfp" url="http://mobilefoundation8-XXXXX-server.mybluemix.net:80" />
<!-- mfp:server runtime="mfp" url="http://LOCAL_IP:9080" /> -->
<mfp:directUpdateAuthenticityPublicKey />
<mfp:languagePreferences>en</mfp:languagePreferences>
These are the debug information in chrome:
- Working on the local mfp 8 beta development server:
- Not working with Bluemix MFP 8 Development Server
ERROR MESSAGE detail do not know where to search:
"responseText":"{\"errorCode\":\"INVALID_CLIENT_ID\",\"errorMsg\":\"Invalid client ID.\"
回答1:
Client SDKs
- Cordova: remove and re-add any cordova-mfp-* plug-in you may have in your app
- iOS: execute
pod update
from the project's root folder (note that the podfile structure has changed) - Android: re-build the project
- Windows: execute
nuget update
from the project's root folder
CLI
- Uninstall:
npm uninstall -g mfpdev-cli
- Reinstall:
npm install -g mfpdev-cli
^ Required due to a bug that prevented deployment of adapters to a Bluemix-hosted MobileFirst Server
Adapters
Clear (or completely delete, remove) the ~/.m2 folder in your workstation and re-build them to use GA artifacts.
^ Required due to a bug that prevented deployment of adapters to a Bluemix-hosted MobileFirst Server
^ You should also either create a new adapter instead of the beta adapter, or update the adapter's pom.xml file to be like a newly created adapter's structure (some fields' values will be different)
APIs
Update your security-related APIs, as these have changed between the beta and GA. See here: https://mobilefirstplatform.ibmcloud.com/blog/2016/06/22/challenge-handlers/
Bluemix Mobile Foundation server instance
It is recommended to create a new server instance; support for instances created during the beta will soon be stopped.
DevKit installers
Download and install the GA version of the installer, replacing your existing.
来源:https://stackoverflow.com/questions/38079560/how-to-move-a-mfp-8-beta-mobile-app-to-the-mfp-8-ga-version