Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 48980 articles
Browse latest View live

Ionic Documentation not working

$
0
0

@turkinan wrote:


site loads the content and disappears,
it is same for the new release v4 documentation and the stencil web site.
tested on mac chrome, mac safari, mac firefox, windows 10 chrome, windows 10 firefox

Posts: 2

Participants: 2

Read full topic


Build address link to open in any map app

$
0
0

@helpmelearn wrote:

Probably a long shot but what I’m trying to do is have the ability for a user to click an address (or a button) that would give them the option(s) to open the address in some map app. The world seems to be tied to google maps so not easy to break free of it. Our customers could have different map apps installed.
Really seems like the problem is there is no way to setup a link and let the web know its an address.
I tried something like this window.open(‘maps://?q=’ + address, ‘_system’); didn’t really work.

Pretty much a long shot.

Posts: 1

Participants: 1

Read full topic

Create ionic 4 app inside Angular CLI projects structure

$
0
0

@lduveau wrote:

Hi,
I am looking for a way to “ionic start” a project and having it in the projects folder of an existing Angular CLI solution (containing a web app and a lib already).

Posts: 1

Participants: 1

Read full topic

Possible to create a ZIP file in Ionic?

$
0
0

@mlynch wrote:

My Android+iOS app will allow the user to create multiple files, and when things are working properly they’ll be able to upload them individually to a hosting site I have. I’d like to create a way for users to simply mass-upload all of their files and data at once, in case there’s something wrong with the upload and we need to go through the raw data ourselves.

Is there any way to create a single .zip file from a folder?

Or is there a way to use File Transfer or an HTTP send to upload an entire folder’s worth of data, not just an individual file?

Posts: 1

Participants: 1

Read full topic

Ionic --Prod Mode. error blank screen and Cannot find module "." Only with (Cordova run android --prod)

$
0
0

@mesutcakir wrote:

Hi,

I’m Ionic serve -lsc and ionic cordova run android perfectly working and console in has not errors.

After run this commands “ionic cordova run android --prod”

Build successfull > Apk created successful > Device install successfull
but
Open blank screeen chrome inspect tool one error

cordova.js:1219 deviceready has not fired after 5 seconds.
cordova.js:1212 Channel not fired: onPluginsReady
cordova.js:1212 Channel not fired: onCordovaReady
cordova.js:1212 Channel not fired: onDOMContentLoaded
vendor.js:1 Uncaught Error: Cannot find module "."
    at vendor.js:1
    at vendor.js:1
    at Object.<anonymous> (vendor.js:1)
    at e (vendor.js:1)
    at Object.366 (main.js:1)
    at e (vendor.js:1)
    at window.webpackJsonp (vendor.js:1)
    at main.js:1
(anonymous) @ vendor.js:1
(anonymous) @ vendor.js:1
(anonymous) @ vendor.js:1
e @ vendor.js:1
366 @ main.js:1
e @ vendor.js:1
window.webpackJsonp @ vendor.js:1
(anonymous) @ main.js:1
vendor.js:1 Ionic Native: deviceready event fired after 1780 ms

Ionic:

   ionic (Ionic CLI)  : 4.9.0 (C:\Users\Mesut\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.2

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 8 other plugins)

System:

   NodeJS : v10.14.2 (C:\Program Files\nodejs\node.exe)
   npm    : 4.6.1
   OS     : Windows 10

Package.json

{
  "name": "test.ionic",
  "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/animations": "^7.1.4",
    "@angular/common": "^7.1.4",
    "@angular/compiler": "^7.1.4",
    "@angular/compiler-cli": "^7.1.4",
    "@angular/core": "^7.1.4",
    "@angular/forms": "^7.1.4",
    "@angular/http": "^7.1.4",
    "@angular/platform-browser": "^7.1.4",
    "@angular/platform-browser-dynamic": "^7.1.4",
    "@ionic-native/core": "^4.18.0",
    "@ionic-native/device": "^4.17.0",
    "@ionic-native/firebase": "^4.18.0",
    "@ionic-native/geolocation": "^4.18.0",
    "@ionic-native/image-picker": "^4.18.0",
    "@ionic-native/open-native-settings": "^4.18.0",
    "@ionic-native/splash-screen": "^4.18.0",
    "@ionic-native/status-bar": "^4.18.0",
    "@ionic/storage": "^2.2.0",
    "angularfire2": "^5.1.1",
    "cordova-android": "^7.1.4",
    "cordova-browser": "5.0.4",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-geolocation": "4.0.1",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^2.3.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-telerik-imagepicker": "~2.2.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sqlite-storage": "^2.6.0",
    "firebase": "^5.7.2",
    "ionic-angular": "3.9.2",
    "ionic-native-http-connection-backend": "^4.0.8",
    "ionicons": "^4.5.1",
    "rxjs": "^6.3.3",
    "rxjs-compat": "^6.3.3",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.11",
    "@ionic/cli-plugin-proxy": "1.5.8",
    "@ionic/lab": "^1.0.16",
    "node-sass": "4.11.0",
    "typescript": "^2.7.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-telerik-imagepicker": {
        "PHOTO_LIBRARY_USAGE_DESCRIPTION": "your usage message"
      },
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
      },
      "cordova-plugin-firebase": {},
      "cordova-open-native-settings": {}
    },
    "platforms": [
      "browser",
      "android"
    ]
  }
}

