When deploying a simple Sencha Touch 2 app on a non-touch blackberry device (like Bold),
the webfield is showing about 6 pixels height of the content instead of 100% height.
there is a solution offered on this thread:
http://www.sencha.com/forum/showthread.php?151188-Blackberry-Webworks-Issues
However, when i added the code, nothing was changed.
Question: How does one solve this issue?
Disable mouse cursor and enable the default navigation style of non-touch BB devices in a sencha app.
There is a solution offered here: http://resilientcoder.blogspot.co.il/2011/03/getting-sencha-touch-to-work-on-non.html unfortunately, looks like it was written for sencha touch 1, not 2.
Question: is there a better solution? if not, how do i use this solution in the Commercial version of sencha touch (he mentions that his solution works only for the open source version)?
(Saw your mail earlier this morning)
Back to the OP,
We have this issue solved by using following code. Same concept as from the source. We got our project ran on Blackberry Bold 9790 (Device), but not any of the simulator because it crashes when we write something to the file system.
(function() {
// Define a blackberry viewport
Ext.define('Ext.viewport.Blackberry', {
extend: 'Ext.viewport.Default',
constructor: function (config) {
// Blackberry does not like height: 100%
this.superclass.config.height = this.getWindowHeight() + 'px';
this.callParent([config]);
return this;
},
getWindowHeight: function () {
//Don't know why need to deduct by 120?!
return window.innerHeight-120;
}
});
// Insert a new Blackberry specific viewport
Ext.override(Ext.viewport.Viewport, {
constructor: function (config) {
return Ext.create('Ext.viewport.Blackberry', config);
}
});
})();
Then, you can create any component and supply a fullscreen: true. It should takes up the whole viewport.
We have developed a similar app on BBOS 7+ and Sencha Touch 2, but we gave up the idea of having non-touch devices to work as stated by Sencha Touch team themselves, this is why Sencha Touch is called Sencha T O U C H and they won't support non-touch mobile devices.
This is quite terrible. We can't get it to work on non-touch devices so in the end we ditched the support on non-touch devices. I can't tell you what is our approaches as I can't remember the exact details on this issue. Roughly, I messed with sencha-touch-all-debug in cheating Sencha that this code is running on a desktop so to simulate clicking, but Touch devices will then fails to work as the touches cannot be recognized as click. Something to do with event dispatches I would say. We spent almost a week to solve this problem, but gave up in the end. No solution so far. We just keep it to touch devices.
in the end, the solution presented # http://www.sencha.com/forum/showthread.php?151188-Blackberry-Webworks-Issues worked for the screen size issue.
I only had to add the code blocks to my project's sdk viewport folder (and add the Blackberry.js file).
regarding my 2nd question, looks like there is no solution (as Lionel wrote)
Related
I have a simple QML code that intercepts the volume key button.
Keys.onVolumeUpPressed: { console.log("onVolumeUpPressed"); volumeUp(); }
This code runs perfectly on Android, but it doesn't on iOS. Do you have any clue?
Probably I found the answer myself.
In the QT code I found this https://github.com/qt/qtbase/blob/32cdf0ce0faaeb6fe8bbc2f3df27a597c0bb8a55/src/plugins/platforms/android/androidjniinput.cpp#L431 but I didn't find anything for iOS. So I guess it's simply not developed.
My old iPad (ios9.3) refuses to load any reveal.js slides. It only shows the "Fork me on Github" image on the top corner. I suppose it will be that ios 9.3 does not support some new features of html5+js+css (I am not a developer, my skills are quite limited, so please excuse me if I say something stupid).
I am very interested in using it on an iPad due to the chalkboard plugin.
Any of you know what can be causing the trouble? Could I disable any of these features/files and make it work?
Thank you.
aimar
During all this weekend I was trying to figure out a solution. Finally, I manage to debug iOS safari from my windows laptop following this procedure and found that an "Unexpected identifier" was impeding "chalkboard" plugin to load.
A variable was defined with "let" command that, as I learnt, was not recognized by safari 9. I changed 4 "let"s with 4 "var"s commands in "plugin.js" (chalkboard plugin) and now it works in my old iPad, even with reveal v4.
Now I have another issue with the menus (menu plugin) not showing properly, but I will try also to fix it.
With the rise of different apps, which hijack the iOS simulator (such as flawless or now sherlock) I'm curious how this is done.
As far as I've found there were options based on SIMBL but I don't think the above use it. Further more there is Injection (https://github.com/johnno1962/injectionforxcode) which uses XPC's to inject code.
I would guess there are different ways (e.g. how is the UI change done? both either the flawless layer on top of it, or the variable change in sherlock) so it would be great if someone here would point me in the right direction.
I havent used the plugins BUT:
sherlock loads code in the app being run BY the simulator from what I read. (https://www.hackingwithswift.com/articles/131/sherlock-turbocharges-your-ios-simulator)
flawless but afaics on the website all it does is overlay a UIWindow ontop of the simulator window. Even a separate app could do this.
(https://flawlessapp.io/)
SIMBL could do both id I'd say...
but you can do a lot by attaching LLDB too! really powerful. (a good example is https://github.com/facebook/chisel)
xcode's code injection is basically the same (roughly ;)
=> there is still no public / or private api for the simulator AFAIK
=> targeting apps inside simulator seems easier to me
(there are other ways by manipulating defaults or by playing around with simctl process)
iOS 10 it's still in beta, but it will be released on Tuesday the 13th.
I install the beta on my iPad and I notice that the tap is not working very well. (single tap not working, you have to tap several times to simulate a single tap (or click a button, change page and so on)
I am currently running ios 10.0.1 (updated last night) and i'm still facing this issue.
Is anybody facing the same problem?
I can see this behaviour only on my app, other apps are working fine.
The setup is:
ionic 1.3.1
cordova 6.3.1
Is there anything changed on iOS 10 events that I need to bare in mind? sorry for the vague question, but it's something I need to fix before they release it officially or I will have a lot of angry customers.
Thank you !!!
SMALL UPDATE
Replacing ng-click with on-tap should solve part of this issue. You will still have problems with ui-sref and with any other place that doesn't use ng-click tho.
I've posted this issue in a bunch of different places, if you wanna keep track of it, they are here:
https://github.com/driftyco/ionic/issues/6928#issuecomment-253463917
https://forum.ionicframework.com/t/ionic-tap-issues-with-ios10/66764
Use (tap) directive instead of (click) directive.
Angular 2:
Ionic provides you with hammerjs under the hood, if you use the (tap) directive angular 2 will do all the wiring to connect that directive with hammerjs and that removes the 300ms delay.
Good luck.
Example:
<my-component (tap)="doSomething()"></my-component>
Angular 1.x:
Try with http://ryanmullins.github.io/angular-hammer/
Is the recommended repository from the guys of hammerjs for Angular 1.x
Example:
<div hm-tap="doSomething"></div>
i found one solution on website. but i don't use ng-material in my app.
did you try this????
.config(function( $mdGestureProvider ) {
$mdGestureProvider.skipClickHijack();
})
FIXED!
I finally fixed this. I don't know if this will be useful for you tho. The issue was one plugin I bought from ionic market, and to be precise it was this one:
https://market.ionic.io/plugins/ion-time-picker
I already sent an email to the developer, but if you are using this plugin, it may be the cause of ios10 not working.
We are using Sencha1.0 for our webapp development. In IOS9 version we are facing the following issues.
On initial page load, the page looks fine. When you try to change the device orientation to landscape and back to portrait, all images icons and texts are resized(small).
We tried -webkit-transform : rotate(-90); its doesnt work.
Please suggest the cause and any solution for this.
Sencha Touch 1.1.1 is really quite old version of the framework.
And there is a lot of bug fixes already applied to the framework. The new version of the mobile OS often break a thing or two. You will be also probably seeing an issue on Android devices which runs Chrome 43+
If you already have an App finished and this is the only problem you see, you might fix this by applying override. ( You can check the newer version of the framework and took the part which fixes the issue ) - but it might be really hard to find. Also you probably can't even reach to Sencha support, as the Touch 1 is no longer supported.
But if you are developing the new App, best option for you is to upgrade to Touch 2.4.2
The major release of Sencha Touch should be free to download.
I know that this won't fix the issue but by answer is too long for a comment.