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

How to use Background Geolocation and BackgroundMode in ionic 3

$
0
0

@nadimnakade wrote:

Hi,

BackgroundMode is working but BackgroundGeolocation is not working any help or example will help me in my project thanks in advance

Posts: 1

Participants: 1

Read full topic


How to close side menu if "menuClose" property does not do it?

$
0
0

@geo3433 wrote:

I searched for similar topics on the forum but no working answer found. It may be the previous versions of ionic.

Posts: 1

Participants: 1

Read full topic

AdmobFree doesn't start

$
0
0

@nunoprolo wrote:

Hello
I installed admob in my application and set it up like this in the Ionic documentation (https://ionicframework.com/docs/native/admob-free)
When the application starts the ad is not loaded.
I connected the smartphone to the PC and debugged through logcat, and detected this error:

loadUrl (javascript: cordova.fireDocumentEvent (‘admob.banner.events.LOAD_FAIL’, {“error”: 1, “reason”: “Invalid request”, “adType”: “banner”}); )

I found nothing regarding this error.
Can anyone help?
My admob setup code is this:

let bannerConfig: AdMobFreeBannerConfig = {
        isTesting: true, // Remove in production
        autoShow: true,
        id: "..."
    };
    this.admobFree.banner.config(bannerConfig);

    this.admobFree.banner.prepare().then(() => {
         this.admobFree.banner.show();
    }).catch(e => alert(e));

Thanks

Posts: 1

Participants: 1

Read full topic

IOS version icon

$
0
0

@OmniaAyman94 wrote:

Hi all I have a problem in ionic app icon in IOS devices it looks with black icon while it works with the correct icon in android version and I generated resources for IOS successfully also I searched for this black icon in resources file to know from where it comes but i didn’t find it… Could any one help please
Note: I am fresh in using Ionic

Posts: 1

Participants: 1

Read full topic

After adding “cordova-plugin-advanced-http”, “ionic cordova run android” starts giving error

$
0
0

@HafizZubair wrote:

ionic cordova run/build android works fine until I added the plugin cordova-plugin-advanced-http , the error stated as follows:

An unhandled exception occurred: D:\Projects\MyApp\myAppTest\www\plugins\cordova-plugin-advanced-http\www\helpers.js: Unexpected reserved word ‘interface’ (9:6)

   7 |   var validResponseTypes = ['text','arraybuffer', 'blob'];
   8 | 
>  9 |   var interface = {
     |       ^
  10 |     b64EncodeUnicode: b64EncodeUnicode,
  11 |     checkSerializer: checkSerializer,
  12 |     checkSSLCertMode: checkSSLCertMode,

The log file looks as under:

at Parser.raise (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:6325:17) at Parser.checkReservedWord (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:9556:12) at Parser.parseIdentifierName (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:9525:12) at Parser.parseIdentifier (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:9499:23) at Parser.parseBindingAtom (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:7931:17) at Parser.parseVarId (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:10501:20) at Parser.parseVar (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:10477:12) at Parser.parseVarStatement (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:10299:10) at Parser.parseStatementContent (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:9896:21) at Parser.parseStatement (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:9829:17) at Parser.parseBlockOrModuleBlockBody (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:10405:25) at Parser.parseBlockBody (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:10392:10) at Parser.parseBlock (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:10376:10) at Parser.parseFunctionBody (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:9424:24) at Parser.parseFunctionBodyAndFinish (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:9394:10) at withTopicForbiddingContext (D:\Projects\MyApp\myAppTest\node_modules@babel\parser\lib\index.js:10535:12)

I have seen the helper.js file under the specified location, it actually contains the word interface that is causing the problem as interface is the reserved word.

I have tried all the things that includes deleting node_modules and reinstalling them, before running the build command I have deleted plugins and platforms folders, but none of these worked for me.

As soon as I remove the cordova-plugin-advanced-http plugin, ionic cordova run/build starts building the project correctly

Posts: 1

Participants: 1

Read full topic

Build Error android

Make Android and iOS ionic app to open an already published website

$
0
0

@pbhatia wrote:

I have a website developed in AngularJS, I do not have the time or budget for mobile app development. I want to make use of the Ionic framework to make an app for Android and iOS that will simply open my website in it.

Can this be achieved? If yes, please guide me.
Thanks

Posts: 1

Participants: 1

Read full topic

Ionic routing with PROPS to tabs - not working?

$
0
0

@JimGale wrote:

Ionic 4.8.0 w/ Stencil 1.3.0 in case that matters.

          <ion-route id='ion-route2' component="app-tabs">
            <ion-route url="/:country/:state/:city" component="tab-home" />
            <ion-route url="/:city" component="tab-home" />
            <ion-route url="/" component="tab-home" />
            <ion-route url="/statuses" component="tab-alerts" />
            <ion-route url="/statuses/:country/:state/:city" component="tab-alerts" />
...

Routing navs through tabs, but props are completely lost (using @Props). They don’t appear in app-tabs, in tab-home, or in page-home (which the tab component points to and moves to successfully). It feels like I have to capture the IonRouteDidChange event and re-implement the whole parsing in order to capture the props.

Has anyone solved this, or even used this?

Posts: 1

Participants: 1

Read full topic


Ionic 4 Vs Code Attach to emulator all breakspoints unverified Windows/Ubuntu

$
0
0

@frischka wrote:

Hello,

first some Informations about the system:

Ionic version:
Ionic:

Ionic CLI : 5.2.6 (C:\Users*****\AppData\Roaming\nvm\v10.16.3\node_modules\ionic)
Ionic Framework : @ionic/angular 4.8.0
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.0.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 4 other plugins)

Utility:

cordova-res : 0.6.0
native-run : 0.2.8

System:

Android SDK Tools : 26.1.1 (C:\Users*****\AppData\Local\Android\Sdk)
NodeJS : v10.16.3 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Steps to reproduce:
ionic start myApp tabs
Start emulator
ionic cordova run android
Start debugging

My launch.json

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
“version”: “0.2.0”,
“configurations”: [
{
“name”: “Run Android on device”,
“type”: “cordova”,
“request”: “launch”,
“platform”: “android”,
“target”: “device”,
“port”: 9222,
“sourceMaps”: true,
“cwd”: “{workspaceFolder}", "ionicLiveReload": false }, { "name": "Run iOS on device", "type": "cordova", "request": "launch", "platform": "ios", "target": "device", "port": 9220, "sourceMaps": true, "cwd": "{workspaceFolder}”,
“ionicLiveReload”: false
},
{
“name”: “Attach to running android on device”,
“type”: “cordova”,
“request”: “attach”,
“platform”: “android”,
“target”: “device”,
“port”: 9222,
“sourceMaps”: true,
“cwd”: “{workspaceFolder}" }, { "name": "Attach to running iOS on device", "type": "cordova", "request": "attach", "platform": "ios", "target": "device", "port": 9220, "sourceMaps": true, "cwd": "{workspaceFolder}”
},
{
“name”: “Run Android on emulator”,
“type”: “cordova”,
“request”: “launch”,
“platform”: “android”,
“target”: “emulator”,
“port”: 9222,
“sourceMaps”: true,
“cwd”: “{workspaceFolder}", "ionicLiveReload": false }, { "name": "Attach to running android on emulator", "type": "cordova", "request": "attach", "platform": "android", "target": "emulator", "port": 9222, "sourceMaps": true, "cwd": "{workspaceFolder}/src”
},
{
“name”: “Serve to the browser (ionic serve)”,
“type”: “cordova”,
“request”: “launch”,
“platform”: “serve”,
“cwd”: “{workspaceFolder}", "devServerAddress": "localhost", "sourceMaps": true, "ionicLiveReload": true }, { "name": "Simulate Android in browser", "type": "cordova", "request": "launch", "platform": "android", "target": "chrome", "simulatePort": 8000, "livereload": true, "sourceMaps": true, "cwd": "{workspaceFolder}”
},
{
“name”: “Simulate iOS in browser”,
“type”: “cordova”,
“request”: “launch”,
“platform”: “ios”,
“target”: “chrome”,
“simulatePort”: 8000,
“livereload”: true,
“sourceMaps”: true,
“cwd”: “{workspaceFolder}" }, { "name": "Run Browser", "type": "cordova", "request": "launch", "platform": "browser", "target": "chrome", "simulatePort": 8000, "livereload": true, "sourceMaps": true, "cwd": "{workspaceFolder}”
}
]
}

