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

iOS Package native binaries Error mobiscroll library

$
0
0

@codiqa100034519 wrote:

Hey All,

Not sure where to go as I haven’t gotten any response from my support request, so here goes…,

When Packaging iOS Native Binary, I’m getting the following error…

[17:31:04]: ▸ npm ERR! path /Users/ionic/builds/project-1/fastlane/mobiscroll-angular-4.1.1.tgz
[17:31:04]: ▸ npm ERR! code ENOENT
[17:31:04]: ▸ npm ERR! errno -2
[17:31:04]: ▸ npm ERR! syscall stat
[17:31:04]: ▸ npm ERR! enoent ENOENT: no such file or directory, stat ‘/Users/ionic/builds/project-1/fastlane/mobiscroll-angular-4.1.1.tgz’
[17:31:04]: ▸ npm ERR! enoent This is related to npm not being able to find a file.
[17:31:04]: ▸ npm ERR! enoent

And the job hangs until Ionic Pro notices the job has been running to long and kills it.

I followed Mobiscroll’s instructions that upload the mobiscroll library to make it available for the build…

The package.json depnencies section for mobiscroll looks like this…

    "@mobiscroll/angular": "file:./mobiscroll-angular-4.1.1.tgz",

The tgz was pushed up to ionic pro. I can package the Android Native Binaries successfully.

Any help would be appreciated, Cheers!

Troy

Posts: 1

Participants: 1

Read full topic


Error: Unexpected value 'undefined' imported by the module

$
0
0

@lado wrote:

Hello,

What can be cause of Error: Unexpected value 'undefined' imported by the module, if I have import { NgCalendarModule } from 'ionic2-calendar'; in app.module.ts:

  imports: [
    BrowserModule,
    HttpModule,
    HttpClientModule,
    NgCalendarModule,
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot()
  ],

Error disappears if I remove import { NgCalendarModule } from 'ionic2-calendar'; and then save. if I add import again, everything works. Error appears with undefined saving, and eliminated same way as described

Posts: 1

Participants: 1

Read full topic

networkInterface

$
0
0

@user1111 wrote:

I tried code from manual:

  this.networkInterface.getWiFiIPAddress(function (ip) { alert(ip); });
  this.networkInterface.getCarrierIPAddress(function (ip) { alert(ip); });

but fail compile & highlight error in IDE:

[ts] Expected 0 arguments, but got 1.
(method) NetworkInterface.getWiFiIPAddress(): Promise< string >

After call as promise:

    this.networkInterface.getWiFiIPAddress().then(result => {
      console.log(result);
    });

result has type Object
{ip: 123.123.123, subnet: 255.255.255.0}

After call console.log(result.ip); I received “[ts] Property ‘ip’ does not exist on type ‘string’.”

how to use this plugin correctly?
thanks.

Posts: 1

Participants: 1

Read full topic

Why native google maps is removed?

$
0
0

@tonystark007 wrote:

I just want to know why native google maps is removed for ionic docs. Now how could we use native google maps in the app.

Posts: 2

Participants: 2

Read full topic

Optimising the performance of an Ionic PWA - CSS Delivery

$
0
0

@robinyo wrote:

In a previous post, I showed you how to add Angular’s Service Worker (NGSW) module to an Ionic project.

In this post, I’ll show you how to optimise your CSS delivery.

Create a Sass configuration file

To get Ionic Apps up and running quickly version 3 of the Ionic Framework includes Ionic App Scripts.

@ionic/app-scripts provides default configuration files for each of it’s build tasks, we can override the defaults by providing our own configuration files.

See: https://robferguson.org/blog/2018/04/17/optimising-the-performance-of-an-ionic-pwa-part-2/

Posts: 1

Participants: 1

Read full topic

Developer quit- please help me migrate

$
0
0

@bolteon wrote:

So I’ve been put in a pretty unfortunate bind- our relationship with our developer soured and they’ve bailed on helping us migrate a project that’s been in development for over a year.

It’s my fault for not doing a better job at making sure something like this couldn’t happen, but so it goes.

Anyway, what I’ve received looks like this:
Untitled-1

I’m guessing that’s the important parts that I need. From what I’ve read, using Ionic is best done via some sort of versioning control- so I’ve got a secondary repository setup for the iOS/Android software that is separate from our firmware repository (thankfully, that was more often handed over to us and is mostly bug free).

I’ve got literally 0 use time with Ionic, I’ve signed up for a month to month Ionic Pro account in case I need it for deployment.

I could really use a bit of assistance here, and would much appreciate some direction by anyone who’s got some experience in the shoes I’m in.

I can set things up either in MacOS or Windows. All the same to me, goal is to get us setup properly with version control and be able to get a build of the app to TestFlight.

