ibm-mobilefirst

How to open the phone dialer?

。_饼干妹妹 提交于 2019-12-04 10:35:17
I am trying to launch the phone dialer in my worklight 6.2 hybrid application when clicking on a button and/or an anchor tag. Below is the code I am using. button: <button onClick='window.parent.location.href = "tel:+1xxxx"'>Tel</button> anchor tag: <a href='tel:+18001111111' class="ui-link">(800) 111-1111</a> When we click on button/anchor tag below is the behavior in android and iOS. In android: Displays a pop up window with the message Application Error net::ERR_UNKNOWN_URL_SCHEME (TEL:+18001111111) In iOS: The click event doesn't respond. Are you testing in the iOS Simulator? if so, you

IBM Worklight - Include a JavaScript library on the server side

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:33:38
I'm building a mobile application using IBM Worklight. In an adapter, I need to use some functionality which is provided by a third party JavaScript file. I want to know if it's possible to include such a file on the server? If not, what is the alternative? At the moment there is no way to include an external JavaScript library in the Adapter code. Currently the only workaround is to copy the library code to the adapter. In Worklight 6.0.0, IBM introduced Node.js adapters, touting "a huge selection of third-party modules extending connectivity and providing implementations of various common

IBM Worklight 6.1 - Content of HTML file not displayed

坚强是说给别人听的谎言 提交于 2019-12-04 07:32:36
问题 I have recently downloaded the IBM Worklight Developer edition from the Eclipse Marketplace. In order to deploy the app when I right-click on the HTML file and choose Run As > Run On Server . It then asks me to select Localhost which is running on my machine. When the index.html file is displayed in the window, a blank page comes and the contents of the body of my HTML file are not visible. I am unable to build and deploy and run any project in IBM Worklight. 回答1: It is not working for you,

org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused

倖福魔咒の 提交于 2019-12-04 06:37:48
问题 i have upgraded my worklight with 5.0.5 to 5.0.6 .when i have worked on 5.0.5 it worked fine but the same code when i am using in updated version worklight 5.0.6 it gives me this error response [/apps/services/api/RTMLight/common/query] success: / -secure- {"responseID":"2","errors":["Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused"],"isSuccessful":false,"warnings":[],"info":[]} / worklight.js (line 1112) Procedure invocation

IBM Worklight - $(“#pagePort”).load() not working in Windows Phone 8

送分小仙女□ 提交于 2019-12-04 06:32:33
问题 I'm using $("#pagePort").load() for navigating between pages in my app, and it's working in Android (both emulator & device) perfectly. However, my app can't change its page when i tried to run it from Windows Phone 8's emulator. 回答1: I have done the following in order to make the changePage functionality work in Windows Phone 8. I suspect this change will make many things "suddenly" work as well. This change is supposed to be part of the next jQuery Mobile release at some point in time...

Build and deploy IBM MobileFirst Platform 6.3 adapters using Ant Builder

泄露秘密 提交于 2019-12-04 06:23:47
问题 I am trying build and deploy adapters from my ant build.xml on to MobileFirst Server,but when i am trying to access the below lines of code in ant.It throws me an error. Error: Could not load definitions from resource com/worklight/ant/builders/defaults.properties. It could not be found. Code: <taskdef resource="com/worklight/ant/builders/defaults.properties"> <classpath> <pathelement location="/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/ant-tools

IBM Worklight - Error while validating project during deployment

我们两清 提交于 2019-12-04 06:01:01
问题 I have created an application using IBM worklight and i am using customAuthenticator for login process I am getting following validation error while deploying application Security test DummyAdapter-securityTest must include user and device realms for AuthDemo:iphone:1.0:api. [project module_23_1_CustomLoginModule] 回答1: You need to re-read the entire Getting Started section about Authentication and Security. There is more reading material here and here. From the error I am thinking you have

Does calling JSONStore.init multiple times on the same collection have any negative side effects

懵懂的女人 提交于 2019-12-04 05:44:35
问题 I wanted to confirm the following: Before I call the WL.JSONStore.init method on a collection, must I first call the removeCollection method? Can I call the WL.JSONstore.init method on the same collection without getting side effects such as duplicate collections in the device's native DB? Can the WL.JSONStore.init method be thought of as a singleton method basically letting the existing collection/device's native db be ready to accept new record updates for that already existing collection?

Worklight 6.0.0.1 & iOS 7 - White bar along bottom of screen?

和自甴很熟 提交于 2019-12-04 05:39:43
问题 I have been working with Worklight 6.0.0.1 and I have noticed an issue with a white bar along the bottom of the screen in all Worklight apps running on iOS 7. I know this has been mentioned before with users of Worklight and iOS 7 (IBM Worklight 5.0.6.1 - Bottom white space in iOS 7) but the suggestion (upgrading to 6.0.0.1) by Idan Adar in that thread does not resolve the problem. Is this a known issue or is there some additional configuration that needs to be done when working with iOS 7?

Authorization failure calling MobileFirst Adapter

Deadly 提交于 2019-12-04 05:29:27
问题 Not sure whether the same issue has been raised before (I tried to comment but was unable to do so - see link below) Anyway, I've just upgraded my development environment to MobileFirst Studio 7.1 and I'm having an issue with the adapters we created in 7.0. The adapters deploy without error but when I try to call WL.Client.invokeProcedure from my browser (I'm just testing as a web app at the moment) I get an error 500 in the browser console. I've tested the adapters using the "Run As ... >