FAQ Database Discussion Community


Is there any way to exclude library folders in worklight build-process?

worklight,mobilefirst
I'm using sencha touch. This library is huge, more than 25MB, 2500 files. So the build process is slow. According to here, we should minify the library to make build process fast. But If I minify this library, debugging gets harder. I don't modify this library. So after first build,...

How to handle JSON Store if user's password has been used?

worklight,jsonstore,mobilefirst
I am building an application for Mobile using IBM MobileFirst 6.3. The app will work as follows:- User has to enter username and password to access the application features. JSON Store is being used to store the user data with encryption. At first use of the application JSON Store will...

IBM MobileFirst adapter call ssl error

ssl,https,mobilefirst,mobilefirst-server
I am trying to get json data from an application via an http adapter of IBM mobilefirst. The app is accessible with https and i get this ssl error: "Runtime: Http request failed: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExpiredException: NotAfter: Sat Jul 26 21:15:15 EEST 2014" This is the xml of the adapter: <wl:adapter...

Is the “SAP Netweaver Gateway adapter” capable of transforming odata Edm.DateTime into json

mobilefirst,mobilefirst-adapters,mobilefirst-server
I'm just wondering if the SAP NGW adapter is capable of transforming odata Edm.DateTime into a json/javascript DateTime. For example... When retrieving formation from SAP, the following format is available in the odata document - "name_of_attribute": "/Date(1377561600000)/" What we expect in json: "name_of_attribute" : "2012-04-23T18:25:43.511Z" Although I can't find it...

IBM Security Access Manager Integration with MobileFirst 6.3

mobilefirst,isam
i am working on a MobileFirst application. It needs to be integrated with IBM security access manager. i have configured the login modules, realms and authentication configurations. On the code side, what should be done?.

How to get MobileFirst 6.3 server for free for the purpose of learning

mobilefirst,mobilefirst-server
I have been given an assignment to take up training on IBM MobileFirst 6.3 Server Administration. I want to show the students how to install MobileFirst server and configure it. But after going through the documentation, i realized , the server component is not part of MobileFirst Foundation developer edition,...

IBM Worklight/MobileFirst 6.x/7.0 - “Code object is not signed at all.” error with buildtime.sh script

ios,xcode,worklight,mobilefirst,codesign
I am having an error when uploading my Worklight Application into iTunes. The application validation fails with the following error: Invalid Signature. Code object is not signed at all. The binary at path [MyApp.app/buildtime.sh] contains an invalid signature. Make sure you have signed your application with a distribution certificate, not...

Production MobileFirst 7 Server upgrade from Worklight 6.2, Adapter call not working

upgrade,mobilefirst,mobilefirst-adapters
We have a MobileFirst application that worked with Worklight 6.2 server - production also. We are using a http adapter: <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> Currently we are changing the production server to 7.0.0. On Development Server we could test our application and all the functionalities were OK. We'we created the .war with...

IBM MobileFirst 7.0 Server : No runtime environment deployed in this server

mobilefirst,mobilefirst-server
Successfully installed IBM MobileFirst 7.0 Server on following environment, and also, a runtime environment was created step by step and deployed successfully in this server (with GUI of MobileFirst Platform Configurion Tool shows deployed): CentOS 6.4 MobileFirst Server 7.0 jdk-7u79 MySQL 5.6.24 Apache Tomcat 7.0.62 But I got a No...

Using Mobilefirst database for jsonstore sync

database,mobilefirst
We are developing an Hybrid application using IBM MobileFirst Platform Foundation 6.3. We don't know if we can use the database that we installed during the MobileFirst installation. It's a bad practice to use this database as a backend for our apps? Will this generate a overhead?...

JSONStore Android app on x86_64 emulator

android,android-emulator,jsonstore,mobilefirst
I've built a MobileFirst 6.3 app that uses JSONStore and tried to run it on the x86_64 Android emulator. I got 02-15 13:11:54.600: D/com.worklight.nativeandroid.common.WLUtils(2081): WLUtils.loadLib in WLUtils.java:539 :: Extracting zip file: featurelibs/armeabi/libcrypto.so.1.0.0 02-15 13:11:54.800: D/com.worklight.nativeandroid.common.WLUtils(2081): WLUtils.loadLib in WLUtils.java:549 :: Loading library using System.load: /data/data/com.OfflineAuthSample/files/libcrypto.so.1.0.0 02-15 13:11:54.810: E/art(2081):...

More on PUT HTTP Adapter in MobileFirst Platform

mobilefirst,mobilefirst-adapters
This is similar to the question asked here, but that question was not exactly answered to what the problem is. Customer.xml <?xml version="1.0" encoding="UTF-8"?> <wl:adapter name="Customer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wl="http://www.ibm.com/mfp/integration" xmlns:http="http://www.ibm.com/mfp/integration/http"> <displayName>Customer</displayName> <description>Customer</description> <connectivity> <connectionPolicy...

Getting VersionConflictEngineException in IBM Mobile First 6.3

