Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228529 articles
Browse latest View live

Publishing App


Ionic iOS build process failing

$
0
0

I’ve finally managed to get the iOS build working. For anyone else experiencing this issue, here’s what fixed it for me:

  1. Downgraded Ruby from 2.8.0dev to 2.6.3 using rvm (if you don’t have rvm install it first 'natch):
rvm install "ruby-2.6.3"
  1. Use the new ruby version. Note that in my case this is only active in the same terminal window. As soon as a new window opens, it reverts to the default:
rvm use 2.6.3
  1. This by itself did not fix the issue. So I also downgraded my version of gems from 3.1.2 to 3.0.3 Be sure to do this when using ruby 2.6.3 or it’ll fail:
gem update --system 3.0.3
  1. Still the problem was not resolved, because now cocoapods couldn’t be found. So I also reinstalled cocoapods:
sudo gem uninstall cocoapods
Gem 'cocoapods' is not installed

sudo gem install -n /usr/local/bin cocoapods
  1. Once that was complete I then removed my existing iOS build folder and recreated it:
npx cap add ios
  1. Sit back and pray to Jebus

  2. Great success!

✔ Updating iOS native dependencies with "pod install" (may take several minutes) in 4.14s
✔ update ios in 4.15s

Some of these steps may not have been needed, or could have perhaps been done in a different order, but after days of noodle scratching I’m now finally able to get a build to my device.

Good luck everyone!

Bar code scanner plugin

$
0
0

You can use the barcode scanner open code again after finishing the previous search of barcode. Hope you will understand of what I am saying.

Search/Filter list in Ionic 4 and Firestore

Cordova Camera Plugin + Image Cropping Help

Print image using Bluetooth Serial Plugin

$
0
0

Did you find a way to print pdf? Please help me out with this. Thanks in advance.

Bluetooth printer PDF printing does not connect

$
0
0

Can we print pdf via this plugin? Can you help me doing that? Thanks in advance

Bar code scanner plugin

$
0
0

Thanks currently we done same way, but its look like a flipping the screen


Printing on bluetooth printers

$
0
0

@razmans Can we print pdf using plugin? Do you have any idea about printing pdf or html directly ? Can you give some idea on this? Thanks in advance.

Bar code scanner plugin

$
0
0

Can you explain a little bit in detail?

Cannot scroll, tilt, rotate and zoom the map after setting visibility of Markers or Circles on the map

$
0
0

Here is my code BTW.

page.html

<div id="map_canvas"></div>
<ion-content>
<ng-container *ngFor="let person of people">
  <ion-item (click)="showMarker(person)">
      Show Marker
  </ion-item>
</ng-container>
</ion-content>

page.scss

#map_canvas {
  height: 40%;
}

page.ts

import { Component, OnInit } from '@angular/core';
import { Platform } from '@ionic/angular';
import { GoogleMap, GoogleMaps, Environment, Marker, GoogleMapsAnimation, GoogleMapsEvent } from '@ionic-native/google-maps/ngx';


export class Page implements OnInit {


  map: GoogleMap;
  markers = {};
  circles = {};
  people = [{...}]; // contains person objects

  constructor(
    private platform: Platform,
  ) {
      this.initializeMarkers();
  }

  loadMap() {
    Environment.setEnv({
      'API_KEY_FOR_BROWSER_RELEASE': (My API),
      'API_KEY_FOR_BROWSER_DEBUG': (My API),
    });
    this.map = GoogleMaps.create('map_canvas', {
      camera: {
        target: {
          lat: 114,
          lng: 22,
        },
        zoom: 9,
        tilt: 0,
      },
      controls: {
        myLocationButton: true,
        myLocation: true,
        compass: true,
      },
      gestures: {
        scroll: true,
        tilt: true,
        rotate: true,
        zoom: true,
      },
    });
    this.map.clear();
  }

  async initializeMarkers() {
    this.map.clear();
    this.markers = {};
    this.circles = {};
    for (const person of this.people) {
        await this.map.addMarker({
          title: person.alias,
          position: { lat: 114, lng: 22 },
          visible: false,
          animation: GoogleMapsAnimation.DROP,
        }).then(
          marker => {
            this.markers[person.uuid] = marker;
          }
        );
        await this.map.addCircle({
          radius: 30,
          center: this.markers[person.uuid].getPosition(),
          fillColor: 'rgba(0, 0, 255, 0.5)',
          strokeColor: 'rgba(0, 0, 255, 0.75)',
          strokeWidth: 1,
          visible: false,
        }).then(
          circle => {
            this.circles[person.uuid] = circle;
          }
        );
        this.markers[person.uuid].bindTo('position', this.circles[person.uuid], 'center');
    }
  }

  showMarker(person: any) {
    const marker = this.markers[person.uuid];
    const circle = this.circles[person.uuid];
    if (marker.isVisible()) {
      marker.hideInfoWindow();
      marker.setVisible(false);
      circle.setVisible(false);
    } else {
      marker.showInfoWindow();
      marker.setVisible(true);
      circle.setVisible(true);
    }
    this.map.setAllGesturesEnabled(true);
  }


  ngOnInit() {
    this.platform.ready().then(() => this.loadMap());
  }

}

Suppose “people” is a valid array that contains “person” objects with key UUID.

Bar code scanner plugin

$
0
0

once scan the bar code than close the camera and reopen the camera than scan the bar code.

Ion-select not working when bind the object to the [vale]

$
0
0

I have used ionic-4 and ngrx which is used to state management, when i get some data object from store(ngrx) and assign to through formControll it isn’t assigned properly. but i assigned the same object from array of same objects it was assigned properly.can anyone explain the reason of above issue ? is there any solutions?

this.store.select(ApplicationSelectors.getAssetDetails).subscribe((assetDetails) => {
      if (assetDetails && this.productMasterData$) {
        this.noOfAssetsControl.setValue(assetDetails.assetDetails.noOfAssets, { emitEvent: false, onlySelf: true });
        this.isVatRegisteredControl.setValue(assetDetails.assetDetails.supVatRegistered, { emitEvent: false, onlySelf: true });
        const asset = this.productMasterData$.assets.findIndex(x => x.code === assetDetails.assetDetails.assetType.code);
        this.assetTypeControl.setValue(this.productMasterData$.assets[asset], { emitEvent: false, onlySelf: true });
      }
    });

numbers are assigned properly

Angular change detection doesn't work

$
0
0

Steps to reproduce:

  1. At preview, press tab2
  2. Press fab-button at the bottom
  3. Press OK at alert dialog
  4. The item in the list should be shown normally, but there is no changes

Expected behavior:

The value which is added into array by alert controller should be shown normally.

Help, this bug annoying me and others

$
0
0

Create a blank new project and move the src folder there and try building your application.


Angular change detection doesn't work

$
0
0

Seems to work like I would expect it to. Are you sure this reproduces your problem?

Ion-select not working when bind the object to the [vale]

$
0
0

Can you elaborate a bit on what you mean by “assigned properly”?

Bar code scanner plugin

$
0
0

you can scan so many bar code at one time so this scanner is so helpful…
thank you

Bar code scanner plugin

Writing experts needed for a writing company!

$
0
0

If you have experience and skill, then you have more opportunity. These days people who have better skills and experience in writing have better opportunity. Essays Chief is hiring writer who have more than 5 years experience and ability to tackle more than one subject. Now, you can send your CV using the contact details provided in the website. Check it out now!

Viewing all 228529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>