ibm-mobilefirst

“No MBean found for MobileFirst project 'HelloWorld'”

匆匆过客 提交于 2020-01-06 03:09:07
问题 I am using eclipse-jee-luna-SR2-win32 and MobileFirst Platform Foundation 6.3.0.0-MFPF-StudioP2-IF201504301455. Have created a adapter and tried running it. Getting error: No MBean found for MobileFirst project 'HelloWorld'. Possibly the MobileFirst runtime web application for MobileFirst project 'HelloWorld' is not running. If it is running, use JConsole to inspect the available MBeans. If it is not running, full error details are available in the MobileFirst Development Server Eclipse

MobileFirst Platform 8.0 beta - breaks cordova-plugin-statusbar

只愿长相守 提交于 2020-01-06 02:38:08
问题 After adding cordova-plugin-mfp , cordova-plugin-statusbar no longer works. Steps to recreate: Create a new Cordova project with statusbar plugin: cordova create test cd test cordova platform add ios cordova plugin add --save cordova-plugin-statusbar Add the following text to config.xml: <feature name="StatusBar"> <param name="ios-package" value="CDVStatusBar" onload="true" /> </feature> <preference name="StatusBarStyle" value="default" /> Run the project and note the status bar text is black

IBM MobileFirst Platform Foundation 6.3: Can we edit the custom attributes of User Identity Object [MobileFirst Session]

送分小仙女□ 提交于 2020-01-06 02:33:42
问题 With the help of the following API calls, 1. WL.Server.setActiveUser 2. WL.Server.getCurrentUserIdentity We can create user session and get the user identity properties respectively. I have a scenario where I want to update the properties[custom attributes] in the user identity object when the session is active. I couldn't find an API which can do this task. Is there any way/work-around available. 回答1: In general activated userIdentity is immutable. Try this, it might work var userIdentity =

How to best apply an MVC architecture in dojo mobile (custom controllers)?

余生颓废 提交于 2020-01-06 02:23:24
问题 I'm pretty new to Dojo and I'm wondering about some best practises for building a MVC application. I know there are modules like dojox/app, but it seems like these are made for more complex applications. It seems like the best way to go is to make custom page-level controller objects with will handle all the page logic, but I'm not quite sure how to fit this piece in the puzzle. What is the proper way to switch between views and passing through parameters through them following a MVC

Where can I find a list of Worklight Error Codes

亡梦爱人 提交于 2020-01-06 02:16:09
问题 Where can I find a list of the possible error codes for the various sections of Worklight? Specifically, when I'm calling WL.JSONStore.findAll() my onFailure callback is being called and the error code is -50. I can't find this number anywhere in the code nor in the Worklight documentation, or on the web so far. I've seen references to worklight.js having it, but it is not there. Ditto for WLResponse.h and WLFailResponse.h. 回答1: The list of error codes is in the JSONStore Documentation.

Login Authentication In IBM Worklight

冷暖自知 提交于 2020-01-05 23:31:49
问题 I am using Jquery Mobile to start with IBM worklight project. I have created a Login Page. Whenever user click on the submit button I need the function too run to check for the username and password in the Database. Database -> I am using MY SQl database. Using the command client I have added the tables, username Password and values. I need to check this table whenever user clicks on the submit button. IBM worklight tutorial says I need to add the JDBC jar file to server/lib. I have copy

Login Authentication In IBM Worklight

自闭症网瘾萝莉.ら 提交于 2020-01-05 23:31:37
问题 I am using Jquery Mobile to start with IBM worklight project. I have created a Login Page. Whenever user click on the submit button I need the function too run to check for the username and password in the Database. Database -> I am using MY SQl database. Using the command client I have added the tables, username Password and values. I need to check this table whenever user clicks on the submit button. IBM worklight tutorial says I need to add the JDBC jar file to server/lib. I have copy

Worklight- Send application logs to specific log file

匆匆过客 提交于 2020-01-05 17:40:33
问题 We have two hybrid applications running on our production server (App1-App2). We define two levels of our logging : WL.Logger.debug : Used to log the request and response of the applications if we need to track user interactions to debug any error which is logged to trace.log WL.Logger.error : Used to log the error that could happen on our application which used to log to SystemOut.log What is the configuration that we need to set to put a specific file logging for each application? and Is it

How to send a push notification from Node.js using REST API in MobileFirst Foundation 8?

余生颓废 提交于 2020-01-05 15:22:20
问题 Who knows what did I wrong in implementing this on a Node.js server? The parameter were valid and it worked with the Poster on my local Mac. Node.js and MFP 8 Beta are running locally on the Mac. Here is the code for the server.js file and the steps are: prepare the header MFP Settings create post options create the JSON object for MFP Push Do the POST call using http write the json Push Data app.post('/award', function(req, res){ var notificationMessage = req.body.message; // prepare the

IBM Worklight - Combine Facebook SDK Java code in Worklight application

廉价感情. 提交于 2020-01-05 10:06:29
问题 I can use the Facebook SDK for Android to login with Facebook and get user information. When doing this all of the code is in src/com.name/MainActivity.java . But when using Worklight, everything I code is in Worklight now, in assest/www/default and nothing in MainActivity.java. My question is, if I've used the Facebook SDK in MainActivity.java how can I use that in the Worklight app? 回答1: First please familiarize yourself with creating Cordova plug-ins in Worklight (specifically, this