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

Image upload in Google Cloud Storage with REST Api

$
0
0

@anjukv wrote:

How to upload image to google cloud storage with Rest APi using OAuth ?
i have tried to fetching the access token uisng postman but its not working fine. Can any one suggest a better way.

Posts: 1

Participants: 1

Read full topic


Ionic Native Camera - Can't read from Native uri

$
0
0

@bandito wrote:

In Ionic 3 I used to use the normalizeURL method but that has been deprecated for Ionic 4. Any equivalents to resolve this issue? I tried the Angular DomSanitizer with no luck.

Posts: 2

Participants: 2

Read full topic

Onclick functionalities in button

Network issue in ionic 3

$
0
0

@hg8200 wrote:

I am using ionic 3, i install Network plugin to check Network connection

But when i am using its method it gives me error.

ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
    at Network.onConnect (index.js:62)
    at new HomePage (home.ts:13)
    at createClass (core.js:12483)
    at createDirectiveInstance (core.js:12326)
    at createViewNodes (core.js:13784)
    at createRootView (core.js:13673)
    at callWithDebugContext (core.js:15098)
    at Object.debugCreateRootView [as createRootView] (core.js:14381)
    at ComponentFactory_.create (core.js:11278)
    at ComponentFactoryBoundToModule.create (core.js:4030)
    at c (polyfills.js:3)
    at Object.reject (polyfills.js:3)
    at NavControllerBase._fireError (nav-controller-base.js:223)
    at NavControllerBase._failed (nav-controller-base.js:216)
    at nav-controller-base.js:263
    at t.invoke (polyfills.js:3)
    at Object.onInvoke (core.js:4760)
    at t.invoke (polyfills.js:3)
    at r.run (polyfills.js:3)
    at polyfills.js:3

and the code in ts file is-

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Network } from '@ionic-native/network/ngx';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {

  constructor(public navCtrl: NavController,private network: Network)
  {
    this.network.onConnect().subscribe(() => {
      console.log('network connected!');
      setTimeout(() =>
      {
        if (this.network.type === 'wifi')
        {
          console.log('we got a wifi connection, woohoo!');
        }
      }, 3000);
    });



  }

}

Posts: 1

Participants: 1

Read full topic

[ionic4] How to make multi-lingual and add arabic support

$
0
0

@pantarmj wrote:

How to make ionic mobile app multi-lingual ? How to add arabic support and make ui according to arabic culture (right to left)? Currently I am using angular 7 with ionic 4.

Help plzzz

Posts: 1

Participants: 1

Read full topic

How to use rating star in ionic 4?

$
0
0

@demokumar wrote:

I want to use rating star in my ionic 4 android app I try all ways which is worked in ionic 3 but in ionic 4 it’s not working gives errors

Posts: 2

Participants: 2

Read full topic

Ionic 3 Push Notification

$
0
0

@OliverPrimo wrote:

Hello Everyone,

Is there a complete tutorial or demo about implementing push notification in ionic 3 with mysql database on my server?

Thank you in advance :blush:

Posts: 1

Participants: 1

Read full topic

Page position resets on removing photos

$
0
0

@robertLee wrote:

Within my app I have a screen where images are displayed to the user in a scroll able list. The user has the option to remove photos from the list and thus splicing them from its underlying array. However when this is done on an iOS device the user is scrolled back to the top of the page whenever the array gets spliced making the interaction look rather clunky. On Android this isn’t an issue and the position of the view is maintained.

The array holds file paths to the users local file system from which the images are read and displayed within a regular img tag iterating over them using a ngFor.

Does anyone have an idea what might trigger this behavior and have a possible solution for this?

Thanks.

Posts: 1

Participants: 1

Read full topic


About Ionic List

$
0
0

@apeksha07 wrote:

I want to create ionic list having multiple text (like name ,address etc.) in each row please help me how it is possible
<ion-item *ngFor=“let groceries of groceries”>{{groceries}}

Posts: 1

Participants: 1

Read full topic

Google plus api is shut down there is any option for google login

Ionic 4 Modal Not Showing

$
0
0

@HeyItsMatty wrote:

Hi All,

So i’ve been looking at the docs for ionic 4 (specifically the modal controller) and they are exceptionally sparse compared to the ionic 3 docs.

Therefore on my ventures across google i’ve been looking for how to make a modal show, as it is not working in my project at all.

My steps so far:

Generate a new component:

ionic g component modules/qr-scanner-modal

