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

On specific button click add a class

$
0
0

@Deepak1233 wrote:

I have a situation where i have multiple records and i used in that *ngFor loop , so per record there is one button And I am trying to do is onclick change background of button so that it looks alike it is clicked

<div class="main" *ngFor="let data of fetched_info; let i=index">
<ion-grid no-padding no-margin>
<ion-row no-padding no-margin class="row">
<ion-col col-4 no-padding no-margin> 
<button ion-button small icon-start color="secondary"
outline (click)="shortlist($event,data[i].username)" class="">
<ion-icon ios="ios-star-outline" md="md-star-outline"></ion-icon>
Shortlist
</button>
</ion-col>

</ion-row>
</ion-grid>
</div>

onclick of shortlist() function i want to make it happen

Posts: 1

Participants: 1

Read full topic


How to get Ionic 4 PWA crawled by Googlebot

$
0
0

@kingjd wrote:

Ionic:

ionic (Ionic CLI) : 4.11.0 (C:\Users…\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.1.0-dev.201902142010.08fe8e4
@angular-devkit/build-angular : 0.12.2
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.2

Cordova:

cordova (Cordova CLI) : not installed
Cordova Platforms : android 7.1.4, browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 10 other plugins)

System:

Android SDK Tools : 26.1.1 (C:\Users…\AppData\Local\Android\Sdk)
NodeJS : v10.15.1 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
Hi,
I have built an Ionic 4 PWA and I would like to get the entire PWA crawled by Google. There are currently about 40 pages but I expect there to eventually be hundreds of pages .
Before I built the app I saw several PWA/Ionic sites saying that Ionic 4 PWAs are discoverable/crawlable by Googlebot. For example:


However I am having trouble with this, my site is in Google but as all I can see in Google cache for the index page of my site is “Please enable JavaScript to continue using this application.”, which is accompanied by a blank white page.
It looks like server side rendering(SSR) may be a solution to the problem but I am using lots of dynamic content which can quickly change a lot.
I am running the site on shared PHP/MySQL hosting so I can’t install any packages from shell. Stencil looks good but I am not sure if it will solve my problem.
My PWA received a SEO score of 100, a Performance score of 94 and a PWA score of 100 in Lighthouse.
I have tried to index different pages from my site in Google Search Console but they all appear as a blank screen in the Screenshot area. I also went to https://technicalseo.com/seo-tools/fetch-render/ which has 32 User-Agents and tried indexing my page on all the popular agents and none of them were able to render my page.
Could this be due to the version of JavaScript that Ionic is running? Or is it a timeout issue? Is a SSR system the solution for this problem and which one would be the best for Ionic 4?
If you want the URL of my site please send me a PM.
Any assistance would be appreciated.

Posts: 1

Participants: 1

Read full topic

Ionic 3/4 - Open a page with absolute URL?

$
0
0

@Abascal wrote:

Hello there.

I have a website, let’s say its

https://www.example.com

I have a separate APP, which is not on the website, but on play Store/app Store. I have set HomePage, in a lazy loaded way, as the rootPage of my APP:

https://www.example.com/home

I want to be able to go to SecondPage by clicking on a link like this:

https://www.example.com/second

I know I have to set the segment of the Component and all that stuff, but still, it only works with “/second” and never with “https://www.example.com/second”.

What can I do to make it work? Thanks.

Posts: 1

Participants: 1

Read full topic

Page flickering when changing page from sidemenu

$
0
0

@pefe wrote:

//app-routing.module.ts

  {
    path: '',
    loadChildren: './views/full/full.module#FullPageModule',
    canActivateChild: [AuthGuardService]
  },

//full.module.ts


  {
    path: '',
    redirectTo: 'home',
    pathMatch: 'full'
  },
  {
    path: 'home',
    component: FullPage,
    loadChildren: './home/home.module#HomePageModule'
  },
  {
    path: 'invoice',
    component: FullPage,
    loadChildren: './invoice/invoice.module#InvoicePageModule'
  },
  {
    path: 'client',
    component: FullPage,
    loadChildren: './client/client.module#ClientPageModule'
  },

when changing tabs, i am experiencing flickering of the whole page, rather than just loading the child page, i am not experiencing when using angular, just here in ionic.

i have 2 ion-router-outlet, one has main attribute

Posts: 1

Participants: 1

Read full topic

Ion-list padding bottom

$
0
0

@RaulGM wrote:

