Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70434 articles
Browse latest View live

Ionic 5 with Angular, Login and Home Page

$
0
0

@carlosflarosa wrote:

Hi everyone

I have a query that I would like to help me solve, I am using Ionic 5 in a new application, when I log in, with navigateByUrl from @ angular / router I navigate to the Home page, but if I press the back button I return to the login page.

What I can do??

At some point I thought about making the Home page on the root page, but it seems that this is not possible in version 5.

Thank you for your answers

Posts: 1

Participants: 1

Read full topic


ReferenceError: VuTotpSdk is not defined (Param not defined)

$
0
0

@panunez wrote:

Buenas Noches, estoy tienendo un error al ejecutar mi app Alguien me podria ayudar??. Tengo una funcion en un archivo .js y la exporto de la siguiente manera en mi archivo .ts

import * as VuTotpSdk from ‘…/…/…/assets/js/VuServer’;

declare const VuTotpSdk: any; //Declaracion de parametro

@Component({

selector: ‘app-agregar-nuevo’,

templateUrl: ‘./agregar-nuevo.page.html’,

styleUrls: [’./agregar-nuevo.page.scss’],

})

export class AgregarNuevoPage implements OnInit {

constructor( private http: HttpClient) {

}

ngOnInit() {

}

AgregarNuevo() {

VuTotpSdk.getEncryptedSeed(this.serverUrl, this.cupon, this.code, this.seedCallback);

}
}

Esta es la funcion que tengo definida en el archivo .js