Vs Code Version:
1.37.1

Cordova Tools Version:
1.8.5

The Problem now is:

It’s not possible for me, to debug in Vs Code anymore.
I can attach to the emulator, but the breakpoints are all unveryfied. I have the same behaviour in Windows 10 and in Ubuntu 18.04.
With Ionic 3 I hadn’t these problems.

I found out, that ionic 4 doesn`t use app scripts anymore. So the sourcemap files are not in the .sourcemaps folder in the root now, but in the www folder.

I tried

“cwd”: “${workspaceFolder}/src”

or

“cwd”: “{workspaceFolder}/www" in { "name": "Attach to running android on emulator", "type": "cordova", "request": "attach", "platform": "android", "target": "emulator", "port": 9222, "sourceMaps": true, "cwd": "{workspaceFolder}”
},

but that didn`t work, either.

Can somebody help me here please? What can I do to male the breakpoints verified?
Thanks for your help.

David

Posts: 1

Participants: 1

Read full topic

Angular-l10n library or i18n-behavior for Ionic 4 Web Components?

$
0
0

@asterixzzz wrote:

I need to internationalize my PWA built with Ionic 4 web components using Stencil. Basically have my web-shop in several languages, currencies, SEO routing etc. I’ve previously used https://robisim74.github.io/angular-l10n for an Angular project. But as I’m using web components now, shall I maybe use https://github.com/t2ym/i18n-behavior instead? Anyone who has any experience with that?