Hello,

I’m trying to set the ion-list padding bottom to 0. But I had no luck with that. I’ve looked up within Sass Variables, but I found no variable to change that specific.

I’ve also tried

ion-list {
  padding-bottom: 0px;
}

but had no change.

Posts: 2

Participants: 1

Read full topic

Side menu for tab button

$
0
0

@VenkateshVoona wrote:

I am trying to keep side menu when I click on one of the tab. Also I have other side menu for other pages. If I am applying menu for tab button its reflecting for other side menus too with the same content which I have for the tab sidemenu

here is my tabs.html page

<ion-tabs [tabsHighlight]="true" [ngClass]="{'tabs-wrapper' : !showTabs}" #content1>
  <ion-tab [root]="tab1Root"
    tabTitle="Home"
    tabIcon="md-home"></ion-tab>
  <ion-tab [root]="tab2Root"
    tabTitle="Notifications"
    tabIcon="md-notifications"
    [tabBadge]="_notificaionCount"
    badge-style="badge-assertive"></ion-tab>
  <ion-tab [root]="tab3Root"
    tabTitle="Location"
    tabIcon="md-pin"></ion-tab>
  <ion-tab
    tabTitle="More"
    tabIcon="ios-more"
    (ionSelect)="openMoreOptions()"
   >
  </ion-tab>
</ion-tabs>



<ion-menu [content]="content1" side="right"
type="overlay" >
  <ion-header>
    <ion-toolbar class="menu-header" padding>
     Logged is as : venky
    </ion-toolbar>
  </ion-header>
  <ion-content padding>

        <ion-icon name="ios-log-in-outline"></ion-icon>
        <span>Logout</span>

  </ion-content>
  <ion-footer>
    <ion-item text-center>
      Version 1.1.0
    </ion-item>
  </ion-footer>
</ion-menu>

Posts: 1

Participants: 1

Read full topic

Auto-adjust font size on iOS based on system font size?

$
0
0

@Asixel wrote:

Hi everyone!

I have an app written in Ionic 3, and I want in iOS to have the same behavior as in Android regarding the font size.
Atm, on an Android device, if I change the OS/system’s display settings and change the text size, my application automatically adjusts its font size.
On an iOS though, the font size of my application doesn’t change based on the based on the OS’ settings and stays the same.

Is there any easy fix that can be applied to change this?

Below are my scss files if needed:
app.scss:

// http://ionicframework.com/docs/v2/theming/
// App Global Sass
// --------------------------------------------------
// Put style rules here that you want to apply globally. These
// styles are for the entire app and not just one component.
// Additionally, this file can be also used as an entry point
// to import other Sass files to be included in the output CSS.
//
// Shared Sass variables, which can be used to adjust Ionic's
// default Sass variables, belong in "theme/variables.scss".
//
// To declare rules for a specific mode, create a child rule
// for the .md, .ios, or .wp mode classes. The mode class is
// automatically applied to the <body> element in the app.
$item-wp-detail-push-show: true;
$item-md-detail-push-show: true;

.homeLogoNavBar {
  height: 70%;
}

.old-browser-info {
  display: none;
}

ion-label {
  white-space: normal;
}

/*

// Menu user profile
.user-profile {
  .user-avatar {
    width: 68px;
    height: 68px;
    display: inline-block;
    border-radius: 50%;
    box-shadow: inset 0 0 10rem rgba(0,0,0,.25), 0 0 4rem rgba(255,255,255,.45);
    img {
      border-radius: 50%;
    }
  }
  .toolbar-background {
    background-image: linear-gradient(135deg, color($colors, primary), color($colors, primary));
  }

  .other-data {
    .column {
      &:first-child {
        border-right: 1px solid rgba(36, 50, 157, .25);
      }
    }
  }
}
*/

/*
#smallButton {
  width: 50%;
}*/

// For wrapping text in the alert radio labels/options
.alert-md .alert-radio-label {
  white-space: pre-wrap;
}
.alert-ios .alert-radio-label {
  white-space: pre-wrap;
}
.alert-wp .alert-radio-label {
  white-space: pre-wrap;
}

.doctor-checkin-popover-email .popover-content {
  width: 95%;
}

.toolbar-title {
  white-space: normal;
}

ion-toolbar[color="secondary"] {
  .toolbar-content {
    color: #fff !important;
  }
}

