ionic3

How to remove installed ionic cordova plugin from ionic 2 / 3 or ionic V2+ project

我怕爱的太早我们不能终老 提交于 2019-12-03 07:26:32
I installed Cordova and Ionic Native plugins into the ionic3 project. But I need to remove only that specific Cordova and Ionic Native plugins from the project completely. (With its dependencies like npm ). Is there any proper way to do that? Appreciate any kind of your help. Thank you! I just refer their document here . Example: To install a plugin we are using following way. ionic cordova plugin add <plugin-name> ( ionic cordova plugin add cordova-plugin-dialogs ) npm install --save @ionic-native/<npm-name-of-plugin> ( npm install --save @ionic-native/dialogs ) To Uninstall the plugin just

How to update value inside ionic 2 side menu

浪子不回头ぞ 提交于 2019-12-03 07:08:30
How to "transfer" date from page into side-menu in Ionic2, i.e - Having app.page.html like following: <ion-menu [content]="content"> <ion-content class="menu-left"> <!-- User profile --> <div text-center padding-top padding-bottom class="primary-bg menu-left"> <a menuClose> <h4 light>{{userName}}</h4> </a> </div> <ion-list class="list-full-border"> <button ion-item menuClose *ngFor="let page of pages" (click)="openPage(page)"> <ion-icon item-left name="{{ page.icon }}"></ion-icon> {{ page.title }} <ion-badge color="danger" item-right *ngIf="page.count">{{ page.count }}</ion-badge> </button> <

ScrollTo particular item of ListiVew in Ionic 2

你离开我真会死。 提交于 2019-12-03 06:46:13
I want to scrollTo a particular item in listview in ionic 2. I have a listview which is bound to array. export class TestPage { @ViewChild(Content) content: Content; public items: Array<Object> = []; ionViewWillEnter() { console.log(this.navParams.data); this.customService.getArray(this.params.index).then((items) => { this.items = items; //scroll to item // this.content.scrollTo() }); } } Here is the view: <ion-list [virtualScroll]="items" approxItemHeight="120px" approxItemWidth="100%" class="items-listview list list-md"> <button class="items-listview-item item item-md" *virtualItem="let item

How to fix the connection to the server was unsuccessful. (file ///android_asset/www/index.html)

大憨熊 提交于 2019-12-03 06:32:42
问题 I've added material icons to ionic2 app , and since then I get error ""The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"" although the css and fonts file of MaterialIcons are in the assets folder (I've install it locally) there is no call to "https://fonts.googleapis.com/icon?family=Material+Icons" what can I do ? Can I fix it or know why the timeout suddenly . 回答1: Add <preference name="loadUrlTimeoutValue" value="60000" /> To config.xml 回答2: Adding that

API error: <_UIKBCompatInputView: 0x13fd1d7c0; frame = (0 0; 0 0); layer = <CALayer: 0x1c4426e40>> returned 0 width, assuming UIViewNoIntrinsicMetric

喜你入骨 提交于 2019-12-03 05:32:16
I'm using Ionic 3 on iPhone 7 plus with iOS 11. When I run my App, and fill in some text/input fields (basic forms) the app freezes for a few seconds and becomes completely unresponsive (which isn't good, not to say the least). I noticed this error coming up in Xcode, maybe that's the problem. Has anyone else encountered similar errors? API error: <_UIKBCompatInputView: 0x13fd1d7c0; frame = (0 0; 0 0); layer = > returned 0 width, assuming UIViewNoIntrinsicMetric Remove deprecated items from the forRoot config in app.module.ts IonicModule.forRoot(), Eg. remove these: { scrollPadding: true,

Get data async before a `Page` gets rendered

谁都会走 提交于 2019-12-03 04:44:25
问题 What is the correct way to get data async before a Page gets rendered? Angular2 suggests the @CanActivate decorator as far as I understand it. Sadly this is not working with Ionic2, at least not for me and for others Apparently Ionic2 does something with the @CanActivate decorator, see But its not documented and i can't figure out what it does exactly. Nevertheless this guy points out one should use Ionics View States instead anyways, due to ionics caching. His example looks like this:

Correct way to use image assets in Ionic 2

▼魔方 西西 提交于 2019-12-03 04:43:35
问题 What’s the best practice for image assets in Ionic 2? I have a bunch of SVGs I want to use as non-system icons. I found some older tips on using Gulp but it seems Ionic team has decided on Rollup as the build tool of choice, no docs on this so far. Somebody told me to just add them to www/img . Any downsides? 回答1: Placing your images in www/img sounds like a good ideal but it will only work when serving locally using ionic serve . When building your app, the www/img will get deleted unless

Ionic app crashes on iOS 12.2 because of '_alwaysRunsAtForegroundPriority'

喜欢而已 提交于 2019-12-03 03:20:00
On iOS 12.2 my app is terminated just after startup, with this message in xcode: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.' Anyone who can point me in the right direction for this one? I see that there has been some warnings about this earlier: How to resolve app validation "The app references non-public selectors in Payload/MyApp.app/MyApp: _setAlwaysRunsAtForegroundPriority:"? The answer to that post is that it's a security warning from

Ionic 3 prod release build issue with intellij-core-26.0.1

匆匆过客 提交于 2019-12-03 02:22:20
问题 I am creating release APK using the following versions : node - 8.12.0 gradle - 4.10.2 ionic CLI - 4.0.5 Cordova - 8.0.0 When I run the ionic cordova build android --prod --release I am getting the following error. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':CordovaLib'. > Could not resolve all files for configuration ':CordovaLib:classpath'. > Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0

Ionic 3 - xcode error with cocoapods

我们两清 提交于 2019-12-03 01:23:56
I try to build an ionic 3 app with push notification and I have some problem with iOS deployment. I have this 3 error in xcode : diff: /Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. I have try a lot of solution I found on internet : use command "pod install", "pod update" delete and install CocoaPods update CocoaPods Delete "Pods" folder, "Podfile.lock" and "Podfile" and run "pod install" command. Remove libPods-myApp.a from Link Binary