IOs Cordova long-press shows text-select magnifying glass even with text-selection disabled, how to remove?
Thank you for that Automatico! Saved me from a lot more frustration.
Since then however it looks like that code has been merged into mainline cordova and can just be enabled by adding
<preference name="SuppressesLongPressGesture" value="true" />
to config.xml
That worked perfectly for me!
Here is the commit and notes that brought it in
https://github.com/apache/cordova-ios/commit/1ad9951c80dbf97281e763f5f27a9bc8852c0537
global disable magnifying glass on iOS 9 in meteor cordova app
The plugin Frederik mentioned is now build into cordova see https://github.com/apache/cordova-ios/pull/174
To enable the fix insert <preference name="SuppressesLongPressGesture" value="true" />
into config.xml
How to disable the magnifying glass in UIWebview?
No, the loupe is inextricably linked to selection. To disable it, you will have to disable selection entirely (you can use -webkit-user-select: none
to do that).
PhoneGap build error plugin unsupported: ...
For any of you having the same problem, I found a solution:
What it boils down to:
Go to:
PhoneGap Plugins Page
(I'm using contacts as an example here) and click on the [Old Plugins] tab. Now find your plugin and open its link under the [PBG Plugin ID] column. Use the
<plugin name="org.apache.cordova.contacts" spec="0.2.16" source="pgb" />
as described under [Usage Instructions] and replace source="pgb"
with source="npm"
.
If this fails, make use of "Option 3" on the comments above "Start Using NPM for PhoneGap" artice where you use the [Repository] link under [Other Details] on your PhoneGap Plugin page in your plugin like so:
<plugin spec=“https://github.com/apache/cordova-plugin-contacts.git” source=“git” />
I hope this saves a few people a couple of hours!
Ionic/cordova-sms-plugin Open sms app with longer text, Ionic toolbar disappears
For now I have fixed with some css.
sms(phoneNumbers: string[], message: string) {
return new Promise((resolve, reject) => {
const options = {
android: {
intent: 'INTENT',
},
};
document.body.style.height = '100%';
document.body.style.marginTop = '0px';
this.smsPlugin
.send(phoneNumbers, this.parseMessage(message), options)
.then(
() => {
resolve('success');
},
() => {
reject('error');
}
)
.finally(() => {
setTimeout(() => {
const bodyHeight = document.body.offsetHeight;
const deviceHeight = window.screen.height;
document.body.style.marginTop = bodyHeight - deviceHeight + 'px';
document.body.style.height = deviceHeight + 'px';
}, 500);
});
});
}
Here is the link of reported bug on Ionic Github.
https://github.com/ionic-team/ionic-framework/issues/24135
Cordova : what kind of cordova plugins should be removed in release time?
maybe org.apache.cordova.console
that is making console.log accessible and is not mandatory for release IMO.
Otherwise, if you add a plugin and don't need it for release, just remove it for debug also ;)
Extra info
Be carefull, you are using deprecated plugins : org.apache.cordova...
.
Shall be cordova-plugin-..
Related Topics
Html5 Video Autoplay on Iphone
iPhone - Convert Ctfont to Uifont
How to Add a Container View Programmatically
Uibutton Touch Is Delayed When in Uiscrollview
Checking a Null Value in Objective-C That Has Been Returned from a JSON String
Cropping Image with Swift and Put It on Center Position
Phonegap 3.0 iOS Plugins Not Found
iPhone Image Captured from Camera Rotate -90 Degree Automatically
Uitableview with Two Custom Cells (Multiple Identifiers)
Horizontal Uiscrollview Inside Custom Uitableviewcell - Using Ib Storyboard - Not Scrolling
<Input Type="Number"/> Is Not Showing a Number Keypad on iOS
How to Cache or Preload Sklabelnode Font
How to Make iPhone Vibrate Using Swift
Swift Stack and Heap Understanding
Storing Authentication Tokens on iOS - Nsuserdefaults VS Keychain
How to Add Iphonex Launch Image
Why Safari Shows "No Inspectable Applications" During Remote Debugging with iOS 6 Device