ibm-mobilefirst

How to maintain session in IBM worklight server side login module

≡放荡痞女 提交于 2020-01-16 00:34:12
问题 In my IBM worklight demo app I've implemented Login Module. It works fine, but in what way I should maintain the session ? I want to log-out my user if log-out action is performed but not when app goes into background. Currently when my app is closed by Android device back button or anyhow if app goes into background session gets expire and again user has to login. Can I achieve this maintaining some server side session? 回答1: When you close your application OS destroys WebView component thus

How to maintain session in IBM worklight server side login module

假如想象 提交于 2020-01-16 00:34:05
问题 In my IBM worklight demo app I've implemented Login Module. It works fine, but in what way I should maintain the session ? I want to log-out my user if log-out action is performed but not when app goes into background. Currently when my app is closed by Android device back button or anyhow if app goes into background session gets expire and again user has to login. Can I achieve this maintaining some server side session? 回答1: When you close your application OS destroys WebView component thus

What is the best approach for navigating between pages in a mobile application [closed]

旧巷老猫 提交于 2020-01-15 10:59:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . What is the best approach for changing pages in a multipage mobile application? I have seen it done both ways (as shown below). I can't seem to understand which one is the best approach. Are there differences between the two? $("#nextPage").load("myapp.html", function(){

Not able to send push notification to iOS devices through MFP Server V8 Console

眉间皱痕 提交于 2020-01-14 04:07:11
问题 I am trying to send a push notification to an iOS device through MobileFirstPlatform V8.0 Server Console but when I am sending the notification I am getting the following error: An error occurred while the notification was sent. Internal server error. No devices found. I checked in Home -> mfp -> Devices , the devices exist there: I am able to successfullly send a notification to the android devices. Its just the iOS ones which are causing the problem. UPDATE I enabled the trace and when I am

IBM Worklight - is Direct Update allowed by Apple's guidelines for the App Store?

余生长醉 提交于 2020-01-14 01:33:09
问题 I read about Worklight's Direct Update feature already. However, I still have some questions that would like to clarify: Q1: Is it true that Apple allows Worklight Apps to be published to APP Store even there is a direct update feature? Q2: How will Apple review and monitor the Worklight Apps' content if there is a huge change after the direct update? Or, Apple does not worry about the cached web resource in the application, does it? Q3: Is there any limitation or pre-condition about the

Is there a tool to install an existing Cordova 3 plugin into a Worklight 6.1 app?

二次信任 提交于 2020-01-12 14:57:26
问题 Worklight 6.1 uses Cordova 3.1. The documentation shows how to author your own Cordova plugin but I can't find any information on how to install existing Cordova 3 style plugins into a Worklight project. I tried installing the JavaScript and native components, and editing config.xml similar to what I did with Worklight 6.0, and that works in some cases. But I find that Cordova 3 style plugins are typically authored with the Cordova plugin management utility in mind and can't necessarily be

How to move a MFP 8 Beta Mobile App to the MFP 8 GA Version?

纵然是瞬间 提交于 2020-01-11 11:38:06
问题 This is the situation: I build a app with different integrations with the mfp 8 beta. The app worked fully on the local dev server and mostly on the Bluemix. During the beta. All basic functions of the app, were working on both MFP 8 Beta servers (Local and Bluemix) Now I have installed actual CLI for MFP 8 GA and I created a MFP 8 Development Server on Bluemix. I still have the local MFP 8 Beta Development Server installation on my local machine. Now the mobile app still works with the

IBM Worklight - Unable to display data retrieved using SQL adapter

放肆的年华 提交于 2020-01-10 05:44:04
问题 I am trying to fetch data from a database and display it in the app. Below is my code. The invokation is doing well, but the data is not displayed. sqlAdapter-impl.js var selectStatement = WL.Server.createSQLStatement("select * from studentinfo"); function getStudentInfos() { return WL.Server.invokeSQLStatement({ preparedStatement : selectStatement, parameters : [] }); } sqlAdapter.js window.$ = window.jQuery = WLJQ; function wlCommonInit() { GetEmployeeData(); } function GetEmployeeData() {

Mobilefirst 7.1 Push notification - Send Message REST API vs submitNotification(userId, notificationText)

半世苍凉 提交于 2020-01-07 04:28:26
问题 Our requirement is to send unicast push notifications. For which we have created an Event source and subscribed user as mentioned in this documentation But which method is correct to send push notification? What are Pros and Cons of using one or the other submitNotification(userId, notificationText) 1)Should we use the method we declared in Push Adapter. 2)The Send Message (POST) from REST API Runtime Services. Is this the correct way to send Unicast notifications. 回答1: Both methods are valid

Toast for Push Notification on Windows Phone 8 using Worklight 6.1

半城伤御伤魂 提交于 2020-01-07 04:10:12
问题 I'm using Worklight 6.1 and sending push notifications to Windows Phone 8 using unauthenticated procedure. I am creating the notification by using the following procedure. This procedure updates the tile and badge but doesn't generates a toast notification: WL.Server.createDefaultNotification(notificationText, badgeDigit, {custom:"data"}); What is the correct procedure for adding a "toast" to a received push notification on Windows Phone 8? Also, is there any way to clear the notification on