How can I use device gestures in Oracle MAF application? - hybrid-mobile-app

I want to use phone shake gesture in my oracle mobile app. I found an artical related to Oracle MAF device gestures here:
https://wikis.oracle.com/display/ADFMobileDesign/Pattern+-+Device+Gestures
But didn't found any example that how can we use this in mobile app. If anyone has implemented this before, please share. Thanks.

Added a custom cordova shake plugin to my MAF application and invoke it from javascript file which was included on application home page feature. You can get cordova plugin and its usage techniques from here:
https://github.com/leecrossley/cordova-plugin-shake

This video helped me use the Swype in my application :
https://www.youtube.com/watch?v=TbFwiXSayUM
add tag to view tag:
<amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
<amx:navigationDragBehavior action="volver" direction="back" id="ndb1"/>
and add action on navigation action on taskflow
<control-flow-case id="__4">
<from-outcome>volverInicio</from-outcome>
<to-activity-id>taskFlowReturn1</to-activity-id>
<transition>slideRight</transition>
</control-flow-case>

Related

Which is better between webview_flutter vs flutter_webview_plugin

I have been developed web view in flutter.I don't know clearly which is better
webview_flutter vs flutter_webview_plugin.
In webview_flutter, “Flutter widgets can be shown over the web view.” source
In flutter_webview_plugin, “The webview is not integrated in the widget tree, it is a native view on top of the flutter view. you won't be able to use snackbars, dialogs ...” source
Also, there is keyboard issue so if you intend to use this for OAuth or something, stick with flutter_webview_plugin
Read more on reddit
The webview_flutter is developed by the flutter team and it is the official way to integrate webviews in flutter app.
The flutter_webview_plugin is developed by the flutter community and soon it is going to be merged into the official webview_flutter.
As the two plugins are being merged and after the merger the unofficial plugin is going to be deprecated. So it is safe and my personal opinion to use the official webview_flutter from now on.
Another option is the flutter_inappwebview plugin (I'm the author) other than webview_flutter and flutter_webview_plugin. It's a Flutter plugin that allows you to add an inline webview, use a headless webview, and open an in-app browser window.
Currently, it's the most advanced and feature-rich WebView implementation you can find for Flutter.
You can check the official inappwebview.dev website for more details and documentation!
Also, starting from version 6 (the current latest one is 6.0.0-beta.20), it supports Web and macOS platforms!

How to use iOS keychain in Oracle MAF application?

I am pretty new to Oracle MAF framework. I want to store a string to iOS keychain and retrieve later. I have searched for a tutorial and still unable to find.
Please share any tutorial if anyone has done this before. Also I want to know whether we can use a Cordova plugin such as https://www.npmjs.com/package/cordova-plugin-ios-keychain directly in the MAF project?
I was able to resolve the problem. I would like to share how did I manage to do. Cordova plugin can be used in the MAF application. MAF app's java code can invoke javascript methods in the cordova plugin. Or we can write a javascript class to do the bridging between MAF app and the cordova plugin.
This is a good tutorial for your reference.
https://blogs.oracle.com/mobile/integrating-a-custom-cordova-plugin-into-a-maf-app

qooxdoo mobile - click handlers not firing in ios

I have a mobile app built using phonegap +qx mobile 3.5.
I have a page implemented using qooxdoo mobile which has a header implemented using qooxdoo controls. The content section of the page is loading from an external system using a ajax call which returns a string(html+css). The html has built in click handlers which are not firing on ios. The html works fine when loaded directly without qx.
This is an existing app in android and seems to work fine there. Can someone help me get this working on ios?
EDIT : I am using native scroll and not the custom scroll plugin.
I believe this problem is caused by the used scrolling method.
If you just remove the macro "qx.mobile.nativescroll" out of your config.json,
qx.Mobile detects itself whether to use NativeScroll or iScroll.
In version 3.5 that means, Windows Phone 8 and iOS7 are using the native scrolling.
Do not forget to rebuild after removal.

Apple App rejection due to non native buttons and features

While developing a phonegap smartphone application which runs on ios/android and bb v6+, im using a web service call to google maps and using tags for navigating through the application. I received an answer from apple with the following rejection message:
We found the following issues with the user interface of your app:
- Did not include iOS features. For example, it would be appropriate to use native iOS buttons and iOS features.
Additional user interactive features are needed.
My app has 2 buttons, one for searching and one to view the search results, both of which are non-native, html < button > tags.
Is it possible to use the native iOS buttons with a phonegap project, i.e using the search button (magnifying glass with word 'search' underneath), with a plugin?
Is it possible that my app was rejected for using a Google Maps web service call? if that were the case, i imagine the rejection message would be similar to the rejection message seen in this previous post
Any ideas/suggestions/guidelines would be great,
thanks
You could implement the NativeControls plugin. Judging by your screenshots a the iOS tab bar should work well with your app.
Not using native controls isn't a problem in itself. However, your app is too close to the appearance of a standard iOS settings page, which means that anything which doesn't exactly match that will feel broken.

Integrating FastPdfKit with a PhoneGap application

I'd like to integrate a FastPdfKit Reader into my PhoneGap application. That is, the PDF reader should be opened within the PhoneGap app, so that the application-related navigation is still visible.
Where do I best start?
Do you know about any publicly available code that gives an example on how to achieve this?
It sounds like what you are looking for is creating a PhoneGap plugin.
http://wiki.phonegap.com/w/page/36752779/PhoneGap%20Plugins
Here are some tutorials on making plugins for PhoneGap:
http://hiediutley.com/2011/04/15/phonegap-tutorial-series-6-writing-your-own-plugin/

Resources