ibm-mobilefirst

worklight j_security_check not found

吃可爱长大的小学妹 提交于 2019-12-25 03:40:58
问题 I'm using Worklight Studio Plugin 6.0. I am trying to get FormBasedAuthentication working. When I run and deploy my worklight project, the app login page is presented successfully. However when I click on the login button, an error is thrown on the server console: [ERROR ] FWLSE0048E: Unhandled exception caught: SRVE0190E: File not found: /apps/services/j_security_check [project DojoTest] SRVE0190E: File not found: /apps/services/j_security_check This directory doesn't exist in the project. I

Mobile first server 7.1 - Issue with Android Devices when send multiple push notifications only last message is received in Notification center

随声附和 提交于 2019-12-25 03:37:19
问题 When I send multiple notifications to Apple or Android devices through MFP, Apple devices will receive all the notifications on the other hand Android will only receive the last notification. We are using Unicast Notification to send messages to user devices using this REST API. 回答1: Android devices will also receive all the push notifications sent by the MFP server. The notification shade ( center) will however display only the last received. This does not mean the earlier ones are lost.

MobileFirst Hybrid Development - HTTP Adapter not working on device

≯℡__Kan透↙ 提交于 2019-12-25 03:32:44
问题 I am new to MobileFirst Hybrid development and I have started a prototype project which involves creating adatpers deploying and testing. I was able to create a javascript adatper (http adatper), which calls web api, I was able to deploy the adapter in MobileFirstDevelopment Server, in my case it is my local machine. The project runs successfully in mobile preview mode and also in android emulator, but when I test it in real android device, the adapter functionality does not work. I have

Worklight adapter calls are not encrypted (WL.Client.invokeProcedure)

爱⌒轻易说出口 提交于 2019-12-25 03:28:08
问题 I'm using Worklight adapters to fetch data from a webservice. From client side I'm doing WL.Client.invokeProcedure Server side has respective code. Issue is this client to server adapter communication is via plain text and can easily be sniffed. Though my url is HTTPS but is of no use. Please help, I'm sure there should be a way in IBM worklight to make a secure application. Thanks 回答1: AFAIK worklight is providing only two options for security between your mobile app and wroklight server. As

Does the IBM Worklight HTTP Adapter send/support sending a User-Agent header?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 03:26:31
问题 Do IBM Worklight HTTP Adapters (in 6.1) send a User-Agent header by default when invoking a back-end service using WL.Server.invokeHttp ? What is it's value? Assuming the answer is no, can we add one? 回答1: In the adapter you can get the user agent the client sent like this: var clientRequest = WL.Server.getClientRequest(); var userAgent = clientRequest.getHeader("User-Agent"); If you then want to pass this header along to a backend service: var input = { method :'get', path : 'your/path',

Worklight - getUserPref doesn't persist/load back?

我怕爱的太早我们不能终老 提交于 2019-12-25 03:15:56
问题 I'm trying to persist some data for the user in this WL app using: WL.Client.setUserPref('foo', 'bar'); and getting it back by using WL.Client.getUserPref('key'); My target environment is Windows 8.1 with the latest Worklight Studio (6.2.0.01-20141015). With a user logged in, I have tested this in: Preview Mode Logged a user in Set a user pref Logged out Closed window/tab Opened, logged in again Get back user pref (null) Using the developer console in Chrome. I can see that there was a call

How to use WL.Logger api to output log messages to a file

会有一股神秘感。 提交于 2019-12-25 03:14:22
问题 I am developing an iOS app using IBM Worklight framework. I want to log messages as my code runs e.g. "application startup successful!" My question is How can I use WL.Logger api to log messages? 回答1: Worklight 6.0: Take a look at the updated WL.Logger functionality inside IBM InfoCenter (here and here). Specifically the part that allows you to set a callback. Open initOptions.js and add create a callback function that will be called after every log message is sent to the console: var

IBM MobileFirst: inspecting the HTTP adapter to back-end traffic

跟風遠走 提交于 2019-12-25 03:13:28
问题 I am reaching a back-end from an HTTP adapter deployed in the MobileFirst Development Server with some unexpected results in the responses. The back-end is outside of my control and uses HTTPS, so inspecting the back-end logs or the traffic with wireshark is not a option for me. I'd like to be able to inspect the outgoing headers. Is there some way to do this? 回答1: Worklight Server to Backend I think that easiest would be to switch to HTTP for the time of inspection (assuming it's not

IBM Worklight 6.1 - Server connection Issue

馋奶兔 提交于 2019-12-25 02:57:47
问题 I am working on a IBM Worklight hybrid app POC. I am facing an issue with connecting an app to the WL server. Once deployed on worklight console, when i view it in the browser, it's able to connect to the worklight server hosted on my local machine (even when the app is accessed from mobile chrome browser). However after adding the Android environment and package the application in cordova container, and run the apk from my android device(build and run from eclipse), i am unable to connect to

IBM Worklight 6.1 - adapter parameters size limit

♀尐吖头ヾ 提交于 2019-12-25 02:53:15
问题 I am trying to send a base64 image via Worklight adapter. I want to know which parameters size can the adapter handle? Can I use a 8MB Image and convert it to base64 (let's say it will become 12 Mega Byte on 1 parameter), and then send it successfully to worklight adapter? or there is a length limit for the adapter parameters? 回答1: Basically, there shouldn't be any limitation. But... I think you need to re-think why you would want to send a 12mb-sized image to your app (to the device,