Thank you.

Posts: 5

Participants: 2

Read full topic

FirebaseAnalytics is in beta version

$
0
0

@Sals wrote:

Hi Team,
I want to integrate Firebase Analytics in Ionic mobile app and I have successfully added that. But it is saying that the plugin is still in beta version.
Can anyone update how long it will take it to be in prod version and what kind of issues will be there is beta version(if any). I have to deploy the app in production (android and iOS ) including the firebase analytics and crashlytics .

Thanks .

Posts: 1

Participants: 1

Read full topic

Can't deploy to ios w cordova-plugin-facebook4

$
0
0

@DMoney wrote:

I’ve been struggling to deploy to iOS for months now to no avail. I can deploy to Android just fine. So I created a new project and was able to build iOS and deploy to an emulator. I kept adding plugins and deployed and it worked until I installed the facebook plugin and received the same error that I had been getting with my app:

The following build commands failed:
Ld build/Mundo.build/Debug-iphonesimulator/Mundo.build/Objects-normal/x86_64/Mundo normal x86_64
CreateUniversalBinary build/emulator/Mundo.app/Mundo normal i386\ x86_64
GenerateDSYMFile build/emulator/Mundo.app.dSYM build/emulator/Mundo.app/Mundo
(3 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/laroca/Documents/Mundo/platforms/ios/cordova/build-debug.xcconfig,-project,Mundo.xcodeproj,-target,Mundo,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,build,CONFIGURATION_BUILD_DIR=/Users/laroca/Documents/Mundo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/laroca/Documents/Mundo/platforms/ios/build/sharedpch

[ERROR] An error occurred while running cordova build ios (exit code 1).

I have no idea why there appears to be the incompatibility between facebookplugin and iOS but if you create a new app and deploy to iOS it will stop working once you add the facebook4 plugin.

Please help.

Posts: 1

Participants: 1

Read full topic


How to retrieve user city/country and location in formation

$
0
0

@pinoyprogs wrote:

Hi kindly educate me. how to retrieve user location like city, country name and etc using Ionic native geocoder.

this.nativeGeocoder.reverseGeocode(this.lat, this.long)
.then((result: NativeGeocoderReverseResult) => alert(JSON.stringify(result)))
.catch((error: any) => console.log(error));

if you have any code snippets that will help a lot.
thanks to all have a blessed day.

Posts: 1

Participants: 1

Read full topic

Global Header

$
0
0

@vikramvision wrote:

Hi,
I need to make a global header for all ionic pages. I can’t find any solution for this. Because of this i have to repeat same header in all pages, Which makes my app too heavy. Is there any solution, Is it possible to make a global header in ionic version 3.

Posts: 3

Participants: 3

Read full topic

Bottom tabs scrolled up with keyboard

Unable to change scss variables for SplitPane

$
0
0

@saurabh64 wrote:

Hi I’m using split-pane component and want to change the min-width of the left panel according to my requirements .

For this I’m changing the the sass variables provided
Capture

but the change is not reflected in the main.css file after doing ionic serve .

First I thought it could be problem with sass but I changed another variable called @background-color and it worked .

Please can anyone help with this?

Thanks.

Posts: 1

Participants: 1

Read full topic

How to use App Version in config.xml when performing a Pro.init

$
0
0

@freekvdgriendt wrote:

I’m developing an Ionic Pro app. During the initialization of Ionic Pro in app.module.ts, I am required to provide an app version like so:

Pro.init('<APP_ID_PLACEHOLDER>', {
  appVersion: 'APP_VERSION_PLACEHOLDER'
});

However, instead of hard coding the app version in the app.module.ts file, I’d like to use the app version in config.xml.

Does anyone know how that can be done?

Posts: 1

Participants: 1

Read full topic

Can not deploy ionic project for generating android apk

$
0
0

@ahmadkam wrote:

Im trying to generate android apk from my ionic project but i faced with this error:

can anyone help me?

My ionic info is:

@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.1.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.0.2
Node              : v8.10.0
npm               : 4.6.1
OS                : Windows 8.1

Environment Variables:

ANDROID_HOME : F:\sdk

Misc:

backend : pro

///////////////////////////////////
And :slight_smile:Installed platforms:
android 7.1.0
////////////////////////////////////////////////
And my build.gradle file is also:

buildscript {
repositories {
jcenter()
maven {
url “https://maven.google.com
}
}
dependencies {

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    classpath 'com.android.tools.build:gradle:3.0.1'
}

}

allprojects {
repositories {
jcenter()
maven {
url “https://maven.google.com
}
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion=“27.0.1” //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

Posts: 1

Participants: 1

Read full topic

How to restore stack page in tab from other tab?

$
0
0

@oman21 wrote:

I have design app like this image

in detail page i wrote code

  ionViewWillEnter(){
    this.stack = [];
    for(let i = 0; i < this.navCtrl.length(); i++) {
      let view = this.navCtrl.getByIndex(i);
      this.stack.push({
        page: view.component.name,
        params: view.data
      });
    }
    this.storage.set("stackPage", this.stack); //save stack to storage
 }

then i call stack from TAB 2 use function goToStack()

goToStack(stack){
 this.storage.get('stackpage').then(val=>{
   this.navCtrl.insertPages(1, val);
 });
}

but active tab is TAB 2 i want active tab in TAB 1

can anyone help me to set active tab in TAB 1?

Posts: 6

Participants: 2

Read full topic


Ionic pro live deploy: slow launching time except when initial launch from playstore/appstore

Why the provider return 'null' value for web service json?

$
0
0

@anespa wrote:

Friends,
I am using web service and forms for a number of situations in my project. But now when I try to use same strategy the data is not provided by the provider function. It gives ‘null’ value always. But I can see the value in chrome web console.
My provider function is

  getYearMaster() 
  {
    var obj = {wsname: 'YearMaster' };
    var myData = JSON.stringify(obj);
    if(this.data)
    {
      return Promise.resolve(this.data);
    } else {
      return new Promise 
      (
        resolve => 
                    {
                      this.http.post('http://apps.windows.gov.in/mobservice/index.php/xxx/',myData,{ headers: new HttpHeaders()
                      , responseType: 'json'})
                      .map(res => res)
                      .subscribe
                                 (res => {
                                    resolve(res);
                                   },
                                   err => {console.log("oops some error in Project Financial year selection");}
                                 );
                    }
      );
    }


  }


the calling controller is

getYearMaster() 
  {
    let loader = this.loadingController.create({
      content: "Loading Financial Year ... "
    });  
    loader.present();
    if(this.global1.getnetwork())
    {
      this.connectivityFlag = true;
      this.projectplanprovider.getYearMaster()
      .then(data => {
        this.searchFlag = true;
        this.result = data;
        alert("data in fun is:"+data);
        this.year = data;
        loader.dismiss();
      }, error => {
        alert("error recieved : " + error ); //it will not happen any time 
         loader.dismiss();
     });
    } else {
      this.presentAlert();
    } 
  }

What may be the problem ? I could not find any error . Please advise

Thanks

Anes

Posts: 1

Participants: 1

Read full topic

Mp3 player and video player for ionic app

ionViewCanEnter didn't work after pop()

$
0
0

@duongtranfu wrote:

Hi everyone ,

I have a tabs.

//icom-tab.html
<ion-tabs>
    <ion-tab [root]="dashboardRoot" tabTitle="DASHBOARD" ></ion-tab>
    <ion-tab [root]="scheduleRoot" tabTitle="SCHEDULE" ></ion-tab>
    <ion-tab [root]="todoRoot" tabTitle="TO DO LIST" ></ion-tab>
</ion-tabs>

in toDoRoot tab

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

@Component({
    selector: 'page-tab-todo-list',
    templateUrl: 'tab-todo-list.html',
})
export class TabTodoListPage {


  constructor(public navCtrl: NavController) {}

  LoadCheckOut() {
        // I will go to CheckOutConfirmationPage
        this.navCtrl.parent.parent.push(CheckOutConfirmationPage);
  }

  ionViewCanEnter() {
       // I want to run loadData() function 
       //after pop() from CheckOutConfirmationPage page
       console.log("Run ionViewCanEnter");
       this.loadData();
  }

  loadData() {
      // Do something
  }

}

in CheckOutConfirmationPage

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

@Component({
    selector: 'page-check-out-confirmation',
    templateUrl: 'check-out-confirmation.html',
})
export class CheckOutConfirmationPage {


  constructor(public navCtrl: NavController) {}

  goBack() {
        this.navCtrl.pop();
  }

}

When I use LoadCheckOut() to go to CheckOutConfirmationPage and goBack() to go back, after that ionViewCanEnter in TabTodoListPage didn’t work . I can’t run loadData() function to load the data again after pop from CheckOutConfirmationPage . ionViewCanEnter run well if I don’t use ion-tabs . What’s problem here ? Thank for any help.

Posts: 1

Participants: 1

Read full topic

Create Custom Plugin From Android Project

$
0
0

@hirenkorat3 wrote:

i have app which display camera of my office in mobile . i have android project of that application and i want to integrate all functionality in my another app using it. so i want to know is there any easy way to implement android project into plugin or etc and integrate it in my project

Posts: 1

Participants: 1

Read full topic

Viewing all 71111 articles
Browse latest View live


Latest Images

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