Sencha touch 2 application not working on android mobile version 4 - extjs

I am trying to run sencha app on android mobile with api level 15 to support application from version 4. It is not going to the home screen,it's stuck at the loading screen only. It works perfectly on api level 17(4.2.2)/18(4.3). I have installed android sdk for api level 14(4),15(4.0.3). I am using sencha touch 2.2.1 and Sencha Cmd 3.1.2.342.
Any possible reason for this behavior , or have I missed any thing please help.

Have you checked your JS debugging console for errors? Apps stuck at the loading screen typically have encountered a runtime error.

Related

ng-click not firing click method in IOS build using Ionic framework

I'm building a Hybrid App using Ionic framework and Cordova.
I've installed couple of plugins and everything is working fine in Android.
When I built app for IOS using XCode and trying to test in Simulator or iPad device, I'm getting issues with touch events.
Everywhere where I supposed to touch once(ng-click), it is not firing click method. If I tap 2 times in short span immediately(probably standard 300ms delay), then able to get it fired.
Can anybody please guide on the touch/tap issue.
The tap issue got resolved, I've included mobile-angular-ui library in Ionic framework app, and it is causing the touch issues. I removed mobile-ui library and the issue got resolved.

Ionic, Phonegap - iframes and youtube videos no longer show up

for some reason iframes no longer show up when i use the phonegap app. When i try to run older versions of my app where iframes did work, they no longer work.
phonegap version : 5.3.6,
cordova version : 6.0.0,
ionic version : 1.7.14
does anyone no why this is happening?
turns out the problem is with phonegaps latest mobile app version because it works when i run my app on a real device and in the ionic view mobile app

Splashscreen wrong since XCode 7

I took over a project using AngularJS, Ionic and Bootstrap to create hybrid apps for mobile devices.
Prior to upgrade to XCode 7 all went well. I updated my HTML-, CSS- and JS-code in editor, ran grunt run:ios to create platform code and opened XCode. From there I built the .ipa-file without any issues (justwith some warnings, which could be ignored).
However since using XCode 7 (needed for iOS 8- and iOS 9-devices), the splascreen will be shown incorrectly. Meaning: Rotated with 90°.
Note #1: The splashscreen and the app have to be Landscape-only.
Note #2: When running grunt run:android, all is well on the Android-based device.
Any idea what to do in order to get the old correct state again?
There is a known bug in the cordova-plugin-splashscreen plugin relating to your issue ( Issue CB-10244 ). Try to update this plugin to cordova-plugin-splashscreen#3.1.0 by re-adding it:
cordova plugin rm cordova-plugin-splashscreen
cordova plugin add cordova-plugin-splashscreen

how to run sencha touch examples in iOS simulator

I installed sencha touch and sencha touch command and was able to view the examples in localhost.
But How do I run these examples in iOS simulator?
I tried below commands from with in the examples directory on iMac
from directory: touch-2.3.1/examples/kitchensink
sencha app package run packager.json
User-iMac:list-horizontal yuyutsu$ sencha app package run packager.json
Sencha Cmd v4.0.4.84
[ERR]
[DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "The application that opened iOS Simulator failed to send all of the required information (sessionUUID, sdkRoot, deviceInfo)." UserInfo=0x7fe4f0d0ce40 {NSLocalizedDescription=The application that opened iOS Simulator failed to send all of the required information (sessionUUID, sdkRoot, deviceInfo)., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
The application was successfully packaged
[ERR] stbuild exited with non-zero code : 1
or from another app, directory: touch-2.3.1/examples/list-horizontal
Also tried running sencha app build -run native.
It failed with
/Users/yuyutsu/work/Software/mobile/Sencha/touch-2.3.1/examples/kitchensink/.sencha/app/packager-impl.xml:83: /Users/yuyutsu/work/Software/mobile/Sencha/touch-2.3.1/examples/kitchensink/resources/loading does not exist
I have Xcode 5. OS X version 10.9.2. I am able to run the native XCode projects in simulator using XCode.
Any idea on how can I run the sencha examples in iOS simulator? Is there a document which has the steps?
One very easy way (if you don't need device api) is to build the webapp through Sencha CMD and navigate in iOS Simulators Safari to the index.html file. You can do "add to Homescreen" and if you click the icon on your homescreen now you get the app in fullscreen.
The big advantage is that you can do really quick builds, but it does not fit always, because it's just the webapp, not the native one.
If you need to package your app native (e.g. for Device API) you can follow this guide: http://frightanic.com/software-development/sencha-touch-native-packaging-for-ios-done-right/
As it is running on localhost, you can simply check on simulators by using the same urls as on browser
iPhone 4
iPhone 5
Also, you can try Intel XDK, it has inbuilt iPhone simultors. It is easy to use. Simply put application and run.
Intel XDK
Or you can try packaging it in native iOS so that you can run in Xcode and see on Xcode simulator your app working. For that you can use Phonegap, refer link
http://docs-origin.sencha.com/touch/2.3.2/#!/guide/cordova-section-iOSNote
Also,
http://docs.sencha.com/touch/2.3.2/#!/guide/native_provisioning
Hope this helps you with your problem.
Failure to launch iOS simulator could be because of the below bug mentioned in sencha forum
"There is currently a bug open SDKTOOLS-783 where Sencha Native packager fails to locate Xcode 5.1 and thus unable to run in simulator."
I will try Phonegap/Cordova and post my observations.

Run time Error while using facebook framework in iOS 6.0

I started the project in "ios 5.0".and i used facebook framework.That time its not giving me any error in the run time.
After I upgraded my device to "ios6.0" and downloaded the new version of xcode. i am able to build and run it on the simulator.But i am not able to run it on iPhone.
Can anyone please explain me why its happening?And why app is running in simulator.but not in iPhone/
Basic diff bwtween architecture of simulator and iPhone?
Thanks&Regards
Vijay
Because ios 6 has new framework which is social framework, so just add it.after adding it you dosent need to make so many methods for facebook ,twitter...
https://github.com/yashesh87/Social-Framework-iOS6
this link will help you..

Resources