MobileFirst Quality Assurance Hybrid App Testing not Working - ibm-mobilefirst

I tried this tutorial to integrate MQA on my mobilefirst hybrid app:
https://mobilefirstplatform.ibmcloud.com/tutorials/en/quality-assurance/7.1/hybrid/
On iOS I can see this in my logs:
ERROR: Plugin 'MQAPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
I already added this on my config.xml also:
<feature name="MQAPlugin">
<param name="ios-package" value="MQAPlugin"/>
</feature>
Nothing is happening on my app, on android nothing is happening also I followed everything on that tutorial.
So I tried adding these codes on my App delegate for iOS and MQA was working, since the things that I've done for hybrid iOS is also applicable for native iOS, I just need to add these lines in my app delegate:
[[MQALogger settings] setMode:MQAModeQA];
[MQALogger startNewSessionWithApplicationKey:#"(my_ios_key)"];
Back to the error, why is it looking for a plugin? since I already added the Q4M.framework. For android also its looking for a plugin. What plug-in do I need to install? I need to make it work on my hybrid android project.

Can you confirm that you added the hybrid javascript, iPhone, and android SDK components found here? http://www-01.ibm.com/support/docview.wss?uid=swg27044490
You need to add those in eclipse, then add the native SDK in Xcode. Don't forget to re-build the eclipse project after you add the native SDK. The error should then go away in Xcode.

Related

Integrating Unity project into Cordova with mgcrea plugin

I have an Unity 3D project made for Android and I'm trying to port it in IOS. I created a similar project with Apache Cordova but without 3D graphic, and now I found a plugin for Cordova that promise an Unity integration with Cordova (https://github.com/mgcrea/cordova-plugin-unity). I've tried to integrate it, but I haven't understand where I must insert my Unity files into Cordova.
Unfortunately there isn't a working example and there's a lack of detailed explanation, so I would ask if anyone has already tried that plugin and eventually how it works.
Thanks in advance!

Cordova Plugin to be used in Worklight, for geofencing in Background even if the app is suspended/terminated and also when the phone restarts

I have been investigating in this feature for a long time. All I can find is a pure iOS native code that checks for the key "UIApplicationLaunchOptionsLocationKey" from the LaunchOptions, if it is found it calls the LocationManager to start it and keep on listening to the location updates.
You can find this code in this github:
https://github.com/voyage11/GettingLocationWhenSuspended
I need the same concept, but with a way to integrate it in Worklight, through cordova plugin or something. As I'm already creating the geofencing triggers using the hybrid Worklight APIs, I need to keep the geofencing alive even when the app is suspended/terminated and also if the phone is restarted.
Please I need you support urgently. Thanks
Worklight provides the ability to create Cordova plug-ins.
You could implementing your own native code then, mimicking that from the Xcode project you've found on GitHub.
Read more here: Adding native functionality to hybrid applications

How to avoid reverse engineering of an apk build with Appcelerator?

I am developing a schedule app using Appcelerator, and I want to prevent a hacker from accessing any resources, assets or source code from the APK file.
If someone changes the .apk extension to .zip then they can unzip it and easily access all the app's resources and assets, and using dex2jar and a Java decompiler, they can also access the source code. It's very easy to reverse engineer an Android APK file.
Is there any functionality available in titanium SDK that prevent reverse engineering? I am using Titanium SDK Version 3.4.1.GA I tried following code but nothing works
<property name="ti.deploytype">distribution</property>
<property name="ti.android.compilejs" type="bool">true</property>
You'll drive yourself crazy trying to protect your code from someone determined to get into it. Generally, Appcelerator is getting you the ability to convert your code from JavaScript into something that resembles a mix of native with JavaScript controlling logic. If the Android platform doesn't accomplish what you want, I don't believe Appcelerator is attempting to do it either. I believe the JavaScript that doesn't get turned into native code is being obfuscated. I'm pretty sure that the Appcelerator project gets turned into an Android project. Perhaps you'll want to look for protections at that level and compile your app with the Android SDK tools.

Worklight v6.2 - Android Cordova Plug-in

Has anyone tried the "Android - Adding native functionality to Hybrid Application using Apache Cordova plug-in" feature in v6.2 ?
I'm trying to use a 3rd party library on the client side and wanted to understand where to put the plug-in java class in the project. The documentation shows a java package (src) structure whereas the best I can find is normal folders in the android native folder.
Thanks.
The reason you see these as "regular" folders is likely because you are look at the Worklight project rather than the generated Android project.
Worklight project\apps\your_app\android\native\ ... will look as folders because they are indeed just folders.
Once you build your Worklight application (containing an Android environment), an Android project will be generated. In it, you will see the folders as packages, etc.
A Worklight project and application structure is explained in earlier training modules:
Creating your first Hybrid Worklight application
Previewing your application on Android
So, you should place your Java Class file in Worklight project\apps\your_app\android\native\src\com\package_name\ ...
Note about Cordova plug-ins in Worklight: depending on the plug-in this may not be possible to use as some plug-ins require using the Cordova plugman, which is not yet supported in Worklight.

how to Deploy the sencha touch app to iOS app in windows7

I'm using sencha touch 2.2.1
I have doubt to config a sencha app to iOS app in windows7.
I already deployed the sencha touch app to android app its works well. My problem is I don't have MAC-OS. so, can I deploy sencha app to iOS app in windows7 alone with apple-ID, certificate path and key values in sencha config file.
pls anyone tell me thanks in advance...
This should work. Just set up a packager.json file as it is described here and use sencha app build native in your command line to build your native iOS app.
If it does not work you could use the PhoneGap-Cloud-Build-Service. You'll find information about how to set up cordova / phonegap in this video.
You will need to build all your apps in XCode 5 from February 1st which will require a mac.
source: https://developer.apple.com/ios7/
I saw this service yesterday which I haven't looked into myself, but may allow you to compile apps in the cloud using one of their macs, rather than have to buy one yourself at great cost : http://www.macincloud.com/