Posts: 1

Participants: 1

Read full topic

Cannot build ionic 4 app with any native plugins: Error TS2304: Cannot find name 'FileTransfer'

$
0
0

@sjregan wrote:

Hi,

I am trying to migrate my Ionic v3 (Angular) app to Ionic v4 (Angular) and I am stuck trying to use any of the Ionic native plugins. Whenever I run ionic s I get the following compilation errors:

[ng] ERROR in src/app/services/chat.service.ts(48,27): error TS2304: Cannot find name 'FileTransfer'.
[ng] src/app/services/in-app-browser.service.ts(11,22): error TS2304: Cannot find name 'InAppBrowser'.
[ng] src/app/services/in-app-browser.service.ts(13,39): error TS2304: Cannot find name 'SafariViewController'.
[ng] src/app/services/push-notifications.service.ts(28,25): error TS2304: Cannot find name 'Device'.
[ng] src/app/services/push-notifications.service.ts(30,23): error TS2304: Cannot find name 'Push'.

My environment:

Ionic:

   ionic (Ionic CLI)             : 4.9.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.12.3
   @angular-devkit/schematics    : 7.2.3
   @angular/cli                  : 7.2.3
   @ionic/angular-toolkit        : 1.2.3

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.1.4, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 21 other plugins)

System:

   ios-deploy : 1.9.4
   NodeJS     : v10.15.0 (/usr/local/bin/node)
   npm        : 6.4.1
   OS         : macOS Mojave
   Xcode      : Xcode 10.1 Build version 10B61

Thanks for any help you can provide.

Posts: 3

Participants: 2

Read full topic

How to close In app browser window and update ionic view

$
0
0

@anilm wrote:

I have redirected to user on paytm site. If payment is successful then , in app browser window should be closed and ionic view should be update.
How I can achieve this using IONIC 3

Posts: 1

Participants: 1

Read full topic

Split Pane not displaying correctly

$
0
0

@wildsun wrote:

First note, I’m using @ionic/vue so it could be in that or it could be Ionic on the whole.
Either way, it seems a pretty foundational issue

Using code almost identical to that described here;

Exact code can be read here;

The issue I’m running into is that when the screen size is greater than small, so it splits the screen, the menu is not displaying correctly. And when the screen size is small, so it has a pull out menu, the length of the text in the header determines the width of the header and the entire screen, rather than it filling the length of the screen as one would expect.

Here’s images to better describe what’s going on;

Posts: 1

Participants: 1

Read full topic


Ionic keyboard push any footer element to top

$
0
0

@levinvm wrote:

When i open the keyboard, it push any position absolute and bottom 0 element to top. Any ideas of how to fix this?

Padding in scroll-content dont work.

Posts: 2

Participants: 2

Read full topic

Ion-slides as a parent component with horizontally scrollable items inside

$
0
0

@EssamEid614 wrote:

Hello , i have a use case where i have a couple of slides and inside each slide a different component dependent on api reply , now i know which components are going to be horizontally scrollable and which arent but i dont know how to achieve this to enable horizontal scrolling if the swipe gesture is on the component itself its a swipe to scroll and if its on the empty space under the component then its a swipe to get the next slide ,
this is my current code for that part


