i have problem with the "hardware back button" and Blackberry Webworks.
I'm using jquery mobile to create a phonegap application for Blackberry WebWorks (Smartphone version).
When i have a link in my page like:
everything works fine.
But when i use the WebWorks API to hook the "Hardware Back Button" like this
blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
function() {
history.back();
return false;
});
My app is just closed. (I tested on 9800 OS6 Simulator, and real device 9300 Curve 3G with OS6)
It's also strange when I modify the function to:
blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
function() {
alert('Debug');
return false;
});
then my app will not be closed (which should be correct)
So the problem is the calling "history.back()" inisde the onHardwareKey handler function.
Can anyone help me further?
Thanks
Adding this to config.xml worked for me:
<feature id="blackberry.system.event" version="1.0.0"/>
Related
I am able to launch URL on safari browser using Appium and
"#wdio/browserstack-service"
but the keyboard is not opening, and the script is not able to enter text in the input field. It works fine on physical device( Both Android and iPhone), it also works fine on browserstack Android chrome browser. This issue is only with iPhone safari. Please can somebody help?
I tried with different capabilities.
realMobile: true,
but nothing seems to help
Hello, Please find your answer. There is no separate method to open keyboard - it is only opened when an element with input focus is activated. Regarding how you activate it - try to perform the click in native context.
I build a Phonegap app and want to use an external footswitch via bluetooth. On Android binding the keydown Event works fine. In Browser, no Problem, but on iOS it doesn't.
I tested this variations:
$(document).bind('keydown',function(event)
$(window).bind('keydown',function(event)
$(document).bind('keypress',function(event)
document.body.addEventListener('keydown', function (event)
Does anyone have an idea what the problem is?
I tested with cli 8 and 9.
Thanks for Help
I do not have enough rep to comment so having to post this as an answer. I believe PhoneGap's UIWebView on iOS requires input focus in order to capture keydown. In a Cordova app I have worked on in the past, we placed an input off the screen with focus so that the input of bluetooth device would be captured and processed from there.
Recently however I have found that on an Ionic 4 app using cordova-ios 5.1.1, WKWebView via this plugin cordova-plugin-ionic-webview and the below RXJS fromEvent I have successfully captured keydown on iOS via a bluetooth device without having to have the input. I have not broke it down to know if this combo or any one of these has anything to do with it. Hope this helps.
fromEvent(document, 'keydown').subscribe((event: KeyboardEvent) => {
});
We are currently developing a PWA for a client of ours. Everything has been going well, but while testing on iPhone (iOS 12.2) we are having an issue with the tags that have sms:123-456-7890 in the href. You get the "Safari cannot open this page because of the sms: tag" (paraphrasing).
If you are browsing the site via Safari (not in the PWA mode), the anchor tag works fine and your iMessage opens up with the number in it. But when you're in the PWA mode and click the link, you get a version of the message I mentioned above.
From doing research, this appears to be some sort of bug in the iOS 12.2 release, though not officially mentioned.
I'm curious if anyone has had any luck with a work-around for this issue?
Thanks in advance.
Edit..to add some code for the anchor tag....
123-456-7890
I've tried many different variations of the sms (with no // or ;), always same outcome when clicking it as a PWA. With Android, everything works fine in PWA mode.
I did find a workaround by using JavaScript
Code Example:
<a href="#" onclick="openSMSMobile();" >
function openSMSMobile(e) {
window.open('sms:1234567890', '_self');
return false;
}
And in case anyone is wondering, if you'd like to add text to the message body, you can use,
window.open('sms:1234567890&body=textGoesHere', '_self');
For Android you'll need,
window.open('sms:1234567890&body=textGoesHere', '_self');
I am opening one url in inapp browser. when i return from inappbrowser to my phonegap app. phonegap function like camera,gallery or even device ready is not working. but when i send app in background and resume it then all the functionality is wokring. :(
Where in Android all working fine but in ios not.
I have 3 html pages.from index.html i am opening the page in inappbrowser after i am comming to second.html in which i had use all functionality like camera,gallery.
I had used winload.location for redirection...
I had try lot.
Please Help me .... :(
I had this problem some time ago.
To me was related to the settings of the camera. I used following settings:
quality: 50, // or less for ios as in specifications,
destinationType: parent.window.Camera.DestinationType.FILE_URI, // ! Important
Regards
I am currently using appframework MVC for mobile devices, the problem is that app.ready is not fired on android devices, but working fine on IOS devices.
Any suggestion, below is my little code:
var app = new $.mvc.app();
app.loadModels("login");
app.loadControllers("login");
app.ready(function() {
alert("I am at the app ready");
$.mvc.route("/login");//Load the default login route
});
After this, you have to throw ui
$ui.launch();