Then i’ve imported said component into my app.module.ts file as follows:

@NgModule({
  declarations: [AppComponent, QrScannerModalComponent],
  entryComponents: [QrScannerModalComponent],
 ...
});

Then ran the modal code as normal: (on another page)

import { QrScannerModalComponent } from '../modals/qr-scanner-modal/qr-scanner-modal.component';
import { ModalController } from '@ionic/angular';
...
constructor(private modalController: ModalController) { }
...
async showModal() {
  const modal = await this.modalController.create({
    component: QrScannerModalComponent
  });
  return await modal.present();
}

I have also tried creating a page and putting it in the app.module.ts’s imports section and calling it that way, as well as moving the modal component from the app.module.ts and putting it into the module of the page i’m calling it from.

Most of the time there is no error, but upon inspection via the chrome dev tools, just before the tag when i press a button to load the modal the following code appears:

<ion-modal-controller class="hydrated"></ion-modal-controller>

Which to my understanding means that the modal controller is working as it should be, however my screen still shows no modal.

I’ve checked all my SASS files to make sure no CSS is interrupting the modal showing, but it doesn’t seem to be.

I’ve also noticed many other users having the same issue with no fixes really in sight. Has anyone found a solution to this problem?

Kind Regards,

Matt

Posts: 1

Participants: 1

Read full topic

Getting ion input value on typing

$
0
0

@MOHANTHANGARAJ wrote:

i want to get values on ion input and calculate the total based on the input value. the total must change if there is any change in the input values on the ion-input

<ion-input [(ngModel)]=“info.collectedamt3” name=“collectedamt”
type=“text” >
<ion-input [(ngModel)]=“info.collectedamt2” name=“collectedamt”
type=“text” >
<ion-input [(ngModel)]=“info.total” name=“collectedamt”
type=“text” >

i want to display total based on the 1st two input values

a little help is greatly needed

thankyou

Posts: 1

Participants: 1

Read full topic

How to create ionic 3 project.....not 4

$
0
0

@pdj wrote:

Hello :slight_smile:
I recently haven’t started new ionic project
and now I just try to start new ionic project so, I typed on cmd that ionic start newproject blank

but the result was quite different than before. I think it’s ionic 4…then, How can I build ionic3 project…not 4?

Posts: 3

Participants: 3

Read full topic

$interval function not keep calling after 5 or more minutes when the application is in background

$
0
0

@rushabh28 wrote:

My ionic app has a timer(a simple $interval that ticks every second) functionality which works fine when my app is in the foreground. But when the app goes to background $interval stops calling after 5 or more minutes.
Below is my code:

  $interval(updateTimer, 1000);

  function updateTimer(){
  }

In above lines, $interval calls ‘updateTimer’ function at every second when App is in foreground. But $interval stops calling ‘updateTimer’ function after 5 or more minutes when App goes to background.

Posts: 1

Participants: 1

Read full topic

GetAPI response in Postman but not in Ionic app browser view

$
0
0

@ApproTechnologies wrote:

THIS IS MY TS CODE :
import { Component } from ‘@angular/core’;
import { NavController } from ‘@ionic/angular’;
import { HttpClient } from ‘@angular/common/http’;
import { Observable } from ‘rxjs’;

@Component({
selector: ‘app-home’,
templateUrl: ‘home.page.html’,
styleUrls: [‘home.page.scss’],
})
export class HomePage {
public items: any;
constructor(public navctrl: NavController, public http: HttpClient) {
this. loadData();
}
loadData(){
let data: Observable;
data = this.http.get(‘https://jsonplaceholder.typicode.com/posts’);
data.subscribe(result => {

        this.items = result;
    })
}

    itemClick(itemid: number){

        alert(itemid);
    }

}

THIS IS MY HTML CODE:



Ionic Blank


<ion-list *ngFor=“let item of items”>

   <ion-item>

       {{item.Id}}
       {{item.title}}
       