<ion-slides [pager]='true' >
<ion-slide *ngFor="let Page of Pages">
.
.
.

<ng-container *ngIf="Page.PageType=='some page type' ">
                <scrollable component ></scrollable component >
  </ng-container>
.
.
.

</ion-slide>

where the dots represent other components , also one of the slides contains a map and when i try to swipe to move around in the map it simply switches to the next or previous slide , all i need to do is detect if this swipe is on the component itself so i need to scroll or if this swipe is on the empty area in the slide so swipe to the next slide any ideas ?
thanks

Posts: 1

Participants: 1

Read full topic

How do I migrate angular7 project?

$
0
0

@AsimNet wrote:

Hello,
how do I migrate our angular7 project to ionic4?
simply by calling:

ionic init

then I imported the following to app.module.ts:

import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { RouteReuseStrategy } from '@angular/router';

then in imports array:

  imports: [
    .
    .
    .
    IonicModule.forRoot(),
]

and in providers:

  providers: [
    .
    .
    .
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
]

then ionic serve --project= YOUR_PROJECT_NAME --configuration=YOUR_ENVIRONMENT_NAME

:tada::tada::muscle::muscle:

Posts: 1

Participants: 1

Read full topic

Amazon Lex integration in Ionic using amplify

$
0
0

@praveeshree077 wrote:

I am struggling from couple of days to get the lex working in my ionic app. AWS amplify documentation is really not helping. Can somebody please shed some light in this regard.

Trying to use amplify-interactions component but getting the error bot is not found.

Posts: 1

Participants: 1

Read full topic

Getting blank page with compiled successfully

$
0
0

@fallebdi wrote:

Hi Everyboy,

My components are loading as expected, but the views (HTML files) is not.

There are no errors in the console and compiled successfully.

It was working fine two days ago. there no changes.

I am trying to find the root cause with your help.

ionic info:
@ionic/angular 4.0.0-rc.1
@angular-devkit/build-angular : 0.11.4
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.2

Is anybody faced like this behaviour?

Posts: 1

Participants: 1

Read full topic

Updated from 4 rc to V4 -> ionicon not showing

$
0
0

@A1development wrote:

Hi all,

i just updated my project to V4 from 4 RC.
I also updated some other dependencies with NCU -u

Now everything works ecept the ionicons.
I get GET http://localhost:8100/svg/md-search.svg 404 (Not Found) etc.

i deleted node_modules, ran npm install again.
I have no idea how to fix this?

Can anyone help?

Here are my dependencies from package.json

"dependencies": {
    "@angular/common": "~7.2.2",
    "@angular/core": "~7.2.2",
    "@angular/fire": "^5.1.0",
    "@angular/forms": "~7.2.2",
    "@angular/http": "~7.2.2",
    "@angular/platform-browser": "~7.2.2",
    "@angular/platform-browser-dynamic": "~7.2.2",
    "@angular/router": "~7.2.2",
    "@capacitor/cli": "1.0.0-beta.14",
    "@capacitor/core": "1.0.0-beta.14",
    "@ionic-native/core": "5.0.0",
    "@ionic-native/splash-screen": "5.0.0",
    "@ionic-native/status-bar": "5.0.0",
    "@ionic/angular": "^4.0.0",
    "@ionic/pro": "2.0.4",
    "@ionic/storage": "^2.2.0",
    "@types/algoliasearch": "^3.30.1",
    "algoliasearch": "^3.30.0",
    "angularfire2": "^5.1.1",
    "cordova-sqlite-storage": "^2.6.0",
    "core-js": "^2.6.3",
    "firebase": "^5.8.1",
    "rxjs": "~6.3.3",
    "zone.js": "~0.8.29"
  },
  "devDependencies": {
    "@angular-devkit/architect": "~0.12.3",
    "@angular-devkit/build-angular": "~0.12.3",
    "@angular-devkit/core": "~7.2.3",
    "@angular-devkit/schematics": "~7.2.3",
    "@angular/cli": "~7.2.3",
    "@angular/compiler": "~7.2.2",
    "@angular/compiler-cli": "~7.2.2",
    "@angular/language-service": "~7.2.2",
    "@ionic/angular-toolkit": "^1.2.0",
    "@types/jasmine": "~3.3.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~10.12.0",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~3.3.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.0",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "protractor": "~5.4.0",
    "ts-node": "~8.0.2",
    "tslint": "~5.12.1",
    "typescript": "~3.2.4"
  },

