Can we merge Hybrid app with Native iOS App? - ios

I have one Hybrid app(build on Phonegap) and one iOS App. The requirement is to merge both app into single app. some functionality drive from native and some through hybrid, is it possible?

Yes, it's possible. You can embed the phonegap webview in any native app, but as you already have the phonegap app created I recommend you to add the iOS app inside the phonegap app as if you do so, you don't have to manually add and configure phonegap in your native app.
You'll need a native tabbar controller or something like that to switch between the native view/viewcontroller and the phonegap view/viewcontroller
Here you can find the information about phonegap as a component (embeding phonegap webview, also called cleaver), but I couldn't make it work to add phonegap plugins since phonegap 3.0, that's why I recommended you to start from the phonegap app instead embedding the phonegap webview in your native app

Yes, you can add the cocoa native app as plugin in PhoneGap and then configure it with config file.

Related

Cordova IOS app store rejection (app doesn't use native features)

I have built an angular 6 app with a splash screen with Cordova and deployed successfully to the android play store, however I get the following rejection from the IOS app store when I submit the same web code in a cordova app:
Your app did not include iOS features. App Store apps should use native iOS buttons and include iOS features other than just web views, push notifications, or sharing.
It appears it won't pass the review process as a webview only app, however I thought this is what Cordova is for! Is there anything else I can do to make it pass the app store review? Add other native plugins?
I don't want to move off Cordova as it looks great technology.
Google play app : https://play.google.com/store/apps/details?id=io.footballmatcher.app
Any help on this would be very much appreciated.
Thanks
Steve

Does Xamarin Test Cloud support React Native apps on iOS Devices?

We have build an app using React Native, and are currently looking for a test cloud service.
Xamarin looks like a good choice, but does it work with React Native?
Xamarin UI test doesn't care about how you have compiled your app, it's enough that when launched your app renders native component and React Native makes exactly this. So you can use it, for instance, with native Android and iOS, with Titanium, with Native Script, but not with Ionic and all the Cordova based frameworks.
You could have problems also if inside your app you used a lot of webviews.

How to create a apple watch project using phone gap

I am new on phonegap .I want to develop a project for Apple watch. How to develop a project for Apple Watch using phonegap ? What is step to follow ?
Can i convert simple phonegap ios project in apple watch , is it possible then how ? if not so why ?
You have to create a typical cordova project and have to use one of these plugins:
https://www.npmjs.com/package/cordova-plugin-apple-watch
https://github.com/Telerik-Verified-Plugins/AppleWatch
The second one gives you some more options, but both are limited.
There is no way to create a webview based app for the watch, because the watch does not have a webview.
If you need more features, you have to write your own native watch app.

Integrate Worklight project in existing IOS project

I have to integrate a Worklight project into my existing IOS project (Objective-C)
I have googled but i have not found a clear "guide" on how to perform this integration.
Could you drive me in the right way of integrating this project? The idea is to have a button in my IOS project that open a WebView that loads the pages (HTML5 and javascript with AngularJS and Jquery) contained into the Worklight project.
Thank you so much
There is no guide for this approach, as I don't think it is sustainable.
In Worklight you currently have two approaches:
A native application to which you add the Worklight Native iOS SDK, allowing you to implement security features, invoke adapters and use various other features
A Hybrid application to which you can add native functionality (via Cordova or otherwise), and use the entire set of features provided by Worklight
It is important to note that a Hybrid application is a native application. It is a fully actual real native app. It is a native shell that calls a webview (provided by Cordova) into which the Worklight JS framework and the application web resources are loaded, and thus you see your web app. A Hybrid application allows you to mix & match web and native in one.
So what I am saying is that you can't take an existing iOS app and transplant it into another existing iOS app.
It sounds to me like what you are essentially trying to do, is what a Hybrid app is. A native app that displays web content...
So:
This is not an approach Worklight officially supports. By doing this, you are on your own
You could maybe take the guts of a Hybrid app's iOS environment (myapp\iphone\native) - its classes and resources and add them into your existing app and load the main class which theoretically, or at least the wanted effect, will load the Cordova webview. But I give this low chances of success...

iOS App: webView or PhoneGap?

We are developing a HTML5 mobile app with Sencha Touch.
Now we want to package the App, and found that we have two methods:
The first one is to use PhoneGap to generate a native app based on our html5 code.
The second one is to create a Single WebView app in Xcode, and request the url which will host our HTML5 code.
I found the second method relatively easier. So are there any advantages in using PhoneGap to generate the native app?
We usually use phonegap/cordova when we need some native function from the device, for example a barcode scanner.
Of course you can create your own barcode project, however why reinvent the wheel. Since phonegap/cordova 3.0 the effort needed for creating a app is kinda low. Just follow the guide and your all set.
http://docs.phonegap.com/en/3.4.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide
in short:
Advantages of Phonegap/Cordova
Ready for different platforms, little effort to create android app
Native functionality already implemented (plugins)

Resources