Error during mfp app webupdate for implementing direct update functionality - ibm-mobilefirst

I have tried to check direct update provided by ibm mobile first.
after changing the web resources to upload my new application to mfp console
i tried to run: mfpdev app webupdate
console output:
Deploying to server:'http://10.207.135.166:9080' runtime:'mfp'
Error: Web resources could not be deployed for platform: ios
Error: The mfpdev app webupdate command failed: INVALIDPLATFORMVERSION

Related

Build Cordova Browser for production

I have an Apache Cordova app which I have deployed for both ios and android. But i want to deploy it for my web server i.e. I want to deploy it on my server live so users can access it using their browsers. How can I go about it?
for android its cordova build android --release but for browser, I don't know which command to use for this operation.
For browser it is simply
cordova build browser --release

UWP app sideload on hockeyapp error: Unable to download JS Bundle

I've built UWP in react-native. When I run it on locale with react-native run-windows command app works fine. Now I've deployed it on Hockeyapp. When I download it on some other system and run there it throws error Unable to download JS Bundle Please check screenshot for more. Can anyone tell where and what I'm missing?
Windows folder structure:

Unable to connect to MobileFirst Server 8 beta

I am working on ionic with mobilefirst project. While i am trying to integrate ionic App with mobile first, the mobilefirst server is not connecting with my App, in the server console i am not getting any information regarding to my App.
Configuration:
mobilefirst: 8.0.0
cordova: 6.1.1
android: 5.1.1
To first step in order to have the MobileFirst Server recognize your application is to register the application. You can do this in two ways:
Using the MobileFirst CLI
Make sure you have the CLI installed
navigate to the root folder of the application project
Run the command: mfpdev app register
Directly from the MobileFirst Console.
This step will require you to manually enter the details of your application
Load the console, typically localhost:9080/mfpconsole (if running the server locally)
Next to "Applications" in the sidebar navigation click on "New"
Provide the app details:
Name
Platform
bundle ID and version (you can find these in the config.xml file of your application project
The next step is to actually have the application send a request to the server to see if the connection succeeded...
Add the SDK by running the command: cordova plugin add cordova-plugin-mfp
Open the index.js file of your application and add the following code (just an example):
function wlCommonInit() {
WLAuthorizationManager.obtainAccessToken().then(
function () {
alert ("successfully obtained a token from the server");
},
function(response) {
alert("Unable to obtain a token from the server: " + JSON.stringify(response));
}
);
}
Take a look at this Ionic example: https://github.com/csantanapr/mfp8-ionic-demo/blob/master/www/js/app.js
Once the custom "MFP init" has been fired, you can then use the above WLAuthorizationManager API.
If it fails, then you did not properly register your application.
Make sure the version is correct
Make sure the bundle name is correct
Please read through the tutorials: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/all-tutorials/
You can also find Ioic app examples with MFP, here: https://mobilefirstplatform.ibmcloud.com/labs/developers/8.0/intro/

MFP CLI 7.1 adapter wont deploy with mfp push command

I have my project on github https://github.com/drkhannah/KMF
I pushed this MFP cli 7.1 project to github and had a team member clone it
After an npm install, I tried the 'mfp cordova preview' command, errors said this wasnt an mfp project, then I tried 'cordova platform add ios and android', then 'mfp cordova preview' worked, is this only because the platforms folder was in the .gitignore?
Also I had trouble adding an adapter, since I uploaded to github without adapters, the adapters folder was empty, so git didn't track it, not till I added an adapters folder in my mfp project folder(server) could I get 'mfp adapter add' to work, but now 'mfp push' deploy the adapter, it only deploys the cordova app
Why is this happening?
I fixed this, I had to do mfp deploy from the mfp project folder, mfp push wasn't pushing the adapter, but mfp deploy did

Worklight 6.1 - Error on Blackberry 10

I'm using Worklight Studio 6.1.0.00-20131219-1900 and trying to build an app for Blackberry 10
I create a new Worklight app (no customizations other than adding the blackberry 10 environment), run it on the Worklight server, and use ripple to build and deploy to the blackberry 10 simulator.
The app installs on the simulator, But when it launches, I immediately get a JavaScript error:
[ERROR] Error initializing Cordova: Extension Device not found
This is possibly related to a problem seen with Cordova 3.1 (see: Error initializing cordova: Extension device not found in PhoneGap 2.9.0 and blackberry10 webworks application) but I'm not seeing any solutions.
Is there any way to get Worklight 6.1 apps to work on Blackberry 10?
My guess is that your issue is mentioned in infocenter
http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.dev.doc%2Fdevref%2Ft_creating_a_new_ibm_BlackBerry_10_environment.html
basically, did you do the "ant qnx copy-extensions" command ?