cordova-5.0.0

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 custom WebView With Cordova 5.0 in Android

≡放荡痞女 提交于 2020-01-03 13:30:32
问题 I want to build a custom WebView with Cordova. To do this I want to override setWebChromeClient and the setWebViewClient methods. But for that I need to have a SystemWebViewClient which requires a SystemWebViewEngine, which I cant seem to get at this point. Heres my main activity public class MyActivity extends CordovaActivity implements CordovaInterface { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); int threadSize = getResources().getInteger(R.integer

Use View.isInEditMode() in your custom views with CordovaWebView

余生颓废 提交于 2019-12-12 02:57:30
问题 I am developing application with CordovaWebView and i have added the below code in web_view.xml file. <org.apache.cordova.CordovaWebView android:id="@+id/cordovaWebView" android:layout_width="fill_parent" android:layout_height="fill_parent" /> I have implemented methods from CordovaInterface. Now my design page showing the following error message. Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse Could anyone please tell me that how to resolve it? 回答1:

Request Permission in Android Cordova plugin does not prompt the user

一个人想着一个人 提交于 2019-12-06 06:14:29
问题 I am trying to write a Cordova Plugin to have a Facebook chat head like floating icon for ionic hybrid apps which requires SYSTEM_ALERT_WINDOW Permission. Since Android M onward requires the user to grant the permission at the first time the app starts, I am trying to use Cordova plugin's cordova.requestPermission(CordovaPlugin plugin, int requestCode, String permission) method to prompt the user to grant permission (as in the documentation). public class Floatie extends CordovaPlugin {

Request Permission in Android Cordova plugin does not prompt the user

三世轮回 提交于 2019-12-04 10:02:34
I am trying to write a Cordova Plugin to have a Facebook chat head like floating icon for ionic hybrid apps which requires SYSTEM_ALERT_WINDOW Permission. Since Android M onward requires the user to grant the permission at the first time the app starts, I am trying to use Cordova plugin's cordova.requestPermission(CordovaPlugin plugin, int requestCode, String permission) method to prompt the user to grant permission (as in the documentation ). public class Floatie extends CordovaPlugin { public static final String ACTION_START_FLOATIE = "startFloatie"; public static final int REQUEST_CODE = 0;