cordova

Ionic 4 - Dismiss or close Modal on platform hardware back button android

我只是一个虾纸丫 提交于 2020-01-25 04:03:13
问题 In ionic 4, on hardware back button press I want to close or dismiss any modal that will be present. I have used the below given code, here the condition "if(modal) { modal.dismiss(); }" always get satisfied even if previous modal are dismissed constructor(private platform: Platform, private modalCtrl: ModalController) { this.initializeapp(); } initializeapp() { this.platform.registerBackButtonAction(1, async () => { const modal = await this.modalCtrl.getTop(); if (modal) { modal.dismiss(); }

How to install plugin in cordova. There is no Plugin folder for cordova, only in phoneGap

徘徊边缘 提交于 2020-01-25 00:23:48
问题 I have downloaded the latest Cordova 3.4.0-rc1. I can run it using Windows Phone emulator in Visual Studio 2013. Now how do I install plugin like Accelerometer, Battery that already included in the phoneGap framework? I cannot find the documentation about it. The reason why I use Cordova instead of phoneGap is because phoneGap has not updated their framework since 5th November 2013 and from what I have heard that there is not much different between these 2 frameworks update my question: I

Phonegap - iOS Keyboard and Dropdown 'compress' webview because of vh unit

南楼画角 提交于 2020-01-25 00:13:28
问题 With an ionic/phonegap application I've this issue (Only on iOS). When the user need to write something o select and option the iOS control (keyboard or dropdown) appears and when it does the web-view is compress to half. I'm using vh and vw measure unit in CSS. What I've done/tried: This post in ionic's forum The OP solved it by changing vh and vw units back to pixels. That's no a solution for me. Ionic keyboard plugin using the method cordova.plugins.Keyboard.disableScroll(true); didn't

Unable to add push notifications entitlement to iOS production with cordova-plugin-fcm plugin

我的未来我决定 提交于 2020-01-24 23:38:30
问题 I am trying to install cordova-plugin-fcm plugin in a blank Cordova app using Visual Studio 2017. I install the plugin and add the google-plist files etc. On my mac i have xcode 7.2.1. When i build an ipa from visual studio it generates an IPA, but it does not have push notifications enabled. I have added all the source code, including plugins folders, to bitbucket. Link below; https://bitbucket.org/quintonn/pushnotificationtest What am i missing to get push notifications enabled on my iphone

cordova update android version without any loss

Deadly 提交于 2020-01-24 21:47:06
问题 I was trying to update my android version in my cordova project using this command: cordova platform update android But this was the response: Using cordova-fetch for cordova-android@~7.0.0 Updating android project... (node:4188) UnhandledPromiseRejectionWarning: An in-place platform update is not supported. The `platforms` folder is always treated as a build artifact in the CLI workflow. To update your platform, you have to remove, then add your android platform again. Make sure you save

What should file paths fed to insertCSS() be relative to?

浪子不回头ぞ 提交于 2020-01-24 21:19:05
问题 I'm starting out with phonegap and have found the docs to be a bit vauge on this point. When I use insertCSS() on my current project it seems like whatever path I use, the css is not used. As you can see from that link, my file structure is: app-root | ... |_ www | |_ css | | | target.css | |_ js | | | index.js | index.html In index.js I'm making a call to insertCSS() in the event listener for an inAppBrowser. This function should be pulling target.css: iab.addEventListener('loadstop',

Phonegap How to make android build

元气小坏坏 提交于 2020-01-24 20:19:07
问题 I have created a build in ios successfully. Now i am trying to make build in android. I have added android platform and imported this in eclise(ADT). I want to make configuration for android, as i am new to mobile application. I am unable to find any good reference for building android tutorial. I looked into getting started tutorial of phonegap but it was not much helpful 回答1: I assume you're using Cordova 3.0 and CLI Proceed as following (some steps you might have already done, for

Cordova facebook connect plugin fail on login in android

冷暖自知 提交于 2020-01-24 20:09:08
问题 in my android application ( phonegap ) i am using facebook service for login. but when i try to login using facebook it will fire an error : Error : Cordova facebook connect plugin fail on login! Facebook error:Failed to receive access token Code working fine on emulator . but when i test in real device it will fire me above error. 回答1: Make sure that your Facebook app is not set to sandbox mode. The Sandbox Mode should be selected as Disabled . As per the documentation, if this is enabled,

Reactjs with cordova

混江龙づ霸主 提交于 2020-01-24 19:12:15
问题 Can someone help me in setting up configuration to build a Mobile app using reactjs and Cordova. I tried using pasting my react js app to www in Cordova and changing some configuration. But getting white screen. Can someone help me in setting up or some steps need to be followed to get it running. 回答1: Can you provide more details as to what setup you are using for development and build? Ideally, there should be a command to build , which will generate a bundle.js or a main.js or something

Reactjs with cordova

此生再无相见时 提交于 2020-01-24 19:11:06
问题 Can someone help me in setting up configuration to build a Mobile app using reactjs and Cordova. I tried using pasting my react js app to www in Cordova and changing some configuration. But getting white screen. Can someone help me in setting up or some steps need to be followed to get it running. 回答1: Can you provide more details as to what setup you are using for development and build? Ideally, there should be a command to build , which will generate a bundle.js or a main.js or something