ion-toolbar[color="primary"] {
  * {
    // font-weight: bold;
    // color: #fff !important;
    font-size: 1.6rem;
  }
  // color: #fff !important;
  font-size: 1.6rem;
  color: $contrast-with-primary-text-color;
  background-color: $primary;
  .select-ios,
  .select-md,
  .select-icon .select-icon-inner {
    color: #fff;
  }
  .select-placeholder.select-text {
    font-weight: bold;
  }
  .bar-button-secondary-ios,
  .bar-button-default.bar-button-ios-secondary,
  .bar-button-clear-ios-secondary,
  .ion-button.secondary {
    color: $contrast-with-primary-text-color !important;
    font-weight: bold;
  }
}

.segment-md .segment-button,
.segment-ios .segment-button {
  color: $text-color;
  &.segment-activated,
  &.activated {
    color: $contrast-with-primary-text-color;
    background: $primary;
  }
}

ion-item {
  &.item-input .item-inner {
    border-bottom: 0.55px solid #c8c7cc !important;
  }
  &.item-input.input-has-focus .item-inner {
    border-bottom: 0.55px solid $primary !important; // border-width: 2px;
  }
}

ion-card.card-md {
  ion-list {
    padding-bottom: 0;
  }
}

.image-icon {
  height: 2em;
  &.large {
    height: 4em;
  }
  width: auto;
  text-align: center;
  margin: 0.5em auto;
  /* padding: 5px; */
}

.toolbar-ios,
.toolbar-md,
.toolbar-wp {
  padding: 0;
}

ion-toolbar + img {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

;
ion-list-header .full {
  max-width: 100% !important;
}

ion-menu[type=overlay] {
  opacity: 1;
}

a[disabled],
button[disabled],
[ion-button][disabled] {
  cursor: default;
  opacity: .2;
  pointer-events: none;
}

#iframe {
  display: none;
}

.platform-browser {
  #iframe {
    display: block;
  }
  #no-iframe {
    display: none;
  }
}

.swiper-pagination-bullet-active {
  background: $primary;
}

@media (min-width: 768px) {
  .ion-page {
    margin-left: 30%;
    width: 70%;
  }
  ion-menu {
    width: 30%;
    display: block;
  }
  .bar-button-menutoggle {
    display: none;
  }
  ion-menu ion-backdrop {
    display: none;
  }
  ion-content {
    border-left: none;
  }
  ion-menu[type=overlay] .menu-inner {
    -webkit-transform: translateX(0px) !important;
    transform: translateX(0px) !important;
    box-shadow: none;
    width: 100%;
  }
}

/*
 * Components Cards page style
 */

.card-background-page {
  ion-card {
    position: relative;
    text-align: center;
  }
  .card-title {
    position: absolute;
    top: 36%;
    font-size: 2.0em;
    width: 100%;
    font-weight: bold;
    color: #fff;
  }
  .card-subtitle {
    font-size: 1.0em;
    position: absolute;
    top: 52%;
    width: 100%;
    color: #fff;
  }
}

h1.as-header-icon {
  text-align: center;
}

h1.as-header-icon ion-icon {
  font-size: 6em;
}

/*
 * Components Grid page style
 */

.grid-page {
  ion-col {
    padding: 0;
  }
  ion-col div {
    background-color: #F9FAFB;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-align: center;
  }
}

/*
 * Components Icons page style
 */

.icons-page {
  ion-icon {
    font-size: 50px;
  }
  ion-row {
    height: 100%;
    flex-wrap: wrap;
  }
  ion-col {
    flex: 0 0 25%;
    max-width: 25%;
    text-align: center;
    padding: 10px 5px;
  }
}

/*
 * Components Avatar List page style
 */

.avatar-list-page {
  ion-note {
    font-size: 12px;
    align-self: flex-start;
    margin-top: 14px;
  }
}

.back-button-icon {
  color: $primary;
}

.list-header,
.tile.card {
  // background: $primary ;
  // color: #fff !important;
}

.tile.card-content {
  padding: 0;
}

.header-bg {
  background: $primary !important;
  color: #fff !important;
  .select-icon-inner,
  .select-placeholder,
  ion-label,
  ion-select {
    color: #fff !important;
  }
}

ion-list-header.color-secondary {
  background: $secondary !important;
  color: #fff !important;
}

.list-header-md,
.list-md-header {
  margin-bottom: 0;
}

