ibm-mobilefirst

Why native WLClient lifecycle bind to Activity lifecycle

蓝咒 提交于 2019-12-11 09:45:45
问题 Short Version I've found that WLClient lifecycle is bound to Activity. Activity lifecycle is managed by OS. Do you have any recommendations to compensate this? Long Version For Android Native project, the first step should be create a WLClient instance by the following call WLClient.getInstance(Context ctx) From the API document, it's a Context, not an Activity, but in reality, there would be a type cast in WLPush.java in WL framework. It doesn't make sense to bind a WLClient to a Activity,

Worklight 6.2 share info between apps family

让人想犯罪 __ 提交于 2019-12-11 09:44:52
问题 In Worklight 6.2, you are able to share information between applications in the same family. My understanding using this API you can share key value pairs between apps. Is it possible to set a complex JSON as the value? Or is it only possible to share a string? I'm not sure about how you need to define that an applications belongs to an applications family - How is it configured? Is there a tutorial about this functionality? 回答1: To enable simple data sharing in worklight 6.2 Add an

How can I configure Worklight to serve *.svg files with contentType=image/xml+svg?

帅比萌擦擦* 提交于 2019-12-11 09:35:02
问题 When I try to use an svg file as the source for an image tag, or as a background image url, I don't see anything (and firebug tells me Failed to load the given url It looks like it is because Worklight is serving it with a Content-Type response header of application/octet-stream . How can I get Worklight to send it with image/svg+xml so that it will display properly? 回答1: Finally found it. Add the following to the server.xml: <mimeTypes> <type>svg=image/svg+xml</type> </mimeTypes> [ You can

Worklight 6.1 and iOS 8

ぐ巨炮叔叔 提交于 2019-12-11 09:29:37
问题 I have some Apps developed with WL 6.1 and now, I updated my device to iOS 8 and none of the App is working. All of then are stucked in the Splash Screen. I can't update WL because my server is in the "old" version. Any suggestion? 回答1: Update: Please see the following tech note for iOS 8 support: http://www-01.ibm.com/support/docview.wss?uid=swg21684538 The link includes download links for patched versions of Worklight 5.0.6, 6.0, 6.1 and 6.2 as well as a list of fixed issues and other

Worklight Server - Failed to deploy adapter 'LinkAccount.adapter'.

北城余情 提交于 2019-12-11 09:27:10
问题 From the previous problematic and devastation in installation worklight server into our websphere, IBM Worklight 6.1 - Project fails to initialize because the project database schema is from version N/A , we discover new problem after that catastrophic event. First we got this error message Error 500: javax.servlet. ServletException: Worklight Console initialization failed.Logged Exception: java.lang.RuntimeException: FWLSE4010E: The project 'xxxx' failed to initialize, because the project

Can't play audio in Android device

孤人 提交于 2019-12-11 08:50:04
问题 I want to make something like this : <audio controls> <source src="media/blablabla.mp3" type="audio/mpeg"></source> </audio> I run my app on local host :8080/console and it worked (The music can played). But when I run that apps on my device, the music can't played. My Device OS is Android 4.1.2 回答1: See this question for an answer: IBM Worklight 6.1 - Unable to play a local media file using Cordova Copy-paste of my answer: ... for playing a local media file, you need to provide the full path

Worklight Analytics Operational Console empty

妖精的绣舞 提交于 2019-12-11 08:29:19
问题 I'm trying to use Worklight Analytics features for App. I have separated servers for analytics and worklight console. I have tried the configuring of analytics in 3 way: in worklight.properties: wl.analytics.logs.forward=true wl.analytics.url=http://[host]:[port]/analytics/data in initOptions.js: { analytics: {enable: true, url: 'http://[host]:[port]/analytics/data'} } in server's config: <jndi name="[context]/wl.analytics.url" value="http://[host]:[port]/analytics/data" /> <jndi name="

'Cordova/CDVViewController.h' not found when Archiving in Xcode (from Worklight)

◇◆丶佛笑我妖孽 提交于 2019-12-11 08:16:09
问题 I'm suffering this error message when trying to Archive my app prior to submission to the App Store. The full error is: In file included from /Users/Kevin/Documents/workspace/SongLink2/apps/SLPhone/iphone/native/Classes/CDVMainViewController.m:14: In file included from Classes/CDVMainViewController.h:15: /Users/Kevin/Documents/workspace/SongLink2/apps/SLPhone/iphone/native/WorklightSDK/include/MainViewController.h:34:9: fatal error: 'Cordova/CDVViewController.h' file not found #import

IBM Worklight Application Center iOS unresponsive to touch events

半世苍凉 提交于 2019-12-11 08:06:01
问题 After successfully building and deploying the IBMAppCenter project, when attempting to download the IBM Application Center on iOS devices, there is no response when clicking on the actual installer link. This occurs on both real devices and through the simulator. Android application seems to be working just fine. I've provided a picture here showing some of the errors messages that we're seeing when clicking on 'IBM App Center iOS', as well as provided a subset of them below (http://i.imgur

IBM Worklight 6.0 - App Center on iOS7 fails to open

南笙酒味 提交于 2019-12-11 08:01:01
问题 After building the IBMAppCenter application with Xcode 5.0.2, When running the .ipa on an iPhone it unfortunately doesn't work. When clicking the app it opens up, shows the splash image for a few seconds, but then closes without throwing an error. Is this a known error? 回答1: Make sure that you have followed the instructions on how to enable the AppCenter application for iOS 7, as detailed in the following IBM technote: http://www-01.ibm.com/support/docview.wss?uid=swg27039574 I'd even say to