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

Ionic cordova resources error "getaddrinfo ENOTFOUND res.ionic.io"

$
0
0

Hi,

I'm encounting the following error when trying to create cordova resources.

> [DEBUG] Load global plugin @ionic/cli-plugin-proxy
> [DEBUG] Load local plugin @ionic/cli-plugin-cordova
> [DEBUG] Load local plugin @ionic/cli-plugin-ionic-angular
> [DEBUG] resourceJsonStructure=3
> [DEBUG] platformDirContents=android
> [DEBUG] buildPlatforms=android
> [DEBUG] getProjectPlatforms completed - length=1
> [DEBUG] imgResources=18
> [DEBUG] createImgDestinationDirectories completed - length=2
> [DEBUG] getSourceImages completed - 2
> ✔ Collecting resource configuration and source images - done!
> [WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
> [DEBUG] !!! ERROR ENCOUNTERED !!!
> ✖ Uploading source images to prepare for transformations - failed!
> Error: getaddrinfo ENOTFOUND res.ionic.io res.ionic.io:443
> [DEBUG] Error: getaddrinfo ENOTFOUND res.ionic.io res.ionic.io:443
>             at errnoException (dns.js:28:10)
>             at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)

Although I'm using the CLI behind a proxy, which I've configured via enviroment variables, other commands have worked just fine (e.g. starting a new project works perfectly).

Output of ionic info:

> global packages:

>     @ionic/cli-plugin-proxy : 1.2.0
>     @ionic/cli-utils        : 1.2.0
>     Cordova CLI             : 7.0.1
>     Ionic CLI               : 3.2.0

> local packages:

>     @ionic/app-scripts              : 1.3.7
>     @ionic/cli-plugin-cordova       : 1.2.1
>     @ionic/cli-plugin-ionic-angular : 1.2.0
>     Cordova Platforms               : android 6.2.3
>     Ionic Framework                 : ionic-angular 3.0.1

> System:

>     Node       : v6.8.0
>     OS         : Windows 7

Any help is appreciated. Thanks!


My Ionic Android app does not look like when run in Ionic Serve Lab

$
0
0

Just off the top of my head...

Have a function in your class...

imageHeight(){
   return Math.floor( (document.documentElement.clientHeight / 100.00) * 30);
   //will give you 30% of the screen, maybe you need it to be less...
}

Then on your img..

<img [height]="imageHeight()" alt="" src="wherever.png" />

Ionic push notification v1 using firebase cloud messaging

$
0
0

Hi guys,
i am trying to configure push notification using firebase, but every time it gives me "Uncaught ReferenceError: FCMPlugin is not defined" i tried on device also but nothing happens.

i was finding this issue since two days but no result.

Help me!!!
Thanks

Problem using Google Plus

Ionic 2 Push Notification From Scratch(Working Example)

Install Visual Studio Code Editor on Mac OS Sierra

Working Google Map Example - Ionic 2

[SOLVED] Configuring app scripts for uglification and minification


Problem using Google Plus

$
0
0

The link mentioned by you, is using the old Ionic2 syntax. You can get the latest working Google Plus example using

Below is the Ionic information while writing this tutorial.

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.10.0
Xcode version: Xcode 8.2.1

Please cross check with your ionic versions

Rollbar plugin - ios build failed

$
0
0

Hi,

Plugin repo:

Installation:

ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="TOKEN" --variable ROLLBAR_ENVIRONMENT="ENV"
npm install @ionic-native/rollbar
npm install angular-rollbar

app.module.ts:

import { Rollbar } from '@ionic-native/rollbar';
import { RollbarModule } from 'angular-rollbar';
...
providers: [
 ...
    Rollbar
  ],

app.component.ts:

import { RollbarService } from 'angular-rollbar';
import { Rollbar } from '@ionic-native/rollbar';

constructor(
...
    public rollbar: Rollbar,
    public rollbarService: RollbarService
)

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

someErrorEvent() {
 this.rollbarService.error("Error message");
}

[SOLVED] Bug in Ionic2 range dualKnobs="true"

$
0
0

Could you send the code for your dualknobs? My project does not work .. thanks

Ionic 3 framework quantity add minus

$
0
0

