Add Bundle Version and Build to splash screen using PhoneGap - objective-c

Using the latest PhoneGap what is the best guidance someone could give as to adding the Bundle Version and Build Number overlaying a PhoneGap Splash screen. I see this on other apps but most likely those apps may not have been built with PhoneGap. From what I have read you could use a UIView controller to do this to the didFinishLaunchingWithOptions method. I am not an Objective C coder and native apps are new to me so any guidance as to where to start would be helpful. I am on El Capitan using xCode 7.1.1. Is there a tutorial of sorts to getting this done? Is it a lengthy integration? Thanks for the help!

I haven't implemented this but have thought about it a couple times... one way of getting a cross platform solution might be to stamp the bundle / app version or whatever other information you want dynamically added to the splash using ImageMagick, and the Cordova hooks system to run a script each build to do this. We have done similar with a script that sets the version numbers in config.xml for Jenkins builds, so that we can associate Jenkins output with test builds. I would imagine the same mechanism could be used with the Annotating capability of Image Magick to have a platform independent way of achieving this.

Related

How to integrate react native component into the native app?

I used to see lots of articles about native modules inside RN apps, but very few about RN inside native project. Let's say we have a project, in which we want to add a single screen fully developed using RN. As far as i know, instagram have something like this. I have read official documentation about this, but it left too many questions. Does anybody know the good step-by-step implementation guide?
Mostly, i'm interested in:
What is the structure. Do i really need to move all the project inside /ios and /android folder, wrapping the whole project? What if the project have separate repositories for both platforms?
Do native developers need to install node environment in order to continue working on the project, installing node_modules and staff?
How much is the influence on the app size?
UPDATE: 07.20.2021
I'm still not able to run an RN screen inside native projects. The docs i told about before doesn't contain actual info, steps are not properly described, and even writing exactly as they told, the project still cannot run and crash as fast as i change activity to RN one.
Here are some points related to the questions that you have which might help you.
No, You don't need to move the whole native code to the /android and /ios directory.
Yes if you are about to open the RN screen from the native app you should have set up the react-native environment properly.
The app size might increase as there is a bridge created with javascript and native code. but you should have a choice to upload the .aab bundle file which helps you to provide the platform-specific builds to the users.

Can we use a signle ionic-4 app for mobile and desktops

I am developing an ionic-4 app, Ionic provides cross platform apps but I am a bit confused and my confusion is can I use a single ionic-4 application for mobiles(e.g. Android and IOS) and desktops browsers(Chrome, firefox etc.) as website. Is it possible by using ionic version 4.
Yes, Ionic 4 provides a single code for the execution of multiple platforms.
Ionic Doc
here is help for you. You can check everything.
Yes, you can use Ionic for Android, IOS and Browser. Once the coding is done, you can add any platform to make its build. For example, if you add Android platform then you can take an Android build(APK).Before that you need to setup an environment for that . For example, you need Android studio for taking Android build and Xcode for taking IOS build. It's all depends on the platform that you use.
Please go through Ionic documentation and Youtube tutorials to get a correct picture.
Thank you

Calabash Automation Testing

I am new in Automating the apps for testing Android and i like to advance to this level... I have researched for Appium and Calabash... but knowing the difference pretty complicated.. There are my questions:
1: For Calabash, do we need the source code, i mean can i have APK and give test cases and so on? or do I NEED the source code even if im using the elements from app?
2: I heard i can use the Appium with cucumber, and same question do i need source code for that?
I have researched about it and all i get is for Apple apps... but nothing much for android...
You don't need source code. All you need is apk file, packageName and ActivityName to launch the app.
In Appium framework, all you need is app file (for android it will be simply .apk file).
Source code will be never needed, all elements from UI that you would like to interact with, can be simply get from Appium Inspector.
For both calabash and Appium you don't need to source code. you can automate application using apk file.
Yes you can use Appium with cucumber.
To find object locators of application use calabash console and Android UI Viewer, Appium GUI.

How to optimize Sencha Touch 2.0 performance on iPad?

I am trying to optimize the performance of a Sencha Touch 2.0 app on iPad device.
Please point out some way for doing this.
Is any tools are available for iPad to test the performance of web app??
Thanks.
For your first question, this link may help:
PhoneGap 1.4 wrapping Sencha Touch 2.X - What about performance?
About performance inspection, you can just use Developer Tools of your iPad's Safari. Here is a good tutorial to get started: https://developer.apple.com/technologies/safari/developer-tools.html
Are you going to deploy the app as an iPad native or are you going to use it within the web browser?
Whatever the case, if you are going to deploy as native, it will automatically be optimised and no unnecessary files will be loaded.
If you are going to use it within a web browser, I suggest deploying it as production and not loading the whole source.
This can be achieved by navigating to your sencha touch 2 app and running the following sdk command:
sencha app build production
Then you should load that page within your browser.

Getting sproutcore application files to use them in a native app via Appcelerator Titanium

I would like build a app using sproucore framework, but i also want to integrate it with Titanium to have some desktop capability like file system, packaging, offline working etc...
I know that with sproutcore 2 this would be pretty easy since it allows to use the framework like a normal javascript library. But the project is still in beta and the docs are patchy at most (I consider patchy even the 1.x docs, actually).
So, I want to ask, which would be the best way to go to integrate sproutcore and Titanium API?
Titanium's main mission is to use JavaScript to build native apps, not to provide a OS-access layer for web apps. It would be hard to mix native and SproutCore UI elements.
That being said, here's some information that might help you:
Titanium has reversed it's application model starting with version 1.0:
http://developer.appcelerator.com/question/71/what-happened-to-html--css
The main app doesn't run in a web view anymore, instead it runs directly in JavaScriptCore and creates only native UI elements. One of the native UI elements is a web view
(http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.WebView-object)
and it's possible to make that full screen and run your SproutCore app inside of the web view. From there, you can call out to Titanium to call Titanium methods for file system access and the like.
Also, if you only target the desktop, you could even access the JavaScript context object of a webview and use it directly in JavaScriptCore.
Johannes