ibm-mobilefirst

IBM Worklight - How to change dynamically domain/hostname to which the adapter connects from the client at launch or runtime?

余生长醉 提交于 2019-11-28 12:37:46
When configuring WL HTTP Adapters, the domain and port are part of the adapter configuration .xml file build and uploaded on the WL server. For our use case (especially beta testing and demos) the endpoint server url needs to be configurable for the end user. Example, same builds are tested by QA on test envs, while BA connects to demo. We have only one WL Server up and setting environment specific servers is not an option. Is it possible to change domain/hostname dynamically at application launch or runtime ? Ideally it would be to get and use the domain/hostname value from a drop down or

Download PDF file from through MobileFirst Adapter

拜拜、爱过 提交于 2019-11-28 12:32:59
问题 I am building an application to download the PDF file from out back-end server. I have written following code: On Backend Server, following is the method: @POST @Consumes(MediaType.APPLICATION_JSON) @Produces("application/pdf") public Response download() { ResponseBuilder response = Response.ok((Object) new File("myFile.pdf")); response.header("Content-Disposition", "attachment; filename=myFile.pdf"); Response responseBuilder = response.build(); return responseBuilder; } I am calling this

IBM Worklight - Can't change app icon in both Worklight Console and device

故事扮演 提交于 2019-11-28 12:29:03
问题 I want to change the application icon from the default one to custom one. I'm using this element in application-descriptor.xml <thumbnailImage>common/images/some-logo.png</thumbnailImage> but nothing changes. There is still a default image in Worklight Console and iPad, that i deploy to the iOS Simulator. 回答1: The thumbnailImage element in application-descriptor.xml does not control the application icon you see in a device/simulator. For changing the application icon in Worklight Console, see

how to pass domain,port number,username and password from user input to worklight http adapter

和自甴很熟 提交于 2019-11-28 12:28:31
问题 read values from user input XML: `<protocol>http</protocol> <domain>192.168.1.10</domain> <port>9080</port> <username>user</username> <password>pwd</password>` ok....i will explain briefly........ i am trying to access from process servers running in different pcs..... if i specify details like above it will become specific to one system only... So i want to pass details from my app to which i want to connect 回答1: Based on the additions to the question, the answer is still - it is not

Mobilefirst 8 extend login timeout by acquiring resource / manual trigger

自古美人都是妖i 提交于 2019-11-28 12:15:09
问题 Platform: ionic 3 Objective: For protected resources, there's a scope to protected with security checking with timeout. Beside kicking out user when idling like 1 min, refresh login session(access token?) after each adapter call . If better, can refresh login session with a call. Finding: Tried obtainAccessToken and insert that in WLResourceRequest . To me, it just uses Remember Me Duration instead of Success State Expiration . But after Remember Me Duration , it still logout without updating

No MBean found for worklight project

混江龙づ霸主 提交于 2019-11-28 11:46:08
I have been getting this error while starting up my server with my worklight project (.war) deployed on it. Was wondering if anyone has any inputs. Below are the relevant information. The system is set up in Redhat OS , Worklight version 6.2 consumer edition , DB2 as database and WS-Liberty 8.5.5.1 as server. P.S: My application was available before this problem occured, however my worklight console was never working correctly (always had problem with message on worklight console saying " no runtime configuratin can be found "). It still says the same. logs [AUDIT ] CWWKG0016I: Starting server

SESN0008E: A user authenticated as anonymous has attempted to access a session owned by user

二次信任 提交于 2019-11-28 11:20:53
问题 Environment: MFP 6.3 Studio Windows 7 MFP 6.3 Server (WAS LC) Downloaded the form-based sample from the IBM MobileFirst Platform Developer Center. In MFP 6.3 Studio, the sample runs fine. I then change my build settings and Build All Environment -> get the new wlapp file. I get my war file from the MFP 6.3 Server. Open up and put in the modified authenticationConfig.xml Basically it's just transferring the one snippet from the studio authenticationConfig.xml to the xml file within the WAR

Retrieve base64 image stored as a CLOB from derby with Worklight adapter

故事扮演 提交于 2019-11-28 10:37:50
问题 I am trying to retrieve an image stored as a CLOB in a Derby DB via a Worklight SQL adapter. I would like to do something similar to what was written up here: https://www.ibm.com/developerworks/community/blogs/dhuyvett/entry/jsonstore_revisited_in_worklight_v6_part_1_the_adapter?lang=en except for the referenced article the author is using DB2. Does anyone know how I can do this in Derby? Currently when I go to retrieve the image doing a SQL Select, the string returned is "IMAGE": "org.apache

IBM Worklight 5.0.6.1 - Not getting Push Notifications when phone/app is closed

岁酱吖の 提交于 2019-11-28 10:36:06
I have a Worklight hybrid app with basic push notification working in android. If the app is running and in focus when the notification is pushed, it behaves exactly as I would expect. The notification callback in my app is called, and it pops up a SimpleDialog. All Good . If I dismiss the app by clicking on the Home Button, and a new message arrives, I see the notification in the Android notification area, and when I click on the item in the android notification list, the item gets dismissed from the list (but the app does not come back into focus) If I then launch my app from the Apps menu,

IBM Worklight - How to retrieve an already-deployed .wlapp file?

浪尽此生 提交于 2019-11-28 10:20:50
问题 I have an already running Worklight application. We are planning to move to another production cluster tomorrow but I want to get the old .wlapp that is already deployed on the first cluster. How can I get it? I could find a directory on the temp file of the WebSphere application server, but it is in an exploded form. When I zipped one of them and converted it to .wlapp, while the deployment was successfull, I had a Direct Update and the application failed to start... Is it the right path?