mobilefirst,mobilefirst-server,mobilefirst-adapters
I'm receiving the following message on server log in IBM Mobile First 6.3 every time an Adapter is getting called: Stacktrace [ERROR ] Error sending bulk request: java.lang.RuntimeException: failure in bulk execution: [2]: index [worklight], type [devices], id [b2deefe7-0d15-4ed4-b199-7e42440fc372], message [VersionConflictEngineException[[worklight][1] [devices][b2deefe7-0d15-4ed4-b199-7e42440fc372]: version conflict, current [58], provided [57]]] at com.ibm.elasticsearch.servlet.DataReceiver.processData(DataReceiver.java:132)...

App ICON inside mobile quality assurance web console is not displayed?

ios,mobilefirst,mobilefirst-qa
These are a different questions the other question was how to change an existing ICON inside the MobileFirst Quality Assurance Console! Question difference is: a) general first upload of an ICON b) change existing an existing ICON Situation: You can create application inside MobileFirst Quality Assurance, after this creation no...

Get Photo from album is not working in MobileFirst using mobile browser simulator

android,cordova,mobilefirst
I am trying to run this code from phonegap so I can integrate it in my hybrid android application built with IBM MobileFirst. The capture photo button is working perfectly(source: camera) While the other buttons are not working at all.. I want to be able to get photo from my...

Cannot compile Java adapter using adapter-builder task (ANT) in MFP v7

java,ant,mobilefirst,mobilefirst-adapters
We have been using the adapter-builder task (com.worklight.ant.builders.AdapterBuilderTask) to compile our MFP adapters for several weeks. We just started now adopting Java adapters in our MFP apps but we cannot compile them with the adapter-builder task. Looking at the compilation errors in the output, it seems the adapter-builder task does...

How do I add the feature to share content in an IBM MobileFirst App?

cordova,phonegap-plugins,ibm,mobilefirst
So I read this link and it allows functionality to add the share button in a phonegap application. Link : http://www.x-services.nl/phonegap-share-plugin-facebook-twitter-social-media/754 I need to do it for IBM MobileFirst App. I need a solution to Either integrate this plugin with Worklight App or Which allows to share things via IBM...

How to change the mobile app ICON inside mobile quality assurance?

mobilefirst,mobilefirst-qa
Situation: You can create application inside MobileFirst Quality Assurance, after this creation no specific App Icon is displayed. After the upload of the first version App Build Version into MobileFirst Quality Assurance the App Icon changes to the Icon with is used for the application inside iOS or Android. The...

MobileFirst OAuth Logout, cached OAuth indentity

mobilefirst
This is a follow-on to a previous question about MobileFirst OAuth. The question being that a call to WL.Client.logout("SomeRealm") does not remove the OAuth token for that Realm/Scope and hence calls resources protected by OAuth still succeed. The answer to which quotes the InfoCentre as requiring a call to obtainAuthorizationHeaderForScope...

IBM MobileFirst Platform 6.3 Trail Issue [closed]

mobilefirst
I Worked on IBM MobileFirst Platform App. is it 30 days trial?

IsCustomResponse is always returning false in Adapter-based authentication