My web-shop will both be a PWA, Android app, IOS app.

What I liked with the angular-l10n library was:
The translation text can be retrieved via directives or pure pipes, e.g:

place-order.h1-place-order

tooltip="{{ ‘cart-checkout.invalid-input’ | translate:lang }}"

Or in a component class, e.g:

@Component({

template: <h1> {{ title }} </h1> <button (click)="getTranslation()">Translate</button>
})
export class HomeComponent {
title: string;
constructor(public translation: TranslationService) { }
getTranslation(): void {
this.title = this.translation.translate(‘Title’);

Using Html tags in the JSON translations file

Using directives:
<span [innerHTML]="‘cart-checkout.p-1b-error-box2-cart’" l10nTranslate>

Using pipes:

Using variables in translations

JSON file:
“defaults-are-min”: “Defaults are Min {{defaultMin}} and Max {{defaultMax}}.”,

view:

  • {{ 'update-user-settings.defaults-are-min' | translate:lang: {defaultMin: defaultMin, defaultMax: defaultMax} }}
  • Posts: 1

    Participants: 1

    Read full topic

    [ionic4] ion-back-button default-href not working

    $
    0
    0

    @coreelements wrote:

    So I have this url:

    https://todo-ionic.thehangrycoder.now.sh/todo/new

    normally you get to this page via

    https://todo-ionic.thehangrycoder.now.sh/todo/

    Then the detail page will have a back button, going back to the Todo overview.

    But when you go directly to https://todo-ionic.thehangrycoder.now.sh/todo/new … it still shows the back button, but when pressed, it doesn’t do anything.

    I’m using the default-href:

        <ion-buttons slot="start">
          <ion-back-button default-href="/todo"></ion-back-button>
        </ion-buttons>
    

    The complete project is found at : https://github.com/fransyozef/todo-challenge/tree/master/frontend/ionic4/todo-app

    Posts: 1

    Participants: 1

    Read full topic

    Does capacitor.config.json imply all apps must have the same app ID?

    $
    0
    0

    @josh_sharpe wrote:

    There doesn’t seem to be room to config different app IDs for android and ios in capacitor.config.json - does that force capacitor apps to have the same app ID across all platforms?

    {
    “appId”: “io.ionic.starter”,
    }

    Posts: 1

    Participants: 1

    Read full topic

    Phaser Ionic integration input event problems

    $
    0
    0

    @doug1e wrote:

    I have a blank ionic project and added phaser to it. I added the below code to phaser’s create()

    this.input.on(‘pointerup’, ()=>…);

    However, the callback function is not triggered for some reason. It does triggered for ‘pointerupoutside’ though! Moreover, I can also have the images listen for clicks and they also receive the pointerup event.

    I believe there is some sort of conflict with the ionic platform as the click on scene is recognized as a click outside of it. I could not work it out as the sample code works just fine without ionic.

    Has anyone experienced a similar issue?

    Posts: 1

    Participants: 1

    Read full topic

    Console.Log() shows me insertId is undefined for every row in cordova-sqlite

    $
    0
    0

    @Mlifonza wrote:

    Hi guys,

    I may of ran into a rather negligent error. I am trying to retrieve data from cordova-sqlite database. The table was populated well as I checked on Chrome’s WebView. I created my database following Simon Grimm’s Vlog https://devdactic.com/ionic-4-sqlite-queries/

    Here’s my code as a reference:
    db.service.ts
    import { Injectable, OnInit, OnDestroy } from ‘@angular/core’;
    import { Platform } from ‘@ionic/angular’;
    import { SQLite, SQLiteObject } from ‘@ionic-native/sqlite/ngx’;
    import { SQLitePorter } from ‘@ionic-native/sqlite-porter/ngx’;
    import { BehaviorSubject , Observable } from ‘rxjs’;
    import { HttpClient } from ‘@angular/common/http’;
    import { Carcust, Carman, Customer, Carpaint } from ‘…/models/class-model’;
    import { MessageService } from ‘./message.service’;
    import { ApiService } from ‘./api.service’;

    @Injectable({
    providedIn: ‘root’
    })
    export class DbService implements OnInit {

    private database: SQLiteObject;
    private dbReady: BehaviorSubject = new BehaviorSubject(false);
    carcust = new BehaviorSubject();
    carman = new BehaviorSubject();
    carmast = new BehaviorSubject();
    customer = new BehaviorSubject();
    carpaint = new BehaviorSubject();
    part = new BehaviorSubject();
    paintColor = new BehaviorSubject();

    constructor(
    private sql: SQLite,
    private http: HttpClient,
    private sqlitePorter: SQLitePorter,
    private message: MessageService,
    private api: ApiService,
    private plt: Platform) {

      this.plt.ready().then(() => {
        this.sql.create({
          name: 'drsmashdata.db',
          location: 'default'
        })
        .then((db: SQLiteObject) => {
          this.database = db;
          this.seedDatabase();
        });
      })
    }
    
    ngOnInit() {
    }
    
    seedDatabase() {
      this.http.get('assets/seed.sql',{ responseType: 'text'})
      .subscribe(sql=>{
        this.sqlitePorter.importSqlToDb(this.database, sql)
        .then(_=>{
          this.dbReady.next(true);
        })
        .catch(e=>console.error(e));
      });
    }
    
    getDatabaseState = () => {
      return this.dbReady.asObservable();
    }
    
    getCarpaint = (): Observable<any[]> => {
      return this.carpaint.asObservable();
    }
    

    loadCarpaint = async () => {
    return this.database.executeSql(‘SELECT * FROM carpaint’, ).then(data => {
    let carpaint: Carpaint = ;
    if (data.rows.lenght > 0) {
    for (let i=0; i<data.rows.lenght; i++) {
    carpaint.push({
    pk_carpaint: data.rows.item(i).pk_carpaint,
    description: data.rows.item(i).description,
    panel: data.rows.item(i).panel,
    panelred: data.rows.item(i).panelred,
    panelblue: data.rows.item(i).panelblue
    })
    }
    }

        this.carpaint.next(carpaint);
      })
    }
    

    addCarpaint = async (pk_carpaint, description, panel, panelred, panelblue) => {
    let data = [pk_carpaint, description, panel, panelred, panelblue];
    return this.database.executeSql(‘INSERT INTO carpaint(pk_carpaint, description, panel, panelred, panelblue)’ +
    ‘VALUES (?,?,?,?,?)’, data)
    .then(data => {
    this.loadCarpaint();
    }, err => { console.log(‘addCarpaint db’, err) })
    }

    network-settings.page.ts
    import { Component, OnInit } from ‘@angular/core’;
    import { Router } from ‘@angular/router’;
    import { DrSmashDbService } from ‘src/app/services/dr-smash-db.service’;
    import { Carcust, Carman, Carpaint } from ‘src/app/models/class-model’;
    import { MessageService } from ‘src/app/services/message.service’;
    import { Platform } from ‘@ionic/angular’;
    import { DbService } from ‘src/app/services/db.service’;
    import { LocalStorageService } from ‘src/app/services/local-storage.service’;
    import { ApiService } from ‘src/app/services/api.service’;

    @Component({
    selector: ‘app-network-settings’,
    templateUrl: ‘./network-settings.page.html’,
    styleUrls: [’./network-settings.page.scss’],
    })
    export class NetworkSettingsPage implements OnInit {

    ipAddress: string = ‘’;
    spinner: boolean = false;

    carcust: Carcust = ;
    selectedCarcust: Carcust = ;
    carpaint: Carpaint = ;

    carman: {};
    constructor(
    private router: Router,
    private db: DrSmashDbService,
    private database: DbService,
    private message: MessageService,
    private plt: Platform,
    private localStorageService: LocalStorageService,
    private api: ApiService)
    {
    this.database.getDatabaseState().subscribe(ready => {
    if (ready) {
    console.log(‘DB ready!!’)
    this.database.getCarpaint().subscribe(data => {
    let carpaint = data;
    console.log(‘getCarpaintData’, carpaint);
    }, err => { console.log(err) })
    }
    }, err => { console.log(err) });

      this.ipAddress = this.localStorageService.getIPAddress()
    }
    

    In addition I use this method to populate my table
    populateCarpaint = async () => {
    try {
    let res = await this.api.getCarpaint();
    if (res) {
    res.forEach(c => {
    let payload = {
    pk_carpaint: c.pk_carpaint,
    description: c.description,
    panel: c.panel,
    panelred: c.panelred,
    panelblue: c.panelblue
    }

            this.database.addCarpaint(payload['pk_carpaint'], payload['description'], payload['panel'], payload['panelred'],
            payload['panelblue']);
          })
        }
      } catch (error) {
        console.log('populateCustomer ', error)
      }
    }
    

    The problem that I found from my logs is that whenever it is time to loadCarpaint(), the insertId is undefined and that also makes getCarpaint() to return zero data back. am I missing something, please help, and thank you in advanced

    Posts: 1

    Participants: 1

    Read full topic

    setInterval loop in ts.file giving me headache

    $
    0
    0

    @jamesRoss wrote:

    I have a “tabata” timer. So far it counts down through a get ready phase, then a work phase and finally a rest phase. After the rest phase, I would like to re-loop through the work and rest phases several times.

    However, at the end of the rest phase, the call to the work phase function does not work.

    I get the following errors in the console.log when using the code below…

    ERROR TypeError: Unable to set property ‘intervalOne’ of undefined or null reference

    ERROR TypeError: Unable to get property ‘restTime’ of undefined or null reference

    I am using the setInterval the same way so I don’t understand why this time it won’t work.

    Why isn’t my code looping through?

    I’ve put the seperate funtions in different places throughout the code, I taken away the setIntervals to get rid of the error, but of course that stops the counter counting down! I’m at a loss.

    repeat(event) {
       this.intervalOne = setInterval(() => this.begin(this.countdown, this.tabata), 1000)
      }
    
      begin(myCountdown, myTabata) {
        let first = document.querySelector('#counter');
        this.set = this.set;
        if (this.set == 1) {
          this.countdown = myCountdown - 1;
          this.countdown > 0
          if (this.countdown < 10) {
            this.countdown = "0" + this.countdown;
          }
          first.innerHTML = this.countdown;
          if (this.countdown == 0) {
            clearInterval(this.intervalOne);
            this.intervalTwo = setInterval(() => work(), 1000)
            first.classList.remove('orange');
          }
          let intervalTwo = this.intervalTwo;
          let secondCount: any = +myTabata.split(':')[1];
    
          function work() {
            if (secondCount < 10) {
              secondCount = "0" + secondCount;
            }
            secondCount = secondCount - 1;
            secondCount > 0;
            first.innerHTML = secondCount;
            if (secondCount == 0) {
              clearInterval(intervalTwo);
              first.classList.remove('green');
              first.classList.remove('orange');
              secondCount = +myTabata.split(':')[1];
              this.intervalOne = setInterval(() => rest(), 1000)
              console.log(secondCount);
            }
          }
          let interval = this.intervalOne;
          let myRest = this.restTime;
          function rest() {
            if (myRest < 10) {
              myRest = "0" + myRest;
            }
            myRest = myRest - 1;
            myRest > 0;
            first.innerHTML = myRest;
            if (myRest == 0) {
              clearInterval(interval);
              myRest = this.restTime;
              this.intervalTwo = setInterval(() => work(), 1000)
            }
          }
        }
      }
    

    Posts: 1

    Participants: 1

    Read full topic


    How to generate android apk with different package name using ionic cordova build android

    $
    0
    0

    @sriharibalgam4 wrote:

    We have an application that has same code but different apks for different countries.

    As of now I am Changing id in config.xml then removing and adding android platform to generate a build. I want to make such automated system like i can make multiple apks from the existing parent code with different package names and version codes.I want to make such a script that when i run it on command line i will be able to build a new apk from the parent code just by package name.

    <widget id=“com.p.stg.ApplicationName” …> will be default package name.

    com.proj.stg.ApplicationName another is com.proj.ws.stg.ApplicationName.

    What approach should I use to change package name dynamically?

    Posts: 1

    Participants: 1

    Read full topic

    Changed variables not updating in view when I build to device

    $
    0
    0

    @abubakarisidiq wrote:

    I have an img element as well as a background of a div set with [ngStyle], and the src and url of each update based on a variable called “country.” For example,

    <img [src]=" 'assets/flags/ '+ country + ‘.svg’ ">

    Then in ionViewDidLoad I run a function that retrieves a logged in user’s two-letter country iso (eg. US, CA, AF, GH) from mySQL database, and I then set country variable to this information.

    So the image src and background url will read something like “assets/flags/US.svg.”

    When I run “ionic serve” the flag is set to the respective country of the user on both android/ios(devapp), and in the browser. But when I run “ionic cordova run android” it does not show the image or background.

    In chrome browser console it also says the following even though the image and background are loaded:
    Failed to load resource: the server responded with a status of 404 (Not Found), undefined.svg

    I have used ngzone already and it does not work; any suggestions?

    Posts: 1

    Participants: 1

    Read full topic

    Ionic 4 app stops working after a few days when deploying to iOS

    $
    0
    0

    @DMoney wrote:

    I’m creating an Ionic 4/firebase project. It’s working fine on Android but iOS has been a huge headache from the start. I’m deploying to my android app via cmd line using ‘ionic cordova run android’. However, for iOS I have to deploy in xCode. When i initially deploy it’s working on the iOS device but after a few days when I try to launch the app from the iOS app the flash screen appears briefly then it just shuts down. I have to plug the device back in to the MAC and redeploy via xCode again, but again after a few days when I attempt to launch the app the flash screen appears briefly then it just shuts down without any error or warning. I’m not even sure how to debug this because I’m not getting any logs in xCode when it happens.

    Posts: 1

    Participants: 1

    Read full topic

    No profiles for 'com.angularfire.appname' were found: Xcode couldn't find any iOS App Development provisioning profiles matching

    $
    0
    0

    @DMoney wrote:

    I keep getting an error running:
    sudo ionic cordova build ios
    or
    sudo ionic cordova build ios -allowProvisioningUpdates
    or
    sudo ionic cordova build ios -allowProvisioningUpdates --buildFlag="-UseModernBuildSystem=0"

    It was previously working and stopped all of a sudden.

    note: Using new build system
    note: Planning build
    note: Constructing build description
    Build system information
    error: No profiles for ‘com.angularfire.appname’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.angularfire.appname’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target ‘Project Name’)

    ** ARCHIVE FAILED **

    xcodebuild: Command failed with exit code 65
    [ERROR] An error occurred while running subprocess cordova.

    Posts: 1

    Participants: 1

    Read full topic

    Error on Build fastlane summary - download credential

    $
    0
    0

    @devmobility wrote:

    Hi,
    i have an error with Android build.
    It is not a new App. I was able to build before.
    here is the error:
    Thank you,

    [13:36:53]: Generating app manifest…
    [13:36:53]: $ ionic deploy manifest
    [13:36:53]: ▸ [OK] Appflow Deploy manifest written to ./www/pro-manifest.json!
    [13:36:53]: ----------------------------------
    [13:36:53]: — Step: add_cordova_to_index —
    [13:36:53]: ----------------------------------
    [13:36:53]: codova.js already present in index.html: skipping
    [13:36:53]: ---------------------------------
    [13:36:53]: — Step: download_credential —
    [13:36:53]: ---------------------------------
    [13:36:53]: Downloading build credentials…
    ±---------------------------±----------------------+
    | Lane Context |
    ±---------------------------±----------------------+
    | DEFAULT_PLATFORM | ios |
    | PLATFORM_NAME | android |
    | LANE_NAME | android package_build |
    | PROJECT_WEB_DIR | www |
    | DOWNLOAD_CREDENTIAL_EXISTS | false |
    ±---------------------------±----------------------+
    [13:36:53]: Download Credential Error: Credentials not found.

    ±-----±---------------------±------------+
    | fastlane summary |
    ±-----±---------------------±------------+
    | Step | Action | Time (in s) |
    ±-----±---------------------±------------+
    | 1 | default_platform | 0 |
    | 2 | build_summary | 1 |
    | 3 | add_git_credentials | 0 |
    | 4 | detect_native_type | 0 |
    | 5 | get_web_dir | 0 |
    | 6 | modify_config_xml | 0 |
    | 7 | build_pro_app | 40 |
    | 8 | add_cordova_to_index | 0 |
    | :boom: | download_credential | 0 |
    ±-----±---------------------±------------+

    [13:36:53]: fastlane finished with errors
    /usr/local/bin/fastlane: [!] Download Credential Error: Credentials not found. (RuntimeError)
    Running after script…
    $ run “clean-up”
    ERROR: Job failed: command terminated with exit code 1

    Posts: 1

    Participants: 1

    Read full topic

    Viewing all 70904 articles
    Browse latest View live


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