this.apiserviceprovider.loadproduct(this.category)
.then(data => {
this.productdetails = data;

});

this.qty = 1;

}

incrementQty() {
console.log(this.qty+1);
this.qty += 1;
}

// decrement product qty
decrementQty() {
if(this.qty-1 < 1 ){
this.qty = 1
console.log('1->'+this.qty);
}else{
this.qty -= 1;
console.log('2->'+this.qty);
}
}

Display chart with values from json object (ionic2)

$
0
0

It looks like an element of this.items is undefined.
Please ensure the this.items.length>-8 and have values.

Native "Printer" plugin not working

$
0
0

I just updated the ionic-native core package, did npm cache clean, and re-installed all node modules and plugins.
Now the printer is able to run and this.printer.isAvailable() works. But when I do

this.printer.pick().then(result => {
      console.log(result);
    });

I get the following error:

My package.json is the following:

{
    "name": "dianoia",
    "version": "0.0.1",
    "author": "Ionic Framework",
    "homepage": "http://ionicframework.com/",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "lint": "ionic-app-scripts lint",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.1.0",
        "@angular/compiler": "4.1.0",
        "@angular/compiler-cli": "4.1.0",
        "@angular/core": "4.1.0",
        "@angular/forms": "4.1.0",
        "@angular/http": "4.1.0",
        "@angular/platform-browser": "4.1.0",
        "@angular/platform-browser-dynamic": "4.1.0",
        "@ionic-native/core": "^3.10.3",
        "@ionic-native/in-app-browser": "^3.10.3",
        "@ionic-native/native-storage": "^3.10.3",
        "@ionic-native/printer": "^3.10.3",
        "@ionic-native/splash-screen": "3.7.0",
        "@ionic-native/status-bar": "3.7.0",
        "@ionic/storage": "2.0.1",
        "cordova-android": "^6.2.3",
        "cordova-browser": "^4.1.0",
        "cordova-plugin-console": "^1.0.7",
        "cordova-plugin-device": "^1.1.6",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-nativestorage": "^2.2.2",
        "cordova-plugin-printer": "git+https://github.com/katzer/cordova-plugin-printer.git",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.3",
        "cordova-plugin-whitelist": "^1.3.2",
        "cordova-sqlite-storage": "^2.0.4",
        "ionic-angular": "3.2.1",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "rxjs": "5.1.1",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.10"
    },
    "devDependencies": {
        "@ionic/app-scripts": "1.3.7",
        "@ionic/cli-plugin-cordova": "1.2.1",
        "@ionic/cli-plugin-ionic-angular": "1.2.0",
        "@ionic/cli-plugin-ionic1": "1.2.0",
        "typescript": "2.2.1"
    },
    "description": "An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "cordova-plugin-nativestorage": {},
            "cordova-sqlite-storage": {},
            "cordova-plugin-inappbrowser": {},
            "cordova-plugin-printer": {}
        },
        "platforms": [
            "android",
            "browser"
        ]
    }
}

Missing push plugin after ionic package

$
0
0

No, finally I had moved over to the FCM plugin and now I don't use ionic package either.


Native "Printer" plugin not working

$
0
0

Hmm, I found the problem. My code was

this.printer.isAvailable().then(this.printActivityDoc, this.printerNotAvailable);

So in function this.printActivityDoc, the this was undefined.

Thanks for your help :slight_smile:

Problem using Google Plus

$
0
0

thank u dear bharathiraja

first i followed this link for ionic 3

but after haveing the same problem (error 12501) i tried ionic 2

i'll do step by step this url and playback the result here

Rollbar plugin - ios build failed

$
0
0

Isn't this the opposite of the Cordova plugin you are trying to use?

Could you please post the complete error message?
Also please run the build with --verbose and post the error message.

Normally the plugin should take care of copying the Rollbar files over. I suggest you remove and re-add the ios platform, reinstall the plugin etc to see if this fixes stuff.

Ionic 3 framework quantity add minus

$
0
0

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` ("code fences") manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

And do you have a question or did you only want to show us your code?

Ionic push notification v1 using firebase cloud messaging

$
0
0

So it seems the FCMPlugin is not defined...

What tutorial or instructions are you following?
What did you implement?

Viewing all 230042 articles
Browse latest View live


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