Posts: 1

Participants: 1

Read full topic

Ionic web api not getting data

$
0
0

@imfairozkhan wrote:

Hi all,
I am pretty new to ionic framework. I have deployed my web api on remote server without ssl certification. I am able to fetch the data when I run the ionic app via ionic serve. But when I publish the ionic app, data from web api is not getting fetched.

Please help me in this regard

Thanks all

Posts: 1

Participants: 1

Read full topic


Assistance in animating div

$
0
0

@pierrephilipdp wrote:

Hey guys,

I am pretty new Ionic and am mostly a backend dev so this is like a whole new world to me. I absolutely love Ionic, the whole experience is great, it allowed me to prototype my app quite quickly.

Anyway - on to the question. I followed a tutorial on how to create a accordion menu, which looks quite nice, but I would like to animate the div that gets expanded. I have tried adding transition: all 1s ease; on the div itself but that didn’t do anything, I tried adding it onto the ion-item with no luck either. Can someone with some more CSS knowledge maybe help me out?

Here is the code in question:

<ion-list *ngFor="let item of information; let i = index;" class="accordian-list" lines="none" detail="false"
    no-padding>

    <ion-item tappable attr.id="section{{i}}" (click)="toggleSection(i)" class="accordian-section ion-activatable">
      <ion-ripple-effect></ion-ripple-effect>
      <fa-icon [icon]="['fas', 'plus']" slot="start" *ngIf="!item.open"></fa-icon>
      <fa-icon [icon]="['fas', 'minus']" slot="start" *ngIf="item.open"></fa-icon>
      <ion-label>
        {{ item.name }}
      </ion-label>
    </ion-item>

    <div *ngIf="item.children && item.open">
      <ion-list *ngFor="let child of item.children; let j = index;" lines="none" class="accordian-child-list">
        <app-information [information]="child" *ngIf="!child.children" class="test"></app-information>
      </ion-list>
    </div>

  </ion-list>

Posts: 1

Participants: 1

Read full topic

Ionic 4 - sass best practices

$
0
0

@rtpHarry wrote:

The background of my app I’m setting my ion-content to a background colour.

This means I want all of my ion-card to have a white background.

It’s supported in the docs, it says I should do this:

// (theme\variables.scss)
ion-card {
  --background: var(--brand-white) !important;
}

But then a sneaky rule jumps in and overrides it:

image

I have to put !important on the ion-card --background variable to get it to work.

I’m just starting out so I’m keen to learn best practices. Am I doing something wrong?

This works:

// (theme\variables.scss)
ion-card {
  --background: var(--brand-white);
  --ion-item-background: var(--brand-white);
}

Is this a bug in the element or maybe the documentation? Or am I doing it wrong?

Posts: 1

Participants: 1

Read full topic

ngFor not working ionic 4

$
0
0

@Piterski wrote:

Hi everyone,
i want to build my first app but my list dont want to show.
Please help

import { Component } from '@angular/core';


@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {

  public items;

	

   ionViewDidLoad(): string{
  	this.items = [
  		{title: 'Notatka 1', description: 'Opis notatki 1'},
  		{title: 'Notatka 2', description: 'Opis notatki 2'},
  		{title: 'Notatka 3', description: 'Opis notatki 3'}
   	];
   return this.items;
   }
}
<ion-content>
  <ion-list padding>
  	<ion-item *ngFor="let item of items" (click)="viewItem(item)">{{item.title}}<p>{{item.description}}</p></ion-item>
  </ion-list>
</ion-content>

Posts: 1

Participants: 1

Read full topic

Ionic 4 - Multiple lines button with href

$
0
0

@SnkrsFind wrote:

Hi,

just trying to make a button wrap around the text content.

here is my code

<ion-button buttonType="button" expand="block" fill="clear" class="sign-up-btn" href="#">Don't have an account? Sign up here.</ion-button>

I tried the css code I got from the forums but it is not working as expected.
.sign-up-button{
.button-inner {
flex-flow: column;
}
}
Any advice is welcomed.

Posts: 1

Participants: 1

Read full topic

Unable to start an Ionic v3 projetc

Viewing all 48980 articles
Browse latest View live