(function (VuTotpSdk, $, undefined) {

/**

@param serverUrl

@param cupon

@param code

@param seedCallback

*/

VuTotpSdk.getEncryptedSeed = function(serverUrl, coupon, code, onSuccess, onFailure) {

var requestUrl = serverUrl + "/vuserver/activation.php?cupon=" + coupon;

requestUrl += (code != undefined && code != null && code != "") ? "&bank=" + code : "";

requestUrl += "&callback=?";

$.ajax({

  url: requestUrl,

  timeout: 20000,

  dataType: "json",

  success: function (data) {

    if (onFailure != undefined || onFailure != null) {

      if (data.indexOf("URL Incorrecta - contacte Soporte Security") >= 0) {

        onFailure("Código de Asociación incorrecto");

      } else {

        onSuccess(data[0]);

      }

    } else {

      onSuccess(data[0]);

    }

  },

  error: function (jqXHR, textStatus, errorThrown) {

    onFailure("Código de Asociación incorrecto");

  }

});

};

Posts: 2

Participants: 2

Read full topic

UIWebview - Apple Deprecated API usage. Apple store warning message UIWebview API deprecation

$
0
0

@Alexandar wrote:

Hi All,

As mentioned here https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation, I have updated cordova-ios to 5.1.1 latest version and updated all my Cordova plugins. Still, I got the same warning message from the Apple side. Do you have any idea or I have missed anything to update or which plugin throws that deprecation message?

updated plugins list

call-number 0.0.2 “Cordova Call Number Plugin”
cordova-android-play-services-gradle-release 4.0.0 “cordova-android-play-services-gradle-release”
cordova-plugin-app-version 0.1.9 “AppVersion”
cordova-plugin-background-mode 0.7.3 “BackgroundMode”
cordova-plugin-badge 0.8.8 “Badge”
cordova-plugin-camera 4.1.0 “Camera”
cordova-plugin-device 2.0.3 “Device”
cordova-plugin-email-composer 0.9.2 “EmailComposer”
cordova-plugin-file 6.0.2 “File”
cordova-plugin-file-opener2 2.2.1 “File Opener2”
cordova-plugin-file-transfer 1.7.1 “File Transfer”
cordova-plugin-firebase 2.0.5 “Google Firebase Plugin”
cordova-plugin-globalization 1.11.0 “Globalization”
cordova-plugin-inappbrowser 3.2.0 “InAppBrowser”
cordova-plugin-ionic 5.4.6 “cordova-plugin-ionic”
cordova-plugin-ionic-keyboard 2.1.3 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 4.1.3 “cordova-plugin-ionic-webview”
cordova-plugin-local-notification 0.9.0-beta.2 “LocalNotification”
cordova-plugin-mauron85-background-geolocation 3.0.3 “CDVBackgroundGeolocation”
cordova-plugin-network-information 2.0.2 “Network Information”
cordova-plugin-safariviewcontroller 1.6.0 “SafariViewController”
cordova-plugin-splashscreen 5.0.3 “Splashscreen”
cordova-plugin-statusbar 2.4.3 “StatusBar”
cordova-plugin-touch-id 3.3.1 “Touch ID”
cordova-plugin-whitelist 1.3.4 “Whitelist”
cordova-sqlite-storage 3.4.1 “Cordova sqlite storage plugin - cordova-sqlite-storage plugin version”

config.xml

    <access origin="http://localhost:8080/*" />
    <allow-navigation href="http://localhost:8080/*" />
    <feature name="CDVWKWebViewEngine">
        <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>
    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
    <preference name="WKWebViewOnly" value="true" />

Ionic Info:

Ionic:

Ionic CLI : 6.3.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 4.11.4
@angular-devkit/build-angular : 0.803.21
@angular-devkit/schematics : 8.3.0
@angular/cli : 8.3.0
@ionic/angular-toolkit : 2.0.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, ios 5.1.0
Cordova Plugins : cordova-plugin-ionic 5.4.6, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.3, (and 20 other plugins)

Utility:

cordova-res (update available: 0.11.0) : 0.6.0
native-run (update available: 0.3.0) : 0.2.8

System:

Android SDK Tools : 26.1.1 (/Users/sys-user/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v10.16.1 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Catalina
Xcode : Xcode 11.2.1 Build version 11B500

Posts: 1

Participants: 1

Read full topic

Add skype link on app ionic 4

Cannot read property 'toDataURL' of undefined SignaturePad

$
0
0

@anateixeira wrote:

I don’t know what I am doing wrong but I can’t figure out what’s wrong.

I am trying to get a basic64 img but the signaturepad is undefined lol. Why? I think I am doing everything right. I get the error

Cannot read property 'toDataURL' of undefined

The signature pad appears but when I try to get the image it’s undefined…

Here’s my code:

TS

`
import { Component, ViewChild } from '@angular/core';
import { SignaturePad } from 'angular2-signaturepad/signature-pad';
import { Platform } from '@ionic/angular';
import { Router } from '@angular/router';

@Component({
  selector: 'app-signature-pad',
  templateUrl: './signature-pad.page.html',
  styleUrls: ['./signature-pad.page.scss'],
})
export class SignaturePadPage {

  @ViewChild(SignaturePad) signaturePad: SignaturePad;

  signature: string = '';
  isDrawing = false;
  width: any;
  height: any;

  private signaturePadOptions: object = {
    minWidth: 2,
    canvasHeight: window.innerHeight / 3,
    canvasWidth: window.innerWidth / 1.2,
    backgroundColor: '#ffffff',
    penColor: '#000000',
  };



  constructor(platform: Platform, private router: Router) {
    platform.ready().then((readySource) => {
      this.width = platform.width();
      this.height = platform.height();
    });
  }


  canvasResize() {
    const canvas = document.querySelector('canvas');
    this.signaturePad.set('minWidth', 1);
    this.signaturePad.set('canvasWidth', canvas.offsetWidth);
    this.signaturePad.set('canvasHeigth', canvas.offsetHeight);
  }


  drawComplete() {
    this.isDrawing = false;
  }

  drawStart() {
    this.isDrawing = true;
  }

  goToPage() {
    var sig_object: any = {'desc': history.state.data.desc_sigpad,
                            'signaturepad': this.signature};
    this.router.navigate(['/pg'], { state: { data: { sigpad: sig_object}}});

  }

  savePad() {

    this.signature = this.signaturePad.toDataURL();


    this.goToPage();

    this.signaturePad.clear();
  }
  clearPad() {
    this.signaturePad.clear();
  }
}

HTML

<ion-header>
  <ion-toolbar color="primary">
    <ion-buttons slot="start" defaultHref="/pg">
      <ion-back-button></ion-back-button>
    </ion-buttons>
    <ion-title style="text-align: center">Signature</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
  <div style="margin-top: 20%; padding: 0">
    <ion-grid lines="none" style="margin-top: 50px">
      <ion-row [ngClass]="{'drawing-active': isDrawing}">
        <ion-col></ion-col>
        <ion-col style="border: 1px solid #000000; padding: 5px">
          <signature-pad [options]="signaturePadOptions" (onBeginEvent)="drawStart()" (onEndEvent)="drawComplete()"></signature-pad>
        </ion-col>
        <ion-col></ion-col>
      </ion-row>
      <br>
      <ion-row>
        <ion-col></ion-col>
        <ion-col>
          <ion-button size="large" color="danger" expand="full" (click)="clearPad()">Clear</ion-button>
        </ion-col>
        <ion-col>
          <ion-button size="large" style="color: secondary" expand="full" (click)="savePad()">Save</ion-button>
        </ion-col>
        <ion-col></ion-col>
      </ion-row>
    </ion-grid>
  </div>
</ion-content>

I would be very very thankful. Please help me.

Thank you

Posts: 1

Participants: 1

Read full topic

Ionic5 React – Hide Header on scroll

$
0
0

@florianbepunkt wrote:

I read through a lot of posts regarding hiding a header on scroll, but they all deal with angular and Ionic 4. So I tried to implement this on my own.

For good performance I want to use translateY to move the header up on scroll. But the content below is not following, leaving a gap at the top.

Any idea how to solve this, so that the content moves up, when I move the header up?

Posts: 1

Participants: 1

Read full topic

Ionic 4 capacitor upload image to server

$
0
0

@Pratikjaiswa15 wrote:

I have used the capacitor plugin to let user capture images and then we can store it in our server(spring).

async takePicture() {
    const image = await Plugins.Camera.getPhoto({
      quality: 100,
      allowEditing: false,
      resultType: CameraResultType.DataUrl,
      source: CameraSource.Prompt, 
    });


    this.photo = this.sanitizer.bypassSecurityTrustResourceUrl(image && (image.dataUrl));

    console.log(this.photo)
    console.log(image)

  }

Now , I want to store image with some other data like name, etc.

servie.ts

httpOptions2 = {
    headers: new HttpHeaders({ 'Content-Type': 'multipart/form-data' })
  };

addReport (user): Observable<any> {
    return this.http.post<any>(this.url , user,this.httpOptions2 )
  }

page.ts

let report = {
        address : this.address.value, // other data 
        image : this.photo,

      }
      console.log(report)

      this.reportService.addReport(report).subscribe(data =>{
        console.log(data)
      })

Input type at the server for the image is the file

I have set ‘Content-Type’: ‘multipart/form-data’.

But at the server-side image is not getting stored?

What am I doing wrong?

Thank you in advance

Posts: 1

Participants: 1

Read full topic

Displaying an array in html

$
0
0

@NthabyMogoboya wrote:

I get this error when i try to display in my html file.
Error: Error trying to diff ‘[object Object]’. Only arrays and iterables are allowed

service.ts

private _addProduct = “http://localhost:4000/viewMenu”;
getItems(){
return this.httpClient.get(this._addProduct);
}

page.ts

menuList = ;
ngOnInit() {
this.cartService.getItems().subscribe(data => {
console.log(data);
this.menuList = data;
console.log(this.menuList);
});

page.html

<ion-card *ngFor=“let p of menuList”>
{{p.item_name}}

{{p.item_price | currency:‘R’}}

Posts: 5

Participants: 2

Read full topic


Vertically align text ion grid

$
0
0

@skinnyA wrote:

Hello, I am trying to vertically allign some text but it seems impossible I do not know why

<ion-content padding>

  <ion-grid *ngFor="let dia of tiempo">
    <ion-row class="ion-justify-content-around">
      <ion-col *ngIf="dia.diaSemana == 'Wed'" >
        <div>
          Miércoles <img src="../../assets/images/uparrow16.png"/>
          {{dia.tempMaxima}}&nbsp;&nbsp;
          {{dia.tempMinima}}
        </div>
      </ion-col>
      
    </ion-row>
  </ion-grid>    

</ion-content>

This is my scss

.ion-justify-content-around {
    justify-content: space-around;

}

Basically, im trying to have on the left some text and on the middle and on the left some more text
I hope I explained myselft well
Thank you

Posts: 1

Participants: 1

Read full topic

Ion-tab-button selected bug when using variable in tab attribute

$
0
0

@zentodh wrote:

Hi this is my first post here. I’ve been trying to get the tabs working for some time now. I’ve got 4 routes:
/tab/notifications
/tab/guests
/tab/profile
/tab/event/:id <-- Now here is where the problem lies

When I click on this tab button, I do get redirected without any errors, but the problem is. The button is not highlighted as active/selected.

I have a feeling I’m doing something wrong but I can’t really figure out what. Any suggestions for a solution? Thanks for the replies in advance!

Posts: 1

Participants: 1

Read full topic

Ionic 4 chip in input

$
0
0

@samsuffi wrote:

Hi everyone,
How do I put ion-chip in a ion-input?
I wanted to make a chat bar like Discord with @everyone or #here.
image
But when I try to put html in the input, I can’t write in anymore…
In addition, I wanted to include the code syntax highlighting: I tried with ngx-highlightjs and ion-prism but it failed…
Like this:
image
Does someone have an idea how to do?

Posts: 1

Participants: 1

Read full topic

Getting data from Modal Controller

$
0
0

@sj9 wrote:

Hello
for getting data in opened modal in official documentation was written this example

async presentModal() {
  const modal = await this.modalController.create({
    component: ModalPage,
    componentProps: {
      'firstName': 'Douglas',
      'lastName': 'Adams',
      'middleInitial': 'N'
    }
  });
  return await modal.present();
}

To get the data passed into the componentProps, either set it as an @Input or access it via NavParams on the ModalPage:

export class ModalPage {

  // Data passed in by componentProps
  @Input() firstName: string;
  @Input() lastName: string;
  @Input() middleInitial: string;

  constructor(navParams: NavParams) {
    // componentProps can also be accessed at construction time using NavParams
    console.log(navParams.get('firstName'));
  }

}


BUT

I also can get data like this —

async presentModal() {
  const modal = await this.modalController.create({
    component: ModalPage,
    componentProps: {
      firstName: 'Douglas',
     
    }
  });
  return await modal.present();
}


and for getting data in Modal,   for example, the value of - firstName,   
  I can do it in ngOnInit    life hook

export class ModalPage {

public firstName : string
  constructor( ) {
      
  }
ngOnInit(){
console.log(this.firstName)  // output will be -  'Douglas'
}
}

So I want to know is this an error? or it is normal behavior for the modal controller???

Posts: 1

Participants: 1

Read full topic

Images from assets not displayed on IonImg

$
0
0

@unzip0 wrote:

Hi,
i’m trying to show an image from assets folder but is not working.

· Image path:
image

· IonImg src:

<IonImg class="logo" src="assets/images/rgm.jpg"/>

I’m newbie using Ionic, any help it’s welcome.
Thanks! :slight_smile:

Posts: 1

Participants: 1

Read full topic

Date translation

$
0
0

@sudhaHalemani wrote:

Hi i have this english date ‘MON MAR 30’, i need to translate into french and spanish when the app language
change to french r spanish.
here activity.label contains the english date(‘MON MAR 30’).
here actually translation is happening but output is wrong, its showing wrong day with date.
so is there any work arround which i can translate.

.html

{{ (activity.label == ‘Today’ ? ‘TODAY’ : ( activity.label | date: ‘EEE MMM d’: null : translate.currentLang) ) | translate}}

Posts: 1

Participants: 1

Read full topic

Navigation Controller replace Page

$
0
0

@lsantaniello wrote:

Hi all,
I have a particular need. I try to explain my problem with an example.

Page A => Page B => Page C

current:
Page A => Page B => Page C => Page D

need:
Page A => Page B => Page D

User complete a task on Page C and He will be redirected to Page D

On Page D I want to enable back button to Page B because Page C is a expired Page

I hope that the problem is clear

Thanks

Posts: 1

Participants: 1

Read full topic


Build failing on Mac 'stdout maxBuffer length exceeded'

$
0
0

@tofra wrote:

When I run cordova build ios --verbose I get the following error:

.......
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
stdout maxBuffer length exceeded
RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
    at Socket.onChildStdout (child_process.js:354:14)
    at Socket.emit (events.js:198:13)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:265:13)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:94:17)

Any idea what could be the cause? I removed the platforms directory already… I think it is happening since I upgraded XCode to 11.4 a couple of days ago.

I tested a new app, it is showing the same error

Ionic:

   Ionic CLI                     : 6.4.0 (/Users/***/.nvm/versions/node/v10.16.3/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 4.11.2
   @angular-devkit/build-angular : 0.803.12
   @angular-devkit/schematics    : 8.3.12
   @angular/cli                  : 8.3.12
   @ionic/angular-toolkit        : 2.1.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 16 other plugins)

Utility:

   cordova-res (update available: 0.11.0) : 0.8.1
   native-run (update available: 0.3.0)   : 0.2.9

System:

   Android SDK Tools : 26.1.1 (/Users/***/Library/Android/sdk)
   ios-deploy        : 1.9.4
   ios-sim           : 8.0.2
   NodeJS            : v10.16.3 (/Users/***/.nvm/versions/node/v10.16.3/bin/node)
   npm               : 6.14.3
   OS                : macOS Catalina
   Xcode             : Xcode 11.4 Build version 11E146

Posts: 2

Participants: 2

Read full topic

Build fastlane error

$
0
0

@itosoft wrote:

hi i got error while building android app
although web deploy build built good

[13:38:28]: ▸ Date: 2020-03-31T13:38:28.206Z - Hash: 4de72f047c47f47e26e4 - Time: 89399ms
[13:38:28]: $ ionic info
[13:38:31]: ▸ Ionic:
[13:38:31]: ▸ Ionic CLI                     : 6.2.2 (/usr/local/nvm/versions/node/v10.19.0/lib/node_modules/@ionic/cli)
[13:38:31]: ▸ Ionic Framework               : @ionic/angular 5.0.4
[13:38:31]: ▸ @angular-devkit/build-angular : 0.803.25
[13:38:31]: ▸ @angular-devkit/schematics    : 8.3.25
[13:38:31]: ▸ @angular/cli                  : 8.3.26
[13:38:31]: ▸ @ionic/angular-toolkit        : 2.2.0
[13:38:31]: ▸ Cordova:
[13:38:31]: ▸ Cordova CLI       : 9.0.3 (cordova-lib@9.0.2)
[13:38:31]: ▸ Cordova Platforms : none
[13:38:31]: ▸ Cordova Plugins   : no whitelisted plugins (0 plugins total)
[13:38:31]: ▸ Utility:
[13:38:31]: ▸ cordova-res : not installed
[13:38:31]: ▸ native-run  : not installed
[13:38:31]: ▸ System:
[13:38:31]: ▸ Android SDK Tools : 26.0.1 (/opt/android-sdk)
[13:38:31]: ▸ NodeJS            : v10.19.0 (/usr/local/nvm/versions/node/v10.19.0/bin/node)
[13:38:31]: ▸ npm               : 6.13.4
[13:38:31]: ▸ OS                : Linux 4.14
[13:38:31]: Generating app manifest...
[13:38:31]: $ ionic deploy manifest
[13:38:34]: ▸ [OK] Appflow Deploy manifest written to ./www/pro-manifest.json!
[13:38:34]: ----------------------------------
[13:38:34]: --- Step: add_cordova_to_index ---
[13:38:34]: ----------------------------------
[13:38:34]: codova.js missing in index.html: adding it
[13:38:34]: Writing new index.html
[13:38:34]: codova.js successfully added to index.html
[13:38:34]: -----------------------------------
[13:38:34]: --- Step: build_android_cordova ---
[13:38:34]: -----------------------------------
[13:38:34]: Adding Android platform...
[13:38:34]: $ cordova platform add android --no-fetch
[13:38:35]: ▸ You have been opted out of telemetry. To change this, run: cordova telemetry on.
[13:38:35]: ▸ Unhandled error. ('Parsing /builds/itosoftco/amnasnad-lts/config.xml failed')
[13:38:36]: Successfully added Android platform
[13:38:36]: Building android...
[13:38:36]: $ cordova build android
[13:38:37]: ▸ You have been opted out of telemetry. To change this, run: cordova telemetry on.
[13:38:37]: ▸ No platforms added to this project. Please use `cordova platform add <platform>`.
+----------------------------+-----------------------+
|                    Lane Context                    |
+----------------------------+-----------------------+
| DEFAULT_PLATFORM           | ios                   |
| PLATFORM_NAME              | android               |
| LANE_NAME                  | android package_build |
| PROJECT_WEB_DIR            | www                   |
| DOWNLOAD_CREDENTIAL_EXISTS | false                 |
+----------------------------+-----------------------+
[13:38:38]: Shell command exited with exit status 1 instead of 0.

You have been opted out of telemetry. To change this, run: cordova telemetry on.
No platforms added to this project. Please use `cordova platform add <platform>`.


+------+-----------------------+-------------+
|              fastlane summary              |
+------+-----------------------+-------------+
| Step | Action                | Time (in s) |
+------+-----------------------+-------------+
| 1    | default_platform      | 0           |
| 2    | build_summary         | 0           |
| 3    | add_git_credentials   | 0           |
| 4    | detect_native_type    | 0           |
| 5    | get_web_dir           | 0           |
| 6    | modify_config_xml     | 0           |
| 7    | download_credential   | 0           |
| 8    | build_pro_app         | 143         |
| 9    | add_cordova_to_index  | 0           |
| 💥   | build_android_cordova | 4           |
+------+-----------------------+-------------+

[13:38:38]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️  Possible to pass fastlane a .app or .zip?
    https://github.com/fastlane/fastlane/issues/330 [closed] 2 💬
    22 Sep 2016

➡️  s3 action failure after migrating to 1.3.0
    https://github.com/fastlane/fastlane/issues/318 [closed] 6 💬
    22 Sep 2016

/usr/local/bundle/gems/fastlane-2.143.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Shell command exited with exit status 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

You have been opted out of telemetry. To change this, run: cordova telemetry on.
No platforms added to this project. Please use `cordova platform add <platform>`.

	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
	from /builds/itosoftco/amnasnad-lts/fastlane/actions/safe_sh.rb:27:in `run'
	from /builds/itosoftco/amnasnad-lts/fastlane/actions/build_android_cordova.rb:23:in `run'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:131:in `block (2 levels) in parsing_binding'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/commands_generator.rb:349:in `run'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /usr/local/bundle/gems/fastlane-2.143.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
	from /usr/local/bundle/gems/fastlane-2.143.0/bin/fastlane:23:in `<top (required)>'
	from /usr/local/bundle/bin/fastlane:23:in `load'
	from /usr/local/bundle/bin/fastlane:23:in `<main>'
➡️  Trouble using fastlane / sigh on multi-user system
    https://github.com/fastlane/fastlane/issues/326 [closed] 13 💬
    08 Nov 2016

and 16111 more at: https://github.com/fastlane/fastlane/search?q=Shell%20command%20exited%20with%20exit%20status%201%20instead%20of%200.%0A%0AYou%20have%20been%20opted%20out%20of%20telemetry.%20To%20change%20this%2C%20run%3A%20cordova%20telemetry%20on.%0ANo%20platforms%20added%20to%20this%20project.%20Please%20use%20%60cordova%20platform%20add%20%3Cplatform%3E%60.%0A&type=Issues&utf8=✓

Running after script...
$ run "clean-up"
ERROR: Job failed: command terminated with exit code 1

Posts: 1

Participants: 1

Read full topic

Ionic 4 react enterAnimation

$
0
0

@divyanshugarg36 wrote:

Hi, I am making a IOS app using Ionic 4 and React. I want to animate my popover https://ionicframework.com/docs/api/popover using enterAnimation attribute, but couldn’t make it work. Can anyone please provide any example of popover animation with enterAnimation using Ionic 4 and React? There are some examples of the popover animation in Angular out there, but couldn’t find any React example.
Here’s my code

It would be helpfull if i can get a full example to use animations with this popover maybe update docs it will be much more helpfull

import React, { useState } from ‘react’;
import { IonPopover } from ‘@ionic/react’;

export const PopOver: React.FC = ({ children, showPopover, setShowPopover, popOverProps }) => {
const [popoverEvent, setPopoverEvent] = useState();
const button = children[0];
const content = children[1];
return (
<>
{React.cloneElement(button as React.ReactElement, {
onClick: (e: any) => {
e.persist();
setPopoverEvent(e);
setShowPopover(!showPopover);
}
})}
<IonPopover
mode=“ios”
animated
enterAnimation={(e: any) => { //what to do here? }}
isOpen={showPopover}
event={popoverEvent}
showBackdrop={false}
onDidDismiss={() => setShowPopover(false)}
{…popOverProps}
>
{content}

</>
);
};

PopOver.defaultProps = {
showPopover: false,
setShowPopover: () => { },
children: ,
popOverProps: {}
};

Posts: 1

Participants: 1

Read full topic

Sharing authentication cookies from browser to http api calls

$
0
0

@jlyle1 wrote:

We have a mobile app (android and ios) created using Ionic 5, Capacitor 1.5 and Angular 9

I am relatively new to using Javascript frameworks and need help understanding how to share cookies with different parts of our application.

If I launch an in app browser window for the user to authenticate against our CAS system - how can I make the authentication cookies from the browser window available to send with the http requests that we make to our API using the HttpClient from ‘@angular/common/http’?

I have tried setting the hostname in the capacitor.config.json file to the same domain as our CAS server and using “withCredentials” in the http api calls but it doesn’t seem to be including the authentication cookies.

I appreciate any suggestions.

Posts: 1

Participants: 1

Read full topic

How to remove lines from ion-divider / make header sticky?

$
0
0

@ashleylaverick1 wrote:

My ultimate aim is to have my header elements sticky and push one another off screen… but I am somewhat bodging it by nesting them within a ion-item-divider.

Thus, I am looking to remove the lines from the ion-divider, but cannot figure out how.

Unlike the standard ion-item there is no “lines” attribute.

Cheers

Posts: 1

Participants: 1

Read full topic

Viewing all 70434 articles
Browse latest View live


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