Worklight Hybrid app back button issue on IOS9 - ibm-mobilefirst

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.

Related

Virtual background in agora web sdk

I am using agora-meeting-core for a meeting web app. Now, I need to add a virtual background. How can I implement it?
It looks like virtual backgrounds isn't a feature of this open source Agora example project, or the Web SDK actually.
It is a feature of the Native SDK though, (iOS, macOS, Android, Windows)

Using AWS for android and iphone applications

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

How to Launch/Open any other external app from hybrid app? [duplicate]

I have a requirement to open the native version of the hybrid app (.ipa/.apk/.appx) when the hybrid app is requested in a device browser.
I am able to detect the environment using WL.Client.getEnvironment(); method, if it is found to be Android/iPad, I want to launch the respective .apk/.ipa file in the device. Any help is appreciated.
Re-reading this question and the comments several times... I still do not understand the actual scenario... it'd be best to rephrase it.
Scenario: How to open an app from the web browser:
If you have added the following environments to your Worklight application:
Mobile Web
Android
iPhone
And when visiting the Mobile Web version of your app, you want to display a message like "For the full experience, open the full application by clicking here".
Then:
It is implied that the user already has the application installed.
If it is not installed, you need to take care of that somehow
The way to handle this scenario is to use URI schemas:
For Android: How to implement my very own URI scheme on Android
This means that after adding the custom URI schema to AndroidManifest.xml, you could then detect the device OS the Mobile Web app is currently running on and display a custom link: myapp://<the URI schema you've defined>. Tapping it will open the app installed on the device.
For iOS, in a similar fashion: https://coderwall.com/p/mtjaeq
Also see: http://wiki.akosma.com/IPhone_URL_Schemes
Alternate solution: If you are not sure if the app will be installed or not, then instead of using URI schemas you can always point to either Google Play or Apple App Store, to the app page; the user will then have either a "Open" or "Install" link.
Scenario: How to open an app from my own app
If you have a Worklight Hybrid application (Mobile Web is not a Hybrid application), and you want to open another application from within it, you can:
Use the same approach of URI schemas, or
Use Cordova plug-ins
I have created this Worklight 6.1.0 project to demonstrate:
Android - How to open, for example, the Android Settings app from your Worklight Hybrid app
iOS - How to check if Waze is installed and open it, and if it is not installed then to open Apple Maps instead.
See instructions.txt in the apps\test folder.
Are you asking that if the user via their device browser hits the webapp version of your app on the internet, the website will ask the user to fire up the native app on their device? kind of like what ebay does?
if that is what you want check out these pages
android:Launch custom android application from android browser
IOS:
iPhone - Open Application from Web Page

Is Sencha UI and SenchaTouch only meant for web applications accessed from device or for native apps too?'

As I am new to PhoneGap and SenchaTouch I want to know the basic information . I understand that sencha Touch is only for web applications accessed from device. I am correct Please clarify my doubt that is 'Is Sencha UI and SenchaTouch only meant for web applications accessed from device or for native apps too?'
Thank you
Lakshmi
Sencha touch is a web toolkit, provides API to create interface looks similar to Native UI. But, however it is still a web application with a native look. However, if you want to crate the native packaging (application build) and if you want to access the device hardware features like camera, sensor then you can go for PhoneGap. PhoneGap can warp the HTML and JavaScript code and helps you to generate native builds for each platforms.

Develop Mobile Web app using Dojox

I am new to Dojo. Dojo provides a way to develop Web app for mobiles.
Just I want to create Hello world app with Dojo.
Any one help me????
look at this resources, i think it will be helpful
Dojox.mobile test pages - Several samples showing how to use various features of dojox.mobile.
Dojox.mobile Documentation
API Reference for dojox.mobile
Instructions for installing and configuring the Android Device Emulator. You can use the emulator to test the application if you don't have access to an Android device.
Visit the Safari Reference Guide or tips on building web applications on the iPhone