Cordova Sencha Touch Blackberry App java.lang.illegalArgumentException - blackberry

I have developed a sencha touch app that runs fine on all supported phones when opened up from a web site.
When I build the app as a native phonegap app using cordova 1.5 and 1.6 the app again runs on android phones (haven't tried iphone) and in the ripple emulator. However, when I load the app in the Blackberry Webworks emulator, or onto a blackberry phone I get a java.lang.illegalArgumentException.
I have even stripped the app to little more than a hello world example, but I still get the same error.
I have managed to get the sample cordova app running on a blackberry, so I knnow the phone is not the problem.
Any help with this problem would be a great help

After a ridiculous amount of trial and error it turns out that error was being caused by the png file I was using for my splash screen. Seemingly the splash screen image must be less than 16 kb

Related

ffmpeg.js running extremely slow in iOS cordova (but fine in iOS safari?)

I'm trying to create a phonegap app that converts videos into maybe 30 or so jpeg frames..
This page converts a bigbuckbunny video into 30 frames > https://www.pewify.com/test/ (taken from https://bgrins.github.io/videoconverter.js/demo/)
It runs fine on an iPhone x running iOS 12 in mobile safari, it takes about 12-15 seconds to complete, but the same code packaged into a iOS cordova app running on the same phone will take almost 160 seconds to complete (both end results the same, but almost 10x as long), it works fine for android browsers or an android cordova app though
I'm using cordova android 7.0 and cordova ios 4.5.4 (phonegap cli-8.0.0) for the app
I've tried removing all unneeded plugins with just the bare minimum code but to no effect, it still runs just as slow
From what i understand phonegap is just using a webview similar to safari to render the app but in this case it works but much slower, on top of that the phone starts to get heated up (presumably doing some intensive CPU?)
Did read something about using WKWebview being faster in cordova instead but that messes up the app with lots of CORS and 'operation insecure" errors so have decided not to implement that for now (unless that is the solution?)
Hopefully someone can point me in the right direction as i'm not exactly sure what is the issue here as it works somewhat flawlessly in android (both chrome and phonegap) but only in iOS safari and not the phonegap app
Ok solved it, it was indeed WKWebview and it executed normally. I read somewhere that the webview in cordova and the webview in mobile safari is different hence the difference in speed (nitro js engine?)
For anyone interested, I used "cordova-plugin-wkwebview-file-xhr" to enable WKWebview and certain fixes to bypass CORS issues,ran the same code on it (had to use an inline blob when creating the worker though to bypass , taken from here Web workers without a separate Javascript file?)
Video conversion now runs as expected (12-ish seconds), hopefully this helps someone who might be facing slow execution of code on iOS phonegap..

Gluon Mobile app is terribly slow on iPhone Sumulator

Simple "default" Gluon Mobile app (Single View project, the one generated via New Project) runs terribly slow on iPhone simulator on my macbook. If I add a couple of controls and views - it almost hangs and loads the CPU too much (just by being open in Simulator it turns my macbook into a frying pan).
But the same app runs perfectly smooth on Windows, MacOS and Android device.
IDE: IntelliJ Idea 2018.1, gradle task "launchIphoneSimulator".
Any ideas why is that so? Does anybody have the same performance issues with Gluon Mobile on iPhone Simulator?

Debug an IOS app on Windows PC

I have developed a mobile app for IOS, Andriod and Windows devices. The application was developed with Phonegap.
I am running into a few issues while testing. Everything works perfect on Android, Windows and iPad, however once the app is on an iPhone 7 with operating system 11.2.5 there are a few "quirks". For instance select menus are self selecting and causing the app to crash. This only happens on the iPhone.
I am trying to debug this using weinre to debug, and I am unable to successfully get the iPhone to connect.
Is there options to see a console log, web inspector to find these errors?
Any help is greatly appreciated.
Phonegap serve and weinre.
Running both. I was able to pin point the issue..
Needed to update plugins.

Xamarin Android App is crashing on SAMSUNG SM-A5000 and LG-H815T phone

Let me explain the scenario.
We have developed an APP in Xamarin.android. And tested it on various emulator and some mobile phones. Those emulators and mobile phones laid into API 16 to API 23. Here App was worked fine.
After the development, we uploaded this app on HockyApp for testing and generating crashing reports if any exists. One of our testers has aforementioned mobile phones. and App is immediately crash on the mobile phone. I have shared a screenshot with this post.
Then we decided to upload the App on xamarin Test Cloud Platform. And we have tested App on various mobile phones. And it was working fine. Then I have tested App on LG-H815 mobile which is located on Xamarin Test Cloud Platform. And also app works fine.
Screenshot
Can you please suggest why App is only crashing aforementioned mobile phones.
Try to set the processor settings to armeabi-v7a only, the others are for emulator and obsoleted processors. Also make sure the target framework is high enough for this phone.
Go to Project options (double click on Android project)
Go to Android build under build section
Go to Advanced tab and only use armeabi-v7a
Test it again on your LG-H815
We had the same problem with the Samsung S6 + 7 (edge).

Debugging PhoneGap on Device

Normally I'm a JEE guy but these days I'm working on a mobile app. I chose PhoneGap because there are not so many needs to UI and I thought this would be the easiest way to serve the app on many platforms.
I'm wondering if my setup is good and if it's possible to get console output when running on the device. I'm working on MacOS and iPhone6.
I installed PhoneGap and Cordova via npm and serving the files with phonegap serve.
For local debugging I'm using the chrome plugin "Ripple".
For debugging on the device I'm using the PhoneGap Developer App from the AppStore, together with weinre on my Laptop to get some debugging data. In weinre I can see everything except console outputs. Is this normal? Or any idea how I could get the console to weinre, too?
I also found some tutorials on the web using XCode and some native iPhone emulator but didn't get this working yet. Which way is the more preferable way of debugging on device?
You don't need any tool for debugging cordova app. For iOS just start the app in stimulator and start safari. In safari go to Develop > 'your pc name' > ios simulator.
http://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari--webdesign-8787
For Android run the app in your device and in the chrome go to http://chrome://inspect/#devices
Weinre is quite old and should not be be used anymore, instead, you want to use the remote debugging tools in your browser. For iOS, you can use Safari to debug your Cordova app. I've got a full article here, https://dzone.com/articles/overview-mobile-debugging, but the process involves doing one setting on your mobile device, and then simply opening up Safari and going to the debug menu. You can also do this with Chrome and Android apps.
Another option is GapDebug (https://www.genuitec.com/products/gapdebug/) which lets you do iOS and Android together in one Chrome tab.

Resources