   </ion-item>
![2|690x367](upload://oxkez56MPLjchRCv7KMlBlhTzty.png)

Posts: 1

Participants: 1

Read full topic


Downloading file on iOS times out after 1 minute

$
0
0

@ltivig wrote:

Hi guys,

I’m downloading a pre-populated database using file transfer plugin.
The call takes about 3, 4 minutes to complete and it works fine on android but it times out after 1 minute on iOS an throws File Transfer Error: The request timed out…
Do you know if there’s a default timeout on iOS and where to change this value?

Many thanks

Posts: 1

Participants: 1

Read full topic

Ion-select-option not updating

$
0
0

@anandvardhan1991 wrote:

I have two drop downs. Both using ion-select-option to show the list.
HTML Part:

<form [formGroup]="sampleFormGroup">
      
        <ion-row class="form-group">
            <ion-col>
                listToBeUpdated:
            </ion-col>
            <ion-col>
              <ion-select class="form-control myCustomSelect" formControlName="listToBeUpdated" *ngIf="sampleList">
                <ion-select-option *ngFor="let sampleListItem of sampleList" [value]="sampleListItem">{{sampleListItem}}</ion-select-option>
              </ion-select>
            </ion-col>
          </ion-row>


          <ion-row class="form-group">
              <ion-col>
                  listOnWhichItDepends:
              </ion-col>
              <ion-col>
                <ion-select interface="popover" class="form-control myCustomSelect" formControlName="listOnWhichItDepends">
                  <ion-select-option *ngFor="let dummyListItem of dummyList" [value]="dummyListItem">{{dummyListItem}}</ion-select-option>
                </ion-select>
              </ion-col>
            </ion-row>

    </form>

Component Part:

sampleFormGroup: FormGroup;
  sampleList: Array<number>;
  dummyList: Array<number>;
  constructor(private navCtrl: NavController, private fb: FormBuilder) {}
  ngOnInit() {
    this.sampleList = new Array<number>();
    this.dummyList = new Array<number>(10, 20, 30, 40);
    for(let i = 0 ; i < 10 ; i++){
      this.sampleList.push(i);
    }
    
    this.sampleFormGroup = this.fb.group({
      listToBeUpdated: [this.sampleList[0], [Validators.required]],
      listOnWhichItDepends: [this.dummyList[0], [Validators.required]]
    });
    this.formControlUpdated();
  }

formControlUpdated() {
    this.sampleFormGroup.controls['listOnWhichItDepends'].valueChanges.subscribe(listOnWhichItDependsUpdated => {
      this.sampleList = new Array<number>();
      for (let i = 0 ; i < listOnWhichItDependsUpdated ; i++) {
        this.sampleList.push(i);
      }
      this.setListToBeUpdated = this.sampleList;
    });
  }

Expected Behavior: if “listOnWhichItDepends” changes the list shown on UI “listToBeUpdated” should be updated.

Encountered Behavior with Ionic 4 : Selected “listOnWhichItDepends” to be 10. The “sampleList” should show only 10 on the UI as list. But it now showing the previous list and not updating when the array updates.

On Ionic 3 (ion-options) it is working fine. But giving issue when ion-select-option is used.
Please have a look into this issue.
Thanks in Advance.

Posts: 1

Participants: 1

Read full topic

IONIC geolocation run slowly in Android

$
0
0

@phongbn96 wrote:

I am using ionic/geolocation. It works well on web and IOS, but in Android it takes a very long position, takes about 10 seconds
Please help me !!

Posts: 1

Participants: 1

Read full topic

Transferring large buffer between native and JS is too slow

$
0
0

@schngrg wrote:

Trying to send 54MB text data between native and JS (using cordova plugin) takes around 3 seconds on iPhone6. And it takes around 5 seconds to send same 54 MB data back from JS to Native. This is with wkwebview.

Has anyone tried transferring large amount of data between Native and WebView? Any ideas on why its so slow and what else can be tried that can be faster?

I was hoping it shouldn’t take more than 50-100 ms just to copy over a buffer, 3-5 seconds is way too slow to be usable. My guess is that it could be due to evaluateJavaScript trying to ‘compile’ the 54 MB string, even though its all in “quotes” in a JSON object. It is even more surprising why didReceiveScriptMessage would take even longer.

Any clues, suggestions, ideas etc will really help - How to transfer 100 MB+ data super fast between native and JS layers?

Posts: 1

Participants: 1

Read full topic

Android Build keeps failing "Could not resolve all files for configuration ':app:releaseCompileClasspath'"

$
0
0

@semgovaert wrote:

This is in my Ionic Pro console when it starts to fail:

[14:34:15]: ▸ > Task :app:preReleaseBuild FAILED
[14:34:15]: ▸ FAILURE: Build failed with an exception.
[14:34:15]: ▸ * What went wrong:
[14:34:15]: ▸ Could not resolve all files for configuration ':app:releaseCompileClasspath'.
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-tagmanager:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-base:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth-interop:16.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid-interop:16.0.1
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-basement:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-flags:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-tasks:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-messaging:17.4.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-config:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth-interop:16.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-common:16.0.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-basement:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-messaging:17.4.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-config:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth-interop:16.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-common:16.0.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector-impl:17.0.5
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector:17.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-abt:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid-interop:16.0.1
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-clearcut:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-phenotype:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-measurement-api:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector-impl:17.0.5
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-measurement-base:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector-impl:17.0.5
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-stats:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-ads-identifier:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ * Try:
[14:34:15]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[14:34:15]: ▸ * Get more help at https://help.gradle.org
[14:34:15]: ▸ BUILD FAILED in 40s
[14:34:15]: ▸ 3 actionable tasks: 3 executed
[14:34:15]: ▸ (node:1175) UnhandledPromiseRejectionWarning: Error: /builds/brandworksbe/hi5-app-v2/platforms/android/gradlew: Command failed with exit code 1 Error output:
[14:34:15]: ▸ FAILURE: Build failed with an exception.
[14:34:15]: ▸ * What went wrong:
[14:34:15]: ▸ Could not resolve all files for configuration ':app:releaseCompileClasspath'.
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-tagmanager:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-base:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth-interop:16.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid-interop:16.0.1
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-basement:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-flags:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-tasks:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth:16.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-messaging:17.4.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-config:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth-interop:16.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-common:16.0.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-basement:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-messaging:17.4.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-config:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-auth-interop:16.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-common:16.0.3
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector-impl:17.0.5
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector:17.0.1
[14:34:15]: ▸ project :app > com.google.firebase:firebase-abt:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid-interop:16.0.1
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-clearcut:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-phenotype:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-perf:16.2.3
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-measurement-api:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector-impl:17.0.5
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-measurement-base:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-measurement-connector-impl:17.0.5
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-stats:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics:16.3.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-iid:17.1.0
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ > Could not find com.google.android.gms:play-services-ads-identifier:17.0.4.
[14:34:15]: ▸ Required by:
[14:34:15]: ▸ project :app > com.google.firebase:firebase-analytics-impl:16.3.0
[14:34:15]: ▸ * Try:
[14:34:15]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[14:34:15]: ▸ * Get more help at https://help.gradle.org
[14:34:15]: ▸ BUILD FAILED in 40s
[14:34:15]: ▸ at ChildProcess.whenDone (/builds/brandworksbe/hi5-app-v2/node_modules/cordova-common/src/superspawn.js:125:23)
[14:34:15]: ▸ at emitTwo (events.js:126:13)
[14:34:15]: ▸ at ChildProcess.emit (events.js:214:7)
[14:34:15]: ▸ at maybeClose (internal/child_process.js:915:16)
[14:34:15]: ▸ at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
[14:34:15]: ▸ (node:1175) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[14:34:15]: ▸ (node:1175) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[14:34:15]: ------------------------
[14:34:15]: --- Step: upload_apk ---
[14:34:15]: ------------------------
[14:34:15]: ▸ The user-provided path platforms/android/build/outputs/apk/release/android-release.apk does not exist.
+----------------------------+--------------------------------------------------+
|                                 Lane Context                                  |
+----------------------------+--------------------------------------------------+
| DEFAULT_PLATFORM           | ios                                              |
| PLATFORM_NAME              | android                                          |
| LANE_NAME                  | android package_build                            |
| DOWNLOAD_CREDENTIAL_EXISTS | true                                             |
| DOWNLOAD_CREDENTIAL_PATH   | /builds/brandworksbe/hi5-app-v2/android.keystore |
| DOWNLOAD_CREDENTIAL_ALIAS  | deploy-yt-android                                |
+----------------------------+--------------------------------------------------+
[14:34:15]: Shell command exited with exit status 255 instead of 0.

The user-provided path platforms/android/build/outputs/apk/release/android-release.apk does not exist.


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

[14:34:15]: fastlane finished with errors
/usr/local/bin/fastlane: [!] Shell command exited with exit status 255 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

The user-provided path platforms/android/build/outputs/apk/release/android-release.apk does not exist.

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

I’ve tried numerous ‘solutions’ found online, but none worked so far. What am I doing wrong?
I think the Firebase plugin is causing the fail, because when I removed it and tried to build locally for testing, it succeeded.

Note: I cannot change any gradle files because I must use Ionic Pro (the hot/live deploy feature is necessary for my client).

Posts: 1

Participants: 1

Read full topic

Viewing all 70440 articles
Browse latest View live


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