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

Error during iOS-Build

$
0
0

@TimoSchueler wrote:

Hi all,

I got a big problem to build my app in ios. If I start the build from command line or via Xcode the build fails with Error Code 65, CopySwiftLibs failure.
I tried it with different apps so I think there is a larger problem in the Xcode configuration. I completely deleted and revoked all certificates but it does not work, nothing changes.
I have several apps which I want to deploy to the app store but I do not find a solution to get this to work.

Thanks for any help

Timo

Posts: 1

Participants: 1

Read full topic


Ionic providers, best practices/concepts

$
0
0

@jQrgen wrote:

Why is the provider folder called providers?

What are sub-categories of providers? services and factories? Anything else?

How should you name providers? For example a provider for user data.

like this: UserServiceProvider
Or like this: UserService
Or like this: UserProvider

Thanks.

Posts: 1

Participants: 1

Read full topic

Creating Dynamic Mobile Charts In Ionic 2 Framework

Variable, that checks if two variables are not empty

$
0
0

@Vartex05 wrote:

Hi, i want to save boolean value in variable like this:
let result=(variable1==''&&variable2=='')

but i want the result to be updated on change. How can i do that?

Posts: 1

Participants: 1

Read full topic

Add picture upload

$
0
0

@khalilben wrote:

Hi,

How can i add pictures upload (one by one) like this to a server:

My TS Code

 declarerSinistre(){
    //http://michael.laffargue.fr/blog/2016/04/17/angularjs2-send-http-post-request-with-parameters-to-php/
    var headers = new Headers();
    headers.append('Content-Type', 'application/x-www-form-urlencoded');

    var params = 'entry_by='+this.userDetails.id+'&NomConducteur='+this.userData.NomConducteur+'&TelConducteur='+this.userData.TelConducteur+'&CinConducteur='+this.userData.CinConducteur+'&latitude='+this.la+'&longitude='+this.lo;
    this.http.post(this.apiSinistre, params , {headers: headers})
      .subscribe(
        data => this.afficherAlert('Réussite','Sinistre Déclaré'),
        err => this.afficherAlert('Erreur','Sinistre Non Déclaré')
      );
  }

MY HTML CODE

<div [formGroup]="sinistreForm">
      <ion-item>
        <ion-input formControlName="iNom" type="text" placeholder="Nom conducteur" [(ngModel)]="userData.NomConducteur"></ion-input>
      </ion-item>
      <ion-item>
        <ion-input formControlName="iTel" type="text"  placeholder="Tel conducteur"  [(ngModel)]="userData.TelConducteur"></ion-input>
      </ion-item>
      <ion-item>
        <ion-input formControlName="iCin" type="text" placeholder="CIN conducteur"  [(ngModel)]="userData.CinConducteur"></ion-input>
      </ion-item>
      <ion-item (click)="getUserPosition()">
        <ion-input formControlName="iLongitude" type="text" disabled  value="Longitude : {{lo}}"></ion-input>
      </ion-item>
      <ion-item (click)="getUserPosition()">
        <ion-input formControlName="iLatitude" type="text" disabled value="Latitude : {{la}}"></ion-input>
      </ion-item>
        <br>
      <button ion-button color="positive" full [disabled]="!sinistreForm.valid" (click)="declarerSinistre()"  block>Déclarer</button>
    </div>

Posts: 1

Participants: 1

Read full topic

iOS Security Prompt and Camera Behind

$
0
0

@imperimus wrote:

Hi All,

I have managed to get through the saga of getting an iOS app built and onto the an iPAD through xcode, but seem to have an issue with the Camera plugin. When i click the button to take a picture or upload the picture the code eblow is used. The iOS security prompt seems to pop up behind the app; if i press home and then switch back to the app it displays over the top. Once allowed the same happens with the actual camera; it load behind the app and only by pressing home and switching back does it them pring the preview/captcher screen infront of the app.

I did a search on here and google and couldn’t find the answer but apologies if I have missed something.

Thanks in advance!

takePicture(idx, itemId, type) {
        let newImage = new ItemImage();
        newImage.itemId = itemId;
        newImage.imageId = this.items[idx].images.length;
        let srcType = this.camera.PictureSourceType.PHOTOLIBRARY;
        if (type == 'lib') {
            srcType = this.camera.PictureSourceType.PHOTOLIBRARY;
        }
        if (type == 'cam') {
            srcType = this.camera.PictureSourceType.CAMERA;
        }
        this.camera.getPicture({
            quality: 100,
            sourceType: srcType,
            //destinationType: this.camera.DestinationType.DATA_URL,
            encodingType: this.camera.EncodingType.JPEG,
            mediaType: this.camera.MediaType.PICTURE,
            saveToPhotoAlbum: false,
            correctOrientation: true
        }).then((imageData) => {
            // imageData is a base64 encoded string
            if (this.platform.is('android') && type === 'lib') {
                this.filePath.resolveNativePath(imageData)
                    .then(filePath => {
                        let correctPath = filePath.substr(0, filePath.lastIndexOf('/') + 1);
                        let currentName = imageData.substring(imageData.lastIndexOf('/') + 1, imageData.lastIndexOf('?'));
                        this.copyFileToLocalDir(correctPath, currentName, this.createFileName());
                    });
            } else {
                var currentName = imageData.substr(imageData.lastIndexOf('/') + 1);
                var correctPath = imageData.substr(0, imageData.lastIndexOf('/') + 1);
                this.copyFileToLocalDir(correctPath, currentName, this.createFileName());
            }
            if (type == 'lib') {
                newImage.imageData = this.lastImage;
            } else {
                newImage.imageData = "data:image/jpeg;base64," + imageData;
            }

            this.items[idx].images.push(newImage);
        }, (err) => {
            console.log(err);
        });
    }

