Integrating FastPdfKit with a PhoneGap application - ios

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/

Related

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

How can I call with native Swift methods from Electron app using javascript?

I am looking to add in-app subscriptions to the mac desktop app so I can submit to app store.
I have the code written for iOS using the cordova plugin: https://github.com/AlexDisler/cordova-plugin-inapppurchase
But for electron there exists no such plugin.
So I can use the native swift code from the plugin, but need a way to write a custom plugin so I can call swift methods from javascript running the Electron app.
Please let me know how to approach this, or point me to the correct resources.
Thanks You

Document Picker in React Native

Scenario: Say end-user got a attachment in mail app in ios. And user wants to upload this file in my app.
In React native is there any good working component? I want to use it to create facility where my user can upload files( not images).
Any help would be appreciated.
As suggested by #jaineshdoshi, component hosted at www.npmjs.com/package/react-native-document-picker can be used as document picker..
ps: since ios 11 has file app, this solution might work differently on older ios version

Porting native apps to Phonegap?

I have a native app for iOS and am being tasked to create a new app that includes portions/sections of that original native app within this new project. The caveat being that the app I am now tasked to develop must be done with Phonegap/Cordova.
My question is, what options do I have for utilizing the native code within the Phonegap project, or does the same functionality all need to be rewritten in HTML5/JS? I'm new to Phonegap so I don't fully know it's capabilities.
Generally phonegap apps are coded in javascript, css, html and where ever they need access to the native layer, they use phonegap plugins to access the native functionality. If you want use your existing code for integration into a phonegap app, you can do it by wrapping your code using phonegap plugin architecture and create plugins for the functionality from the code that you wish to reuse. Then you call those plugins where ever required in your application.
The below link is good starting point for creating plugins.
http://docs.phonegap.com/en/3.4.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide

Open External Link with Phonegap Cordova in iOS without Childbrowser Plugin

Can I open external links with Phonegap Cordova (1.8.1) in iOS without the Childbrowser plugin?
Most of the tutorials that talk about this topic are outdated.
Any solution?
Thanks.
Actually, using
a link like this
Or
window.location.href="my-external-url"
Will open the external URL in the Phonegap webview, not in a browser. If you have this working as you claim, you have solved a really big issue for all phonegap users. Some literature on this topic.
http://community.phonegap.com/nitobi/topics/make_links_use_external_broswer_consistently
https://build.phonegap.com/blog/access-tags
http://docs.phonegap.com/en/2.0.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide
You can use window.open with "_system" as the window name (InAppBrowser)

Resources