With IBM Worklight 6.2.0.1
Is It possible to show worklightSetting (show/modify worklight server url:port) for Native Apps ?
application-descriptor.xml don't include worklightSetting properties for Native API.
Thanks
The worklightSetting bundle in iOS is available out-of-the-box only for a Hybrid application.
For fully-native applications only an SDK containing adapter and authentication API methods is provided, and so any bundle you'd like to have you will need to implement on your own.
However, starting MobileFirst Platform 6.3, there are new API methods to accomplish exactly this (which you could create a UI for).
Hybrid: WL.App.getServerUrl and WL.App.setServerUrl
Native iOS: serverUrl and setServerUrl in the WLClient class
Native Android: setServerUrl and getServerUrl in the WL and WLClient classes
Native WP8: WLClient.getInstance().getServerUrl and WLClient.getInstance().setServerUrl in the WLClient class
Related
I would like to initiate a call with the react-native api and play a ringtone on the receiving phone. Is this supported on the api?
From Samyak Jain's answer
You can check out this library: https://github.com/react-native-webrtc/react-native-callkeep
It uses callkit on the ios side and connection service on the android side.
We also have some sample apps for IOS and Android that use CallKit and ConnectionService respectively and use Agora RTM. You can find them here: https://github.com/AgoraIO/Advanced-Video/tree/dev/backup/Calling-Interface
I'm trying to set up environments for my companies iphone, android, and web applications. Is AWS compatible to use if it is coded in Obj-C and the android app is in javascript but not react?
You can check this link
https://aws.amazon.com/mobile/resources/
For ios sdk on github
https://github.com/aws/aws-sdk-ios
And javascript sdk is
https://aws.amazon.com/documentation/sdk-for-javascript/
Getting started dev guide :
https://docs.aws.amazon.com/aws-mobile/latest/developerguide/getting-started.html
PS:You should always secure credentials for making these
I am checking for SMS notification subscription code in Native Android and IOS. I was able to find code for hybrid app but can some body help with a sample code for native Android and IOS.
I was checking the below link
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/sms-notifications/
There is no support for SMS in native applications in MobileFirst Platform Foundation 7.1. You can do this, though, in IBM MobileFirst Foundation 8.0. See:
Notifications overview: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/
Handling SMS notifications: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/handling-sms-notifications/
I am able to create a useridentity in mobilefirst using custom authenticator.
But I want to add a friendly name in the devices section of operational console, how do I add Friendlyname from android native code.
Do I need to do it from adapter or in the app if I am using native android code. Because I can see something for js client side but nothing for android.
You can set the device's friendly-name using the WL.Device.setFriendlyName API method.
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/hello-world/introduction-to-mobilefirst-platform-operations-console/#devices
http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.apiref.doc/html/refjavascript-client/html/WL.Device.html
Set Friendly Name API has been added in the latest version of MFP 7.1(16-Nov-2016 release).
Worklight hybrid apps back buttons are broken on IOS9 because following piece of code is broken.
window.history.back();
As per following link the solution is to use WKWebView instead of UIWebView.
https://github.com/jquery/jquery-mobile/issues/8254
We are using worklight 6.2.x, which generates IOS code, is there any alternate way to resolve this issue ?
Found a configuration change in JQuery Mobile that resolves this issue.
Problems with window.history using JQuery/Javascript on Cordova app in IOS9
The way it works in Worklight Hybrid applications is that Cordova’s ViewController is used to display, to render, the web resources - the app. This ViewController that is provided by Cordova (and cannot be replaced) uses iOS’s UIWebView.
Therefore, until Cordova addresses this in the Cordova codebase by moving from using UIWebView to using WKWebView this defect cannot be fixed in Hybrid apps generated by Worklight - because they use what Cordova supplies them with.
As a possible workaround, perhaps you can look at implementing your navigation like how it is done in the Multipage application here: https://github.com/MobileFirst-Platform-Developer-Center/MultiPageApp/blob/release71/apps/MultiPageApp/common/js/main.js
The sample project is meant to run in MobileFirst Platform Foundation 7.1, but the JavaScript is the same also in Worklight 6.2.