Saving Images in Database - ios

I am working on Worklight Developer Edition Version 6.1. I have created a native component inside a Hybrid app. I am using WL.NativePage.show method for navigating from HTML to native pages. I am having 5 images in an array in a native page. I need to save those images in a DB and need to access the same in a HTML page.
Can anyone tell me, how to do this using DB? (should be common for both Native and Web app)
Can I use Worklight JSONStore in Developer Edition ?

Worklight 6.1 does not support JSONStore in native pages.
Possible solution:
What you can do instead is save the images locally using native code.
Then, in order to access these locally-saved images via the web portion of the app, you could write a custom Cordova plug-in to access it.
You will need to consult with the iOS SDK documentation regarding how to save the file locally.
Some resources:
Download an Image and Save it as PNG or JPEG in iPhone SDK
Adding native functionality using Cordova plug-ins

Related

Xamarin.Android PDFViewer Library

I am building an application with Xamarin.Android and have reports section where I generate reports in PDF and show to user.
I do not want to write my own PDF viewer since its not the main functionality. I was wondering if there is such library available?
I need to open PDF within app, so I cannot use external apps.
I tried Xamarin.PdfView.Android but this library is not compatible with latest version of Xamarin.
Most of the PDFViewers are build for Xamarin.Forms but I need for Xamarin.Android
You can show a pdf file within a webview.
Inside the webview you will set the url from google drive and it will show the pdf.
Hope this help 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

Image upload via web view is not working in Android 6.0 Marshmallow version

In Web View for registration purposes. In the registration process I have to upload an image from the device. I use various solution for this and it is working properly in every Android version except Marshmallow.
have you taken permission from mainfeast. I think you did not ask for permission of internal and external storage.

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

Embed Adobe Air/Flex application inside a standard iOS application

I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well.
Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application?
While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.
No, you cannot embed an application within another application. This is true for all applications. Only thing you could do is get the swf of your partner's code and embed that into an Air application, but since you're not using Actionscript/Flex, it won't be possible.
Only other way would be to have an app link to the other application.

Resources