Posts: 1

Participants: 1

Read full topic

Ionic offline synchronization

$
0
0

@AndersonScherdovski wrote:

Good afternoon … I need to develop an ionic app that is offline (pouchDB) and when I had a connection to the local network in my case (wifi) did the integration with the server that in my case would be a central tablet and the other tablets if would communicate with it as far as I know the couchDB exists plus it is used on server and in my case the server would a tablet how to do this? how to install couchDB on a tablet? or is there other ways?

Posts: 1

Participants: 1

Read full topic

Ionic build cannot find css

$
0
0

@wima wrote:

Hi
with “ionic serve” everything works fine. But when i want to build my app with
ionic cordova build android --prod --release
I get an error: Ignoring local @import of “onsenui/css/onsenui.min.css” as resource is missing.
In my app.scss I have this: @import “onsenui/css/onsenui.min.css”;

Can you help me?
Thank you
Marco

Posts: 1

Participants: 1

Read full topic


Changed App Name, now builds cache older files

$
0
0

@kksimplesolutionsfs wrote:

After changing app name inside config.xml from “MyApp” to new app name, anytime I run ionic cordova build ios --verbose or emulate ios the build is from older versions of my app. The files in my repo do not change but the files loaded into simulator or live device is not reflecting these files.

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3 ios 4.5.4
Ionic Framework    : ionic-angular 3.7.1

System:

ios-deploy : 1.9.2
ios-sim    : 6.1.2
Node       : v6.10.3
npm        : 5.5.1
OS         : macOS Sierra
Xcode      : Xcode 9.1 Build version 9B55

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : legacy

I have dist and dev provisioning profiles in XCode for push notifications. I have also added/removed ios platforms multiple times and did not solve my issue.

Posts: 3

Participants: 2

Read full topic

Ionic on Chrome Os

$
0
0

@SaltySpaghetti wrote:

Hi guys!
I wanna know if someone knows how to set up Ionic + Android SDK + Cordova on Chrome Os.
Surfing the net I haven’t found anything usefull.

Posts: 3

Participants: 2

Read full topic

Multiple Pages in a Module

$
0
0

@Balaji_R wrote:

Can we have multiple pages in a module which is loaded lazily ? OR Only one page per module is allowed to achieve lazy loading ?

Posts: 1

Participants: 1

Read full topic

Scroll-content and fixed-content looses margin-top after using input focus keyboard

Can we upload file and text?

Ng model help

$
0
0

@wodexe wrote:

Hi!

I’m learning the basic of ionic with a tutorial and on the data-binding chapter, there is this code:

<div class="card">
    <h4>Hi {{name}}</h4>
    <input ng-model="name" type="text" placeholder="Write your name">
</div>

I tried with the tabs project bt when I do ionic serve, I can write some text but the text after Hi is never updated.

I work with ionic 3.18.0

Anyone know why?

Posts: 1

Participants: 1

Read full topic

Response with status 0/404

$
0
0

@dworzycp wrote:

Hi guys,

I’m trying to call the Google Maps API (https://maps.googleapis.com/maps/api/…).

It works just fine in ionic serve and Ionic View, however it doesn’t work after compiling into an SDK and testing on an android device.

If I have <access origin="*" /> in my config.xml I get the error “Response with status 0 for url: null”

If I have <access origin="https://maps.googleapis.com/maps/api/" /> the error changes to a 404 and the url is visible, however the same url works fine in a browser.

Any help would be appreciated.

Thanks

Posts: 1

Participants: 1

Read full topic


ngFor Problem Ionic 2/3

$
0
0

@pendora7 wrote:

Hey, i am getting some data from a JSON URL, you could see it below,


Here “cname” is "Geriatrics."
I want to print cname only once and then “stitle” under it.
If one has some other cname than “Geriartrics” than it should print that cname and its stitle in it.
Demo Required result,

1). Geriartrics:
Heart Valve Disease
Test 1.

2). Something else
Test 5
Test 8

My JSON url is:
http://server10.a2zcreatorz.com/staging/projects/mobapp/Bayer/fetchsurveytest.php?urId=30

Hope this explains better :slight_smile:
Thanks

Posts: 2

Participants: 2

Read full topic

Simulate a click ionic2

How to use MD style menus in IOS style app

Building apk error

$
0
0

@dipankar123 wrote:

hi guys,
I am new in ionic 2,
I have created a project and want to build APK file.
when i run “ionic cordova build --release android” command in project folder it shows error
"Requirements checj faild for JDK 1.8 or greater" but
i have JDK 9.0.1

please help

Posts: 1

Participants: 1

Read full topic

Getting error during ionic serve

$
0
0

@shubhangi_123 wrote:

This is my error log. I tried to install node-sass but it showing it already in your node-modules folder

Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57)
For more information on which environments are supported please see:


at module.exports (D:\Tata_Mobile\TataWorking\TATA-CMS-APP-1.1\node_modules\node-sass\lib\binding.js:13:13)
at Object. (D:\Tata_Mobile\TataWorking\TATA-CMS-APP-1.1\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (module.js:635:30)
at Object.Module._extensions…js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (D:\Tata_Mobile\TataWorking\TATA-CMS-APP-1.1\node_modules@ionic\app-scripts\dist\core\bundle-components.js:6:16)

Posts: 1

Participants: 1

Read full topic

Viewing all 49109 articles
Browse latest View live


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