android,mobilefirst,mobilefirst-adapters
I am following the tutorial on implementing Adapter-based authentication on https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/authentication-security/adapter-based-authentication/ isCustomReponse method is always returning false because "authRequired" is not in the response. Please help me if i am doing anything wrong. Adapter Code function onAuthRequired(headers, errorMessage){ errorMessage = errorMessage ? errorMessage : null; return { authRequired: true, errorMessage:...

Disabling default security using @OAuthSecurity(enabled=false)

mobilefirst,mobilefirst-adapters,mobilefirst-server
The following link indicates that the security can be disabled using @OAuthSecurity(enabled=false) - see under "Security configuration of a JAX-RS resource" Question: Does it mean that the default security is disabled? I have a scenario wherein a JavaScript Adapter (developed and being used in a previous version of the product)...

MobileFirst push notification- poll not works

worklight,worklight-adapters,mobilefirst
I try to run the next simple code example on my mobilefirst 6.3 studio, and it doesn't works. It do nothing. What am I missing? WL.Server.createEventSource({ name: 'PushEventSource1', poll: { interval: 3, onPoll: "test1" } }); function test1() { WL.Logger.info(new Date() + ": test!"); } I deploy it successfully: [2015-02-09...

MobileFirst 7.0 Application Center user management

mobilefirst,mobilefirst-appcenter
I have uploaded two apps on Application Center Console. I also have created two users that should see only one of the apps. I have teste with and without restrictions, but the users in appcenterusergroup cannot see any of the Apps. Server.xml configuration looks like this: <basicRegistry> <user name="demo" password="demo"/>...

MobileFirst app build - failed creating temporary directory to build adapter

ant,mobilefirst
I have working command line build setup for my MobileFirst application. However today when I ran a build, I got following error: BUILD FAILED C:\...\build.xml:29: Failed creating temporary directory to build adapter What might be the cause of this error? I'm running the build via ant: ant build Relevant part...

Project /worklight does not update after fix install using minimal-update

mobilefirst
I installed the last fix pack available for the server side (6.3.0.0-MFPF-Server-IF201504041503.zip) and run the minimal-update using the Server Configuration Tool without errors: Buildfile: /root/.mobilefirst_platform_server/server-configuration-tool/Configuration_Hello MobileFirst Server/Hello MobileFirst Server.xml minimal-admupdate: [updateworklightadmin] Logging output of task <updateWorklightAdmin> to file /root/.mobilefirst_platform_server/configuration-logs/updateWorklightAdmin_2015_04_22_13_32_03.log...

Mobilefirst 7 -> windows 8 URL activation scheme parameters

cordova,windows-8,winjs,mobilefirst
I've a problem with activation protocols in mobilefirst / windows8(.1). In a standard winJS app I can get the parameters after activating an app by custom protocol in the canonical way: //register event WinJS.Application.addEventListener("activated", onActivatedHandler, false); //handle function onActivatedHandler(eventArgs) { if (eventArgs.detail.kind == Windows.ApplicationModel.Activation.ActivationKind.protocol) { // The received URI is...

Mobile first vs Responsive Design

design,web,responsive-design,mobilefirst
As per my understanding Mobile First is approach to design something for mobile devices first and then to desktop,and Responsive Design is something we develop for desktop first and by using media queries same thing can be made to fit for mobile. My question is for Mobile First approach do...

Multiple MobileFirst apps in one APK

version-control,mobilefirst
We are working with a team of multiple developers in a MobileFirst project. The issue is that we have only one APK for a multi-app development. What is the best approach? Work with one APK in development on a single MobileFirst app? Work with multiple APKs on multiple MobileFirst apps,...

IBM MobileFirst Plugin should use a background thread

objective-c,cordova,mobilefirst
I am using IBM's MobileFirst Platform Foundation (6.3.0.00-20150130-1638) to build an Android and iOS application. The application (iOS at this moment) gives quite a lot of information when running. But one is quite common and I think it is also quite dangerous. The error I get is: THREAD WARNING: ['WLApp']...

IBM MobileFirst project and Git clone

eclipse,git,mobilefirst
I started working on MobileFirst project in a team environment and need to store the project in a git repo (hub.jazz.net). From my local I can push all the working directory into git repo just fine, however if my team members clone the project from the repo, the resulting project...

MobileFirst Platform JSONStore An error occurred when reading from the database

android,mobilefirst,jsonstore
IBM MobileFirst version: 6.3 Mobile OS: Android 4.4.4 I have a use-case where we need to store a single or multiple base64-encoded image string(s) in a single document inside a collection. (Due to the nature of the use-case, it is not possible to split the images into multiple documents inside...

MobileFirst OAuth and Logout

mobilefirst
I have a test application that accesses two Adapters: A JavaScript adapter protected by a SecurityTest referencing a realm A Java adapter with a method protected by an OAuth scope corresponding to that same realm. If I follow this sequence everything works as expected: Attempt to access the JS adapter,...

Read adapter procedure requestTimeoutInSeconds from worklight.properties file

worklight,mobilefirst,worklight-adapters,mobilefirst-adapters
I am developing a Worklight 6.2 application wherein I have a requirement to read parameters from worklight.properties file. I have successfully read below parameters and set them. <connectivity> <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>${adapter.protocol}</protocol> <domain>${adapter.domain}</domain> <port>${adapter.port}</port> </connectionPolicy> <loadConstraints maxConcurrentConnectionsPerNode="200" /> </connectivity> But I am unable to set...

MobileFirst 7.0 App giving “ERROR itms-90035” on submission to apple app store

ios,mobilefirst
I am trying to submit the new version of my MobileFirst 7.0 ios app to apple store but as soon as I submit, it gives me following error: I am using XCode 6.3.1 on Yosemite. I have also added my Distribution certificate and Provisioning Profile to it but it still...

MobileFirst: adapter returned data containing special characters

jquery,twitter-bootstrap,webview,mobilefirst,mobilefirst-adapters
One of my adapter returns some data containing special characters (like quotation marks, bullets or question marks etc.) onSuccess of adapter call, I save data in a variable as shown below. try{ var data = JSON.stringify(response.invocationResult) ; var _meetingDetailsArray = JSON.parse(data).MXEMEETINGSet.EMEETING ; }catch(Exception) { logger.error( Exception ); } After that...

MobileFirst Building a project WAR file with Ant

ant,mobilefirst
I am trying to build the project .war file with Ant in MobileFirst Platform 6.3. my build.xml has the following: <?xml version="1.0" encoding="UTF-8"?> <project name="myProject" default="all"> <taskdef resource="com/worklight/ant/defaults.properties"> <classpath> <pathelement location="/Applications/IBM/Worklight-CLI/public/worklight-ant-builder.jar"/> </classpath> </taskdef> <target name="all"> <war-builder projectfolder="." destinationfolder="bin/war" warfile="bin/project.war"...

How to implement “remember me”-like functionality?

mobilefirst
I am developing an hybrid mobile application using ibm mobilefirst platform. I am using the custom authentication module example to implement the login module. The problem here is when the user closes the application the app gets logged out. Is there anyway that I can implement so that the user...

MobileFirst Operation Analytics Console - Not linked to MobileFirst Admin Operational Console

mobilefirst,mobilefirst-server,mobilefirst-analytics
I followed the below URL to configure my Operation Analytics Console. IBM InfoCenter Link Configured the properties in the Project WorkLight Runtime Application deployed in WAS. But i am not able to find the property wl.analytics.console.url under the environment variable for the web module section in WAS admin. Please guide...

Mobile First Server Configuration Tool log removal

mobilefirst,mobilefirst-server
MobileFirst Server 6.3 DB2 10.x Lunux 6.5 Installed MFP Configuration tool, and created a configuration instance. Next, I created and deployed a runtime configuration for my application. I see there are associated logs relating to these activities. Next I undeloyed the runtime from the applications server, and then deleted the...

MobileFirst 7.0 Server stuck “Deploying” when trying to deploy a .wlapp file to Tomcat

mobilefirst,mobilefirst-server,mobilefirst-console
While after finishing installing and configuring successfully the MobileFirst 7.0 Server, I'm getting the issue that the MF server is stucking in "Deploying" when I try to Deploy Application => Selecting a MF studio /bin folder .wlapp file. And here are some log messages from Tomcat log files: 10614 WorklightManagementPU-mysql...

MobileFirst: Server to send update notification/message to clients

mobilefirst,mobilefirst-server
Is it possible that MobileFirst Server push some update to all clients when specific change has occurred or specific user did some action? For example, an admin opened a session for all other users to join in. So once admin opened a session then instantly other should be notified of...

Beacon trigger actionPayload available actions?

ibeacon,mobilefirst
I just started learning beacons in MFP and have question concerning actionPayload for a trigger. Knowledge Center gives JSON example with "actionPayload" : {"alert" : "Avail lowest interest rate of just 7.5% on home loans!"} I'm trying to realize: What are the actions available except of alert? How could I...

MobileFirst CLI - edit/build/test cycle

mobilefirst,mobilefirst-cli
One thing I really like about the later version of Worklight/MobileFirst Studio is the faster edit/test cycle when working in the Mobile Browser Simulator: just edit, save, click Go/Refresh; no need to build/deploy. When using CLI (6.3.0.00.20141111-1216) this does not seem to be the case. Seems like I need to...

Is IBM MobileFirst a longlife solution? [closed]

eclipse,mobilefirst
I'm searching for crossplatforms to develop mobile applications but the main criteria is the app's longevity. By longevity I mean if there is/will be updates by the company regularly and if the platform won't be give up without any updates from the company. The platform I discovered that suits a...

Mobile first - Encrypted Cache Success and Failure Handler

javascript,local-storage,method-chaining,jsonstore,mobilefirst
In MobileFirst V6.3 once we call a JSON Store API, Success and failure can be captured using .then() & .fail(). To chain the API calls we can use multiple .then(). Let's say, WL.JSONStore.startTransaction() .then(function () { var data = [{name: 'carlos'}]; return WL.JSONStore.get(collectionName).add(data); }) .then(function () { var docs =...

IBM MobileFirst SQL Adapter

mobilefirst,mobilefirst-adapters
I want to connect my IBM MobileFirst apps to my database, I use wampserver (localhost), username = "root", password ="...", database name = "mydatabase". In my MobileFirst project, I created a SQL adapter "myAdapter". Inside the myAdapter.xml, this is the code: <connectivity> <connectionPolicy xsi:type="sql:SQLConnectionPolicy"> <!-- Example for using a JNDI...

“The application will not be able to retrieve notifications. push Service :The Sender account is not recognized”

android,push-notification,mobilefirst
I have followed every step mentioned on IBM MobileFirst Platform Push Notification tutorial, but unfortunately it doesn't work it on my device. I am getting this error: Failed registering for push notifications. The applicationwill not be able to revieve notifications. pUsh Service :The Sender account is not recognized. ...

IBM Mobilefirst 7.0 - Difference between SAP Netweare Gateway and SAP JCo adapters

ibm,mobilefirst
What is the difference between SAP Netweaver Gateway and SAP JCo Adapters ? SAP Netweaver Gateway Adapter: IBM MobileFirst Platform Foundation applications can communicate with SAP Netweaver Gateway back-end services by using SAP adapters. Using HTTP rest calls and the OData protocol, applications can remotely create, retrieve, update, and delete...

MFP CLI v7.0 cannot build-deploy project initially created with MFP Studio v7.0

mobilefirst,mobilefirst-studio,mobilefirst-cli
Problem Context: We initially created a MFP project (native API for iOS) using MFP Studio plugin v7.0 for Eclipse. We have this project under source control (Git on DevOps). Problem: After pulling down the MFP project code from Git (fresh pull), if Studio is first used to “Deploy Native API”...

How to know if an adapter is running on MobileFirst Development Server

mobilefirst,mobilefirst-adapters,mobilefirst-server
Is there some way to know if an adapter is running in the MobileFirst Development Server or if it has been deployed to a full server? --Update-- Specifically, I want to find out, from the adapter's code itself, if the adapter is being executed in a developer's machine or if...

MobileFirst platform 6.3 returning incorrect Arabic text

mobilefirst,mobilefirst-adapters
I have development version of Mobile First Platform 6.3 on my machine and a production version (also 6.3) hosted on a server, the local version is returning the Arabic text correctly while the server is returning corrupted Arabic. The requests happen as follows: My machine > Local mfp server >...

IBM MobileFirst Platform ClassPath error during installation

mobilefirst,mobilefirst-server
Running MFPF7.0.0.0-IF201506081356 on WebSphere Liberty 8.5.5.5 (that's 8.5.5 with fp 5 applied), IBM Java 7.0.8.10. After deploying the first runtime to server the following error occurs: 6/10/15 15:25:05:600 CEST] 0000002c com.ibm.ws.webcontainer.webapp E SRVE0293E: [Servlet Error]-[Failed to load listener: com.worklight.server.bundle.project.JeeProjectActivator]: java.lang.NoClassDefFoundError: com.worklight.server.bundle.api.WorklightBundles at...

What is the difference between Apache Cordova and IBM MobileFirst Platform

cordova,mobilefirst
I have to start a project on Apache Cordova for developing mobile applications. One of the requirements is to use IBM MobileFirst platform. What is the difference between these two frameworks? My understanding is that Apache Cordova is a framework for writing the mobile applications, where as IBM MobileFirst is...

Adding a realm in Websphere Linux 8.5.5.4 Server

realm,mobilefirst
Need a help on how to add a realm for a example. com.worklight.integration.auth.AdapterAuthenticator How should i put this realm to server?...

How to use time delay in MobileFirst adapters

timer,delay,mobilefirst,mobilefirst-adapters
Has anyone tried introducing Delay/timer into the MobileFirst Platform Foundation adapters? is there anyway to introduce specific amount of delay? I tried setTimeout() but that doesn't work because of window object will not available in Adapter.js...

MobileFirst Adapter: JSON result order is different as that of the DB data position

mysql,json,adapter,mobilefirst
I have created a logintable with Username and Password as its column. I have configured the adapter in MobilFirst environment. When invoking the adapter I got the below output: Invocation Result of procedure: 'procedure1' from the MobileFirst Server: { "isSuccessful": true, "resultSet": [ { "pwd": "Harry123", "usrname": "Harry" } ]...

IBM MobileFirst Platform 7.0 SRVE0255E: A WebGroup/Virtual Host to handle /worklightconsole has not been defined

mobilefirst,mobilefirst-server
I tried to install MobileFirst Operation Console in a clustered environment. WAS01 and WAS02. After deployed the MobileFirst Operational console tried to access the console. Got the below error. Checked the Virtual host settings in both Cluster Member. its set to default_host. SRVE0255E: A WebGroup/Virtual Host to handle /worklightconsole has...

MobileFirst Error: Cannot perform this operation on removed entity

mobilefirst,mobilefirst-server,mobilefirst-studio
I am currently working with an IBM consultant to upgrade our Mobile App from Worklight 5.0.6 to MobileFirst 7. I am deploying locally. I am occasionally getting this error message that prevents me from deploying to the console: [2015-05-28 11:35:16] Deploying application 'MyGPCMobile' with environment 'iphone' to MobileFirst Server... [2015-05-28...

Mobilefirst 7.0 soapadapter fails calling no argument operatio

soap,mobilefirst,mobilefirst-adapters
I created a soapadapter via the wizard using the webservice wsdl file. Most operation run succesfully bu one. This particular operatio returns an array of objects and consume no arguments. The sample procedure parameters is: { "recuperaVariabili": { } } Calling the procedure, never invokes onSuccess nor onFailure functions. Looking...

'WLAuthorizationManagerPlugin' not found, or is not a CDVPlugin

mobilefirst,mobilefirst-studio
I have a hybrid app I am building for iOS. It uses Adapter authentication which has been working fine. I recently updated from MobileFirst Studio 6.3 to 7.0. At the same time, I updated Xcode to version 6.3. My app continues to work fine and authenticates with the backend fine...

install MobileFirst 7.0 server (for test and production environment) with IBM Installation Manager

mobilefirst,mobilefirst-server
While I'm following the IBM Knowledge Center' guide to install a IBM MobileFirst 7.0 Server for production environment but that document is too simple for any newbees to handle it. Can someone provide a more detailed guide and a MF 7.0 server download link so that I can use it...

IBM MobileFirst/Worklight JSON

json,soap,mobilefirst,mobilefirst-adapters
In IBM MobileFirst 7.0, I created a SOAP adapter by pointing MobileFirst Platform Studio to a WSDL running on a local web server. When calling the SOAP adapter, which converts JSON to XML then when the response is received from XML back into JSON, it is setting number (integer, decimal)...

How to use MQA setReportOnDoubleSlideEnabled in an iOS App?

ios,mobilefirst,mobilefirst-qa
In the Starting an iOS session documentation topic the [[MQALogger defaultSettings] setReportOnDoubleSlideEnabled:false] method is mentioned, however the library does not have such a method. Is there a library update the contains this method, or did I miss something?...

WL.device.getID(option) in IBM MobileFirst

mobilefirst
I just need to be sure about some things regarding the API WL.device.getID(option) Questions : Will this be unique to every device ? Wont this id change regardless of MobileFirstAPP version releases or re-intallation of the app or product update meaning Worklight 6.0,6.2,6.3 in future too ? ...

Cannot Find Application Mobilefirst

war,mobilefirst
I have deployed the war file project in context path /example . Also i have uploaded the .wlapp and adapter in worklight console. Where do point my application Build path to work in different server? Should i point to /example war file path? This is my reference on: http://www-01.ibm.com/support/knowledgecenter/SSHSCD_6.3.0/com.ibm.worklight.deploy.doc/devref/t_transporting_the_app.html...

Unable to Resolve PKIX Path Building Failed

https,certificate,mobilefirst,mobilefirst-adapters
I try to connect to https web service using below code. adapter.xml: <connectivity> <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>https</protocol> <domain>somewhere.com</domain> <port>443</port> <connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds> <socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds> <maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode>...

IBM MobileFirst Add envirnment via ant script

ant,mobilefirst,mobilefirst-cli
Is there a way to add environment (android,windows and IOS) using ant with the help of any jar Files. Like we create .wlapp,.war and .adpater files with the help of worklight-ant-builder.jar I can do this via mfp CLI but i need to do it with out MFP CLI installed in...

How to debug a SOAP adapter in MobileFirst 7.0

mobilefirst,mobilefirst-adapters
In mobilefirst 7.0 I succesfully created a soapadapter starting from a wsdl URL. The web server expose some operations, some work fine but one. I debugging on the webserver side an I see that a complex type is missing one object. Debugging with Mobile Browser Simulator I can see that...

How to Capture data, store data, perform math operations and verify data in IBM Mobilefirst TestWorkbench 8.6.0.1

mobilefirst,rational-test-workbench,mobilefirst-mtw
Tool: IBM Mobilefirst TestWorkbench 8.6.0.1 OS: Windows 7 Have an app which displays 3 text boxes, two to input numbers and a third displays the sum of numbers Record a test. (Enter number in each of the two text box; the result is displayed in the third test box) While...

IBM Mobilefirst 7.0 -Java Adapter Invocation Client Side

mobilefirst,mobilefirst-adapters
The following is an addition program to add two numbers. my Server-side coding and Client-side coding as follows. it throws error like ReferenceError: com is not defined at (compiled_code):24 To work with Java Adapter Http Adapter is mandatory. Server.js and client.js as follows package com.mss; public class Calculator { public...

Read parameters from worklight.properties in html pages

worklight,mobilefirst
I am developing a worklight application(Worklight 6.2). In this application i have requirement where certain parameters i need to read from worklight.properties file. For worklight adapters i got success but i also require to read some parameters in html pages from worklight.properties file. My question is,is it possible to read...

Error while trying to fetch data from SQL DB in mobilefirst application

javascript,html,mobilefirst
I am using mobilefirst studio 6.3.0, a hybrid mobilefirst application with SQL adapter invoked. The HTML page to which the data is to be displayed is: <script> $.getScript(path + "js/report.js"); </script> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> <div data-role="header"> <a...

IBM MobileFirst Platform - Any IBM certified list of JavaScript GUI, MVC frameworks?

mobilefirst
I am trying to find out a list of JavaScript GUI, MVC frameworks that are certified by IBM for IBM MobileFirst hybrid/web app development. I know MobileFirst studio comes with tooling support for DOJO and JQuery Mobile. Sencha Touch tooling is deprecated in MobileFirst Platform version 6.3. MobileFirst Platform framework...

How to check offline mode using MobileFirst Platform?

javascript,mobilefirst,mobilefirst-server
I am using the below code in app\common\js\main.js On clicking a button we are setting heatbeat to 5 seconds so that every 5 seconds MobileFirst Server will trigger one of the two events: "WORKLIGHT_IS_CONNECTED" or "WORKLIGHT_IS_DISCONNECTED". I have added event listeners for these two events and in their callback handlers...

MobileFirst server connect error for hybrid app on Android

mobilefirst
I am developing a hybrid app with MobileFirst that uses an HTTP adapter to connect to a REST service. On my preview in firefox or any other browser there are no errors and the app runs nicely. If I deploy the app to my Samsung Galaxy S4 mini. I get...

How to invoke Java adapter procedure from JS adapter procedure in MobileFirst Platform 7.0?

worklight,mobilefirst,worklight-adapters,mobilefirst-adapters
Our team is migrating to MobileFirst Platform 7.0 because of Java adapters introduced in this version. And after having a quick look I haven't found how to invoke procedures in Java adapter from procedures in JavaScript adapters. Looks like Java adapter doesn't define procedures and has only REST endpoints. How...

IBM MobileFirst server preview

mobilefirst
I develop an application on MobileFirst V7. It calls HTTP adapter and returns data. It can run in preview on my Eclipse. I deploy it to MobileFirst server (using WAS Liberty Profile) and run it in preview, When I call adapter it raises an error that its log in messages.log...

Change IP address to run MobileFirst Android app on real device

android,mobilefirst
I want to run a MobileFirst hybrid Android application my real device (Samsung Galaxy S5 KitKat 4.4.2) My phone and PC are connected on the same network. How can I change the IP address?? I can't find worklightServerRootURL in the file application-descriptor.xml attached below. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Licensed...

How to run a timer in the Background

mobilefirst,worklight-runtime
I wanna create a mobile apps using IBM MobileFirst Platform Foundation. The app should have a timer, and when I close the application, timer still running. So if the apps has not been used for long time, it will uninstall itself. I hope can get a draft idea how to...

IBM Mobilefirst 7.0- Java Adapter fails to execute on the server side [closed]

java,mobilefirst,mobilefirst-adapters
I'm getting the following on my MobileFirst Java Adapter when performing an addition Error 500: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String @Path("/calc") public class Calculator { @Context HttpServletRequest request; //Define the server api to be able to perform server operations WLServerAPI api = WLServerAPIProvider.getWLServerAPI(); @GET @Path("/addTwoIntegers/{first}/{second}") public int addTwoIntegers(@PathParam("first")...

MobileFirst Server 7.0.0 as service on Windows Server 2012 not recognizing runtime enviroments

windows-services,mobilefirst,websphere-liberty
We are encountering a problem running the MobileFirst Enterprise Server on Windows Server 2012 R2. When we start using a batch file as Administrator, as long as we stay remote connected the server is working OK, we see the Runtime Environments. But when we log out, server is unreachable. We...

MobileFirst nonBuild refresh - in 6.3?

mobilefirst,mobilefirst-studio
In answer to a previous question I confidently said: The need to rebuild in order to see changes in your Web components (CSS, JavaScript, HTML) did used to be an annoyance in early versions of what was then Worklight and is now MobileFirst. I forget when the need for a...

Mobilefirst Procedure invocation error. Ecma Error: TypeError:

java-ee,mobilefirst
We have deployed war file with class and libraries but we are currently having issue on class it will return. Ecma Error: TypeError: [JavaPackage com.ibm.cio.authenticate.Bluepages] is not a function, it is object. (2015-02-24T23:52:55.169Z/663a1bef97ce5a75c64441102c8a35c23628502c/ServicesAuthAdapter-impl.js#73) Our websphere is running in java 1.6 and development is 1.7 What would be possible solution? Should...

MobileFirst 7.0.0 application on Windows Phone 8.1 error from Weinre

windows-phone-8.1,mobilefirst,weinre
The MobileFirst application that we've developed works on iOS, Android. The Windows Phone 8.1 port is showing following error when displaying console messages on weinre console: Error in Error callbackId: WLAuthorizationManagerPlugin1600160345 : TypeError: Unable to get property 'WL-Authentication-Success' of undefined or null reference Uncaught Exception: Unable to get property 'WL-Authentication-Success'...

MobileFirst: At Pubic IP- Unable to Call adapter from application

mobilefirst,mobilefirst-adapters
On Production I am receiving the error below. POST http://publicIP:9080/AppName/apps/services/api/proj/common/query 403 (Forbidden ( The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. ))worklight.js:1099 window.WLJSX.Ajax.Request.WLJSX.Class.create.requestworklight.js:1062 window.WLJSX.Ajax.Request.WLJSX.Class.create.initializeworklight.js:526 klassworklight.js:3410 window.WLJSX.Ajax.WLRequest.WLJSX.Class.create.sendRequestworklight.js:3278...

Any way to write Ant Script to enter multiple input from directory and run them in parallel

ant,mobilefirst
I want to write a script which takes input from directory all the adapters and build the adapters in parallel. I just want a generic script which works with every mobile first code to build adapters. <target name="build-adapter"> <dirset id="check" dir="/Users/admin/Documents/workspace1/MyTime/adapters" includes="*"/> <property name="test" refid="check"/> <echo>${test}</echo> <parallel> <adapter-builder folder="/Users/admin/Documents/workspace1/MyTime/adapters/${test}"...

MobileFirst Hybrid App. Change mainFile to a subdirectory

mobilefirst
I am trying to retrofit an existing ASP.NET web app into our business's MobileFirst environment while using as much of the same code base as possible between the 2 projects. The issue that I am running into is that while, the browser app is mostly a single page, it rests...

Mobile First - How to segmentate logs depending on the session

worklight,mobilefirst,java.util.logging,websphere-liberty,mobilefirst-server
I'm working on a mobile banking solution using Mobile First v 7.0 and one of the requirements is to isolate the customer's logs in a dedicated log file which gets created once a session is started to track all the details by session. Is it possible to do such thing...

MobileFirst InstallationManager hangs

mobilefirst,mobilefirst-installation
Working on an isolated Linux machine, no internet access. I am installing MobileFirst Server v7.0, WAS Liberty and IBM Java. Having attached my repositories to Installation Manager I select an option to install. Click Next, and nothing further happens. I see various solutions offered all of which are concerned with...

Preview Mode on Production Server

mobilefirst,mobilefirst-studio
We've recently migrated from 5.0.6 Worklight. The preview mode was working in 5.0.6 console. After migrating to 7.0 and uploading the common.wlapp file, I am getting the following errors and cannot preview the app. Should the preview mode work on a production MobileFirst Platform server version 7.0? I use this...

Is there a way to cache the response received from a HTTP adapter?

mobilefirst,mobilefirst-adapters,mobilefirst-server
Is there a way to cache the response received from a http adapter in IBM MobileFirst Platform? It would be more efficient to get data from cache for frequently used services instead of hitting the service again and again. Even an adapter(server) side caching would reduce response times considerably. Is...

Server Configuration Tool in IBM worklight V7 can not be started for z/Linux

mobilefirst
I installed IBM mobilefirst server on Liberty Profile in z/Linux(SUSE). I find the Server Configuration Tool can not be started, but it can be start in Windows7. I want to know that Server Configuration Tool can not be started only in z/Linux or all platform(x86,AMD)....

IBM MobileFirst - Can't subscribe, notification token is not updated on the server

android,mobilefirst,mobilefirst-server
I'm unable to subscribe my application, built using IBM MobileFirst Platform, for push notification. I'm getting the error message WLPush.isAbleToSubscribe in WLPush.java:414 :: Can't subscribe, notification token is not updated on the server LogCat 05-06 10:20:44.767 20941-20941/com.vdot.pushdemo D/ViewRootImpl﹕ ViewPostImeInputStage ACTION_DOWN 05-06 10:20:44.887 20941-21582/com.vdot.pushdemo D/WLClient﹕ WLClient.createInstance in WLClient.java:213 :: WLClient has...

IBM MobileFirst: getActiveUser, getCurrentUserIdentity and “strong identity”

mobilefirst,mobilefirst-adapters
I'm trying to get the user's identity from an adapter and I see that the documentation mentions two different APIs that look like having equivalent descriptions to me: getActiveUser and getCurrentUserIdentity. Looks like the first one needs a realm as a parameter: http://stackoverflow.com/a/17018349/239408. I don't know about the other one....

Recommended way to force MobileFirst-CLI to use Java 6?

java,osx,mobilefirst,mobilefirst-cli
I'm on OS X and have been using Java 1.8 from Oracle. In order to install mfp I did have to install the old Java 6 from Apple, but it also seems certain mfp commands, mfp build at least, fail unless I change my JAVA_HOME environment variable to point to...

Error Deploying MobileFirst Server Configuration

mobilefirst,mobilefirst-server
In the process of upgrading a remote MobileFirst Server to version 7.0 (from version 6.2), and I've run into an issue when attempting to use the Server Configuration Tool to redeploy. Here's the only apparent error I'm seeing, unsure what other information you may need to help diagnose this: Buildfile:...

MobileFirst Push notification fails after an adapter call

push-notification,worklight,mobilefirst
I'm working in a hybrid Mobile First app for android, and after I call an adapter the callback function registered never get call. Here is the log, all I can see is that my app is unregistering the push subscriptions. 05-06 11:18:16.429: D/mali_winsys(4021): new_window_surface returns 0x3000 05-06 11:18:16.429: D/ProgressBar(4021): updateDrawableBounds:...

WLClient addGlobalHeader does not work

objective-c,mobilefirst,mobilefirst-adapters,mobilefirst-studio
I am trying to set global headers to send specific security information to the backend adapter. This does not seem to work for native iOS application using Objective-C. I am sure, I am missing something. Here is my simple example: NSLog(@"Invoking Procedure..."); WLProcedureInvocationData *myInvocationData = [[WLProcedureInvocationData alloc] initWithAdapterName:@"RSSReader" procedureName:@"getStories"]; MyInvokeListener...

MobileFirst Platform native iOS app building have error while building .wlapp

ios,ant,mobilefirst
I am working on MobileFirst Platform version7 using ant script to build the project .war, .wlapp, .adapter. Everything was working fine while our project was a hybrid one. Now the project is migrated to native-iOS in. I am using following code to build .wlapp. <target name="build-wlapp"> <app-builder worklightServerHost="localhost:10080" applicationFolder="//Users/admin/Documents/workspace/NewProj/apps/Try" environments="iOSnative"...