.tile {
  .label {
    margin: 0;
  }
  .item,
  .item h1,
  .item h2,
  .label {
    // background:  $primary !important;
    // color: #fff !important;
  }
  .item h1 {
    font-size: 4.5rem;
    padding: 0;
  }
  .h2 {
    padding: 0 !important;
  }
}

.scroll-x.row {
  overflow-x: scroll;
  flex-wrap: nowrap;
}

h1 + h3 {
  margin-top: -15px;
}

::-webkit-scrollbar {
  width: 0;
  /* remove scrollbar space */
  background: transparent;
  /* optional: just make scrollbar invisible */
  display: none;
}

ion-col {
  min-width: 150px;
  padding: 0;
}

/*
.card-content-md{
	background:  $toolbar-background !important;

}
*/

ion-header img.title-image {
  max-height: 2em;
  width: auto;
}

.swiper-slide {
  overflow-y: scroll;
  display: block;
}

.quick-action.card {
  background: $secondary;
  color: #fff;
  margin-bottom: 2px;
}

.hello-title {
  width: 100%; //   height: 1000px;
  position: relative;
  overflow: hidden;
  /* Enable GPU Rendering */
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}

.blur {
  /* All the background image supports */
  transform: translate(0px, 0px, 0px);
  background-image: -webkit-linear-gradient(bottom left, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
  background-image: -moz-linear-gradient(bottom left, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
  background-image: -o-linear-gradient(bottom left, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
  background-image: linear-gradient(to top right, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
  position: absolute;
  width: 100%;
  height: 100%;
  /* blur filters */
  -webkit-filter: blur(20px);
  -o-filter: blur(20px);
  filter: blur(20px);
  /* positioning and removing edges */
  top: -70px;
  right: -70px;
  left: -70px;
  padding: 70px;
}

.blur:after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 1001;
  /* Setting the gradient. Adds depth, and glass like effect. */
  background-image: -webkit-linear-gradient(289deg, rgba(43, 40, 50, 0.8) 0%, rgba(43, 40, 50, 0.4) 46%, rgba(0, 0, 0, 0.05) 50%);
  background-image: -moz-linear-gradient(289deg, rgba(43, 40, 50, 0.8) 0%, rgba(43, 40, 50, 0.4) 46%, rgba(0, 0, 0, 0.05) 50%);
  background-image: -o-linear-gradient(289deg, rgba(43, 40, 50, 0.8) 0%, rgba(43, 40, 50, 0.4) 46%, rgba(0, 0, 0, 0.05) 50%);
  background-image: linear-gradient(-19deg, rgba(43, 40, 50, 0.8) 0%, rgba(43, 40, 50, 0.4) 46%, rgba(0, 0, 0, 0.05) 50%);
  /* Blur to add depth. High to create smooth transition */
  -webkit-filter: blur(70px);
  -o-filter: blur(70px);
  filter: blur(70px);
}

.ios ion-list > .item-wrapper:last-child .item,
.ios ion-list > .item:last-child,
.md ion-list > .item-wrapper:last-child .item,
.md ion-list > .item:last-child,
.wp ion-list > .item-wrapper:last-child .item,
.wp ion-list > .item:last-child {
  border-bottom: none;
}

.card {
  margin-bottom: 20px;
}

#map {
  width: 100%;
  bottom: 0px;
  top: 0px;
  display: block;
  height: auto;
  position: absolute !important;
}

@media (min-width: 768px) {
  ion-modal .ion-page {
    margin-left: 0;
    width: 100%;
  }
}

.swiper-pagination-progress .swiper-pagination-progressbar {
  background: #ed1c24;
}

.menu-inner {
  .toolbar-background {
    border: none !important;
  }
  button {
    padding-right: 30px;
    padding-left: 0px;
  }
  li,
  a,
  .label {
    padding-left: 16px;
  }
  .item-divider {
    font-weight: bold;
    padding-right: 30px;
    padding-left: 0px;
    .item-inner {
      text-transform: uppercase;
      border-bottom: 1px solid #c8c7cc;
    }
  }
}

.menu-inner .item-divider-md {
  border-bottom: 0px;

}

[font-bold] *, [font-bold], [font-bold] ion-label, page-checkin [font-bold] ion-label, page-checkin .radio-group [font-bold] ion-label {
  font-weight: bold !important;
}


/*iOS Burger Menu Bugfix
https://github.com/ionic-team/ionic/issues/13062 */
@media only screen and (max-width: 767px) {
  .toolbar-ios.statusbar-padding:first-child {
    padding-top: calc(0px + 4px);
    min-height: calc(44px + 0px);
  }

  .toolbar-ios.statusbar-padding:first-child ion-title {
    padding-top: 0px;
    height: calc(44px + 0px);
    min-height: calc(44px + 0px);
  }
}

.toolbar-title-ios {
  margin-bottom: -3px;
}

variables.scss:

// Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/v2/theming/
@import "ionic.globals";
// Shared Variables
// --------------------------------------------------
// To customize the look and feel of this app, you can override
// the Sass variables found in Ionic's source scss files.
// To view all the possible Ionic variables, see:
// http://ionicframework.com/docs/v2/theming/overriding-ionic-variables/

$linear-color-change: rgba(239, 123, 0, 0.54);
$linear-color2-change: rgba(239, 123, 0, 1);
$linear-color3-change: rgba(239, 125, 0, 1);

$contrast-with-primary-text-color: #ffffff;
$text-color: #5b5b5b;
$background-color: #f8f9fa;
$toolbar-background: #ffffff;
$primary: #EF7D00;
$secondary: #d0cdcd;
//$grey: #9d9e9e69;

$item-md-detail-push-show: true;
$item-wp-detail-push-show: true;
// Named Color Variables
// --------------------------------------------------
// Named colors makes it easy to reuse colors on various components.
// It's highly recommended to change the default colors
// to match your app's branding. Ionic uses a Sass map of
// colors so you can add, rename and remove colors as needed.
// The "primary" color is the only required color in the map.
$colors: ( primary: $primary, secondary: $secondary, danger: #f53d3d, light: #f4f4f4, dark: #222, corporate: ( base: #fecc36, contrast: #ffffff), favorite: #69BB7B, white: #FFFFFF, facebook: #3B5999, googleplus: #DD4C39, bgColor: #F7F7F7, text-color: $text-color);
$list-background-color: #fff;
// $toolbar-background: #E0B41A;
// App Theme
// --------------------------------------------------
// Ionic apps can have different themes applied, which can
// then be future customized. This import comes last
// so that the above variables are used and Ionic's
// default are overridden.
@import "ionic.theme.default";
// Ionicons
// --------------------------------------------------
// The premium icon font for Ionic. For more info, please see:
// http://ionicframework.com/docs/v2/ionicons/
$ionicons-font-path: "../assets/fonts";
@import "ionicons";
$card-ios-margin-bottom: 4px;
$card-ios-margin-left: 4px;
$card-ios-margin-right: 4px;
$card-ios-margin-top: 4px;
$card-md-margin-bottom: 4px;
$card-md-margin-left: 4px;
$card-md-margin-right: 4px;
$card-md-margin-top: 4px;
$card-wp-margin-bottom: 4px;
$card-wp-margin-left: 4px;
$card-wp-margin-right: 4px;
$card-wp-margin-top: 4px;
$progress-bar-color: #EF7D00;
$toolbar-ios-button-color: $text-color;
$alert-ios-button-text-color:$text-color;
$alert-md-button-text-color:$text-color;
$item-ios-detail-push-color: $primary;
$item-md-detail-push-color: $primary;
// $button-md-clear-text-color: $text-color;
// $button-ios-clear-text-color: $text-color;


$segment-button-ios-background-color-activated: 	$primary;
$segment-button-md-background-color-activated: 	$primary;
$segment-button-ios-text-color: $text-color;
$segment-button-md-text-color: $text-color;

/*
// Material Design Dark Theme
// ----------------------------------

$colors-md: copy-colors($colors) !default;


$text-md-color:                       $text-color !default;
$background-md-color:                 $background-color !default;
$subdued-text-md-color:               $subdued-text-color !default;

$font-family-md-base:                 "Roboto", "Helvetica Neue", sans-serif !default;
$font-size-md-base:                   $font-size-base !default;


// Material Design Outer content
// --------------------------------------------------
$outer-content-md-background-color:   $background-color !default;


// Material Design Toolbar
// --------------------------------------------------

$toolbar-md-background:               $toolbar-background !default;
$toolbar-md-border-color:             $toolbar-border-color !default;
$toolbar-md-text-color:               #fff !default;
$toolbar-md-active-color:             $toolbar-active-color !default;
$toolbar-md-inactive-color:           $toolbar-inactive-color !default;


// Material Design Tabs
// --------------------------------------------------

$tabs-md-background:                  $tabs-background !default;
$tabs-md-tab-color-inactive:          $tabs-tab-color-inactive !default;
$tabs-md-tab-color-active:            $tabs-tab-color-active !default;


// Material Design Card
// --------------------------------------------------

$card-md-header-color:                #ddd !default;
$card-md-title-text-color:            #fff !default;
$card-md-text-color:                  #ddd !default;


// Material Design List
// --------------------------------------------------

$list-md-text-color:                  $list-text-color !default;
$list-md-border-color:                #dedede !default;
$list-md-background-color:            $list-background-color !default;
$list-md-activated-background-color:  #d9d9d9 !default;


// Material Design Item
// --------------------------------------------------

$item-md-padding-top:                 13px !default;
$item-md-padding-right:               16px !default;
$item-md-padding-bottom:              13px !default;
$item-md-padding-left:                16px !default;
$item-md-padding-media-top:           9px !default;
$item-md-padding-media-bottom:        9px !default;
$item-md-padding-icon-top:            11px !default;
$item-md-padding-icon-bottom:         10px !default;
$item-md-divider-background:          #151515 !default;
$item-md-divider-color:               #f4f4f4 !default;


// Material Design Toggle
// ---------------------------------------------------
$toggle-md-handle-background-color-off: #f4f4f4 !default;


// Ripple Color
// --------------------------------------------------

@function ripple-background-color($button-color) {
  @return rgba(red($button-color), green($button-color), blue($button-color), .1);
}
*/


$button-md-box-shadow	:none;
$radio-md-color-on: 	#5b5b5b;
$radio-ios-color-on: 	#5b5b5b;
$checkbox-md-color-on: 	#5b5b5b;
$checkbox-ios-color-on: 	#5b5b5b;
$text-input-placeholder-color: #5b5b5b;
$select-md-placeholder-color: $contrast-with-primary-text-color;
$select-ios-placeholder-color: $contrast-with-primary-text-color;
$select-wp-placeholder-color: $contrast-with-primary-text-color;

$checkbox-ios-icon-checkmark-color: $contrast-with-primary-text-color;
$checkbox-md-icon-checkmark-color: $contrast-with-primary-text-color;
$checkbox-wp-icon-checkmark-color: $contrast-with-primary-text-color;

Posts: 1

Participants: 1

Read full topic

Href target _blank not working inner html


Could not resolve all dependencies for configuration ':_debugApk'

$
0
0

@alexmpc wrote:

So when i try the command “ionic cordova build android” , i get this error:

BUILD FAILED in 3s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

** What went wrong:*
A problem occurred configuring root project ‘android’.
> Could not resolve all dependencies for configuration ‘:_debugApk’.

  • A problem occurred configuring project ‘:CordovaLib’.*

  •  > No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android*
    

** Try:*
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

** Get more help at https://help.gradle.org*

I´ve seen that there aren´t much posts about this error.

Posts: 1

Participants: 1

Read full topic

Ionic 4 empty back button subscription goes back

$
0
0

@brenden wrote:

I have an empty back button subscription. I would expect that it wouldn’t do anything, but oddly enough it is navigating back. If I comment out the line, the back button goes back to not doing anything.

this.customBackActionSubscription = this.platform.backButton.subscribe(async (data) => {

    });

Posts: 1

Participants: 1

Read full topic

TypeError: __webpack_require__.i(...) is not a function at Firebase, FcmProvider

$
0
0

@Weihang wrote:

I recently added Firebase dependency to my ionic/cordova app
followed this guide:


This error happens everytime when I try to run ionic serve or build on iOS/android platform

"@angular/cli": "^7.3.6",
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@angular/fire": "^5.1.2",
"cordova-android": "^6.4.0",
"cordova-browser": "~5.0.4",
"cordova-ios": "4.5.5",
"ionic-angular": "3.5.0",
"@ionic-native/firebase": "^5.0.0",
"cordova-plugin-firebase": "^2.0.5",
"firebase": "^4.6.0",
"angularfire2": "^5.0.0-rc.3",
"@ionic-native/fcm": "^5.3.0",
"cordova-plugin-fcm-with-dependecy-updated": "^2.4.0",

Any help would be appreciated, thank you ~

Posts: 1

Participants: 1

Read full topic

iOS emulation never gets past the splash screen

$
0
0

@nvahalik wrote:

Hasn’t been a problem in the past, but I’ve been trying to get the app working in the emulator and it gets stuck at the splash screen. App seems to work OK on the device.
The app has an initialize function which ought to hide the splash screen—that happens after the platform ready() event fires.
Have been watching through Xcode logging and I’m not seeing any errors, here.
Could it be related to something which requires the production certificates but doesn’t want to work with dev certificates?

Posts: 2

Participants: 1

Read full topic

Open file with {Ionic-App] - Feature

$
0
0

@Nsimoncini wrote:

Hi, I tried to search on old topics but I had no luck.

Let’s say I make an Image Viewer App with Ionic Framework, can I add the option “Open with…” to the images on my smartphone/tablet? If so, can i do it with both Android and iOS ? (I’m using Ionic 4)

It’s important for me, thanks everyone!
Have a nice day!

Posts: 1

Participants: 1

Read full topic

Video editing (drawings and audio replacement)?

$
0
0

@vovadudas wrote:

Is it possible to use Ionic for editing video ???
Under edit video I mean:

  • take original
  • make it slower/faster
  • draw shapes over the video (canvas functionality)
  • replace audio track by my voice audio
  • save edited video (with drawings and my voice instead of video audio)

If anyone can help with example that would be cool
Thanks

Posts: 1

Participants: 1

Read full topic

Ionic 4 type angular vs ionic-angular


How can I add emojis to a textarea using Ionic 4?

$
0
0

@superdave wrote:

I’m using Angular 7 and Ionic 4 (I’m new to Ionic) and I want to add emojis to a textarea element.
Any suggestions?
Thanks.
Dave

Posts: 1

Participants: 1

Read full topic

DevApp not showing on mobile on Ionic4 ( works on Ionic3 )

$
0
0

@maceks wrote:

Hello, if I create blank app on Ionic 3, run ionic serve -c and run DevApp app on iPhone, I automatically can select app ( automatically detected on network ). But if I create Ionic 4 and run ionic serve -c, that running app ( web server ) is not detected automatically on network. If I type adress manually Im able to connect, it is working properly. But it is annoying to write IP address everytime :frowning:

Posts: 1

Participants: 1

Read full topic

Using Pushy notification listener to increase badge number

$
0
0

@alvarofelipe1 wrote:

Hello.
I’ve been developing a push notifications for an Ionic 3 app in which i want to increase the badge number via badge plugin from native resources (@ionic-native/badge) when i receive a push notification.

While the app is in foreground works perfectly and increase the badge number correctly, but when i try to do the same while the app is in background or closed the listener apparently doesn’t works properly because it receive the notification and show it in the notifications of iOS/Android system but it doesn’t execute the code in the listener increasing the badge.

Pushy.setNotificationListener(function (data) {
          // Print notification payload data
          console.log('Received notification: ' + JSON.stringify(data));
          that.presentAlertNotification(data.message);
          // Increase badge
          that.badge.increase(1);
      });

So in conclusion my question is: Is it possible to execute that code inside the listener to increase the badge when the push arrives and the app is closed or in background?

PD: I saw a push plugin in the native plugins of ionic that is capable to do that, but my backend is all well developed in order to use pushy, so changing to Push from native should be my last option because i don’t want to use GMS from google. I also found onesignal offers a SDK for ionic but in their docs i didn’t found something that covers my needs.

Posts: 1

Participants: 1

Read full topic

Ionic4 - updating toast css not reflecting change

$
0
0

@gabbyCharles wrote:

I am attempting to update my toast css to produce a toast that is red, centered black text , and height of 10px.

I have the following css:

.toastCss {
        --height: 10px;	
        --color: #0000;
    }

and the following in my .ts file:

    this.dragulaService.removeModel('bag')
    .subscribe(({ item }) => {
      this.toastController.create({ 
            position: 'middle',
            message: 'Ops....',
            cssClass: 'toastCss',
            color: 'danger',
            duration: 2000
      }).then(toast => toast.present());
    });

The position and color of the toast displays correctly but cssClass is not being read.
Any thoughts on why this may be .
Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Unable to stop camera after bar code scan successfully

$
0
0

@nsc15 wrote:

I’m using @ionic-native/barcode-scanner/ngx plugin for scanning barcode. I’m unable to stop the camera after scanning the barcode. So let me know how to stop the camera after the successfull scan. Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Viewing all 49208 articles
Browse latest View live


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