cordova

Cordova 5 build command is deleting iOS device orientation settings

橙三吉。 提交于 2020-01-24 05:22:10
问题 With Cordova 5.1.1, when executing "cordova build ios", any device orientation settings previously selected in the XCode project are deleted leaving the orientation settings checkboxes unselected. While the "orientation" config preference may provide a means of forcing orientation, I need to be able to set different orientation preferences for the iPad and iPhone. All previous Cordova versions (below 5) respected those settings. Any ideas? Using XCode 6.3.2. 回答1: EDIT: According to @Abhinav

building app in intel xdk: do you need to build for cordova to use cordova apis

浪子不回头ぞ 提交于 2020-01-24 05:22:07
问题 I have just learned of intel xdk and i am going over how it works and what are steps to produce apps.. However, i am stuck at some place in understanding it. Can you clarify some stuff for me. From what i understand: Intel XDK by default provides apis that extend cordova apis. And therefore cordova apis are included in the intel xdk and if someone wants to use them they just include a script tag with src set as 'cordova.js'. So my question if i am using cordova api instead of intel xdk apis..

Links in remote JQueryMobile sites in a PhoneGap app open safari

不打扰是莪最后的温柔 提交于 2020-01-24 05:12:08
问题 I'm having quite a peculiar problem with PhoneGap and JQuery Mobile, using the latest versions of both frameworks as of this writing. My phonegap app has some pages 'local' to the app, and other pages that are loaded directly from a remote site. Going between the local and remote pages is fine (there is no transition but that can't exactly be helped). However, once I'm on the remote pages, any link I click on the remote pages opens Safari with the page I requested. This is not desirable

Ionic 4 keyboard covers input field

感情迁移 提交于 2020-01-24 04:23:07
问题 I have an Ionic 4 app that has a form with inputs in it. When the user clicks on the input, it opens the keyboard, but it hides the content, without scrolling. Is there any way around this? This is my code: <form #f="ngForm" (ngSubmit)="sendMail()"> <ion-item> <ion-label position="floating">name </ion-label> <ion-input [(ngModel)]="senderName"> </ion-input> </ion-item> <ion-item> <ion-label position="floating">mail </ion-label> <ion-input [(ngModel)]="senderMail"> </ion-input> </ion-item>

Transparent navigation bar in Ionic

跟風遠走 提交于 2020-01-24 01:33:18
问题 My Ionic application have a detail view with transparent header. Applying CSS class "bar-clear" to my element is doing the job just fine in desktop browsers and when running the app on Android (see result here). But when running on iOS 8 the header is white and opaque (see here). Any idea why? 回答1: I did some research and people it got it working by setting bar-light to the header bar and then making these changes: .bar.bar-light { background-color: rgba(255,255,255,.66) !important; /* or

How to call javascript function from java code

左心房为你撑大大i 提交于 2020-01-24 00:32:12
问题 I'm trying to call a javascript function from a java class, but I get these errors: -Could not find method sun.misc.Service.installedProviders, referenced from method javax.script.ScriptEngineManager.initEngines -Could not find method sun.misc.Service.providers, referenced from method javax.script.ScriptEngineManager.initEngines -Could not find method sun.misc.Service.installedProviders, referenced from method javax.script.ScriptEngineManager.initEngines -java.lang.VerifyError: javax.script

How to integrate Phonegap BarCodeScanner Plugin to IBM worklight Project

倾然丶 夕夏残阳落幕 提交于 2020-01-24 00:24:11
问题 I need to create a BarcodeScanner App in IBM worklight using phonegap plugins. I just need to know how to add cordova plugins to IBM worklight project. What are the files that needs to be changed? Plugin to be used - com.phonegap.plugins.barcodescanner 回答1: See here for tutorials about how to create Cordova plug-ins for Worklight/MobileFirst Platform: Adding native functionality to hybrid applications Then read various topics about the same subject: http://sajjad-hussainsh.blogspot.co.il/2013

Cordova start app very slow

雨燕双飞 提交于 2020-01-24 00:12:08
问题 I build an app with cordova. The app itself is very fast. But the start of the app(the time from the click on the button till the first screen shows ) it more then 8 sec. How can I make it faster?? I know that many apps wrote with cordova and I dont think that it take 8 sec for those apps. I dont need any feature of cordova only internet access and show the page. no camera no permissions.. Thanks 回答1: Keeping all the sources locally also won't help you much. You have two options Minimize all

Cordova firebase plugin failures

断了今生、忘了曾经 提交于 2020-01-23 21:42:09
问题 In attempting to compile a previously working Android app with Android Studio 3.5.2, Android SDK 28 and the cordova-plugin-firebase I read here that I should install cordova-plugin-firebasex as a working and currently maintained fork that works on Androidx. First issue, removing the cordova-plugin-firebase, I resolved as follows: You cannot remove this plugin with the conventional method cordova plugin remove cordova.plugin.firebase --save This removes the entire /main directory due to a bug

Cordova firebase plugin failures

时光总嘲笑我的痴心妄想 提交于 2020-01-23 21:41:05
问题 In attempting to compile a previously working Android app with Android Studio 3.5.2, Android SDK 28 and the cordova-plugin-firebase I read here that I should install cordova-plugin-firebasex as a working and currently maintained fork that works on Androidx. First issue, removing the cordova-plugin-firebase, I resolved as follows: You cannot remove this plugin with the conventional method cordova plugin remove cordova.plugin.firebase --save This removes the entire /main directory due to a bug