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

What made better performances in Ionic 3 than Ionic 1?

$
0
0

@razaviv wrote:

I will write this directly:
I hate Angular 2+.
I love AngularJS.
I think AngularJS is 10x better than every other framework.
Simplicity is key in here - frameworks were made to make development simple and Angular is too complex.

However I noticed that Ionic 3 apps have significantly better performances than Ionic 1 apps.

Im wonder if this is due to Ionic improvements or due to Angular improvements.

I have tried to install Material Design over Cordova on Angular 4 and tested this on phone.
This is not good performances at all.

What makes me think that Ionic made the differences, not the Angular.

Could someone tell me what they did?

BTW: when using iOS, performances are anyway very good. Either on Ionic 1 2 3 or even Framework7.
I am talking about Android specifically since Android + Cordova has very low performances but Android + browser has much better performances.

Maybe the problem here is Cordova and Ionic team found some solution to bad performances at Cordova + Android?

Posts: 1

Participants: 1

Read full topic


Get informed when app terminated

CORS platform issue

$
0
0

@pooja14 wrote:

Proxy setting work in browser correct manner but not working in android platform and ios paltform

Posts: 1

Participants: 1

Read full topic

How can i include a bootstrap template into my ionic 3 project

$
0
0

@Ingenieura18 wrote:

hello everyone thank you for helping me I want to integrate a bootstrap template in my project ionic 3 but I do not know how
if you have any suggestions thanks in advance

Posts: 1

Participants: 1

Read full topic

How to replace the html table with a new content in ionic 3?

$
0
0

@anespa wrote:

Friends,

I have a search list as shown in image below

View3

When clicking on a result i need to show that detaIls on same place without going to another page ( like ajax in web) . I click first row in search result got that details as shown
View4

  • Here List of projects replaced by Project details *

Is that possible ? when click item i call a provider to take web service data. Please advise how it can done with a sample …

Thanks
Anes

Posts: 1

Participants: 1

Read full topic

How to click ion-tabs when use protractor for e2e test

Ionic cordova build --release android error?

$
0
0

@ashish0212 wrote:

$ ionic cordova build --release android
> cordova build android --release
C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:70
** throw err;**
** ^**

Error: EPERM: operation not permitted, rename ‘C:\Users\User.config\configstore\cordova-config.json.1292008375’ -> 'C:\Users\User.config\configstore\cordova-config.json’
** at Object.fs.renameSync (fs.js:788:18)**
** at Function.writeFileSync [as sync] (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\write-file-atomic\index.js:124:8)**
** at Configstore.set (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:63:21)**
** at new Configstore (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore\index.js:28:11)**
** at Object. (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\src\cli.js:30:12)**
** at Module._compile (module.js:649:30)**
** at Object.Module._extensions…js (module.js:660:10)**
** at Module.load (module.js:561:32)**
** at tryModuleLoad (module.js:501:12)**
** at Function.Module._load (module.js:493:3)**
[ERROR] An error occurred while running cordova build android --release (exit code 1).

Posts: 1

Participants: 1

Read full topic

Contrat...! Ionic v4 is out ...!

$
0
0

@thruthesky wrote:

Am I right? :rofl:

Posts: 1

Participants: 1

Read full topic


How to add click listener on polyline of google map

$
0
0

@Jamesionic wrote:

Hi All,

I add polyline to map and then add listener on it to monitor click event, but I tried ‘POLYLINE_CLICK’, ‘MAP_CLICK’, ‘OVERLAY_CLICK’, none of them works, how should I do this, thanks.

        this.mainMap.addPolyline({
            points: points,
            fillColor: '#19A2E9',
            strokeColor: '#2C9ED8',
            'width': 10,
            clickable: true

        }).then(tripPolygon => {

            **tripPolygon.on(GoogleMapsEvent.MAP_CLICK).subscribe(()=>{**
                console.log('clicked me !!!!');    
            });
     });

Posts: 1

Participants: 1

Read full topic

Ionic **BUG** in provider

$
0
0

@dweedlez wrote:

I have an application that consumes an api, everything is fine when I run the ionic, it works 100%, it makes the requests in the api, everything is ok, but when I do the build in xcode and I open the app, it does not give me an error, but simply does not make any requirement in the API

GIF in ionic serve -> https://gyazo.com/33c7d310f077a83617d48e7ab214d69a

GIF in xcode project -> https://gyazo.com/2fd3913a3e09c167c3378aeac2293b9a

method in my provider

{ 
    return this.http.post(this.url + 'api/userLogin', {
        "email": account.email,
        "password": account.password
    }, {
        "headers": {
            'Accept':'application/json'
        }
    });
}

Method in login.ts

{
    console.log(this.conta);
    this.webservice.login(this.account).subscribe(data => {
        if (data.status == true) {
            this.webservice.updateTokenApp(data.token_app);
            this.navCtrl.setRoot(DashboardPage);
            this.presentLoadingDefault();
            console.log(data.token_app);
        } else {
            this.message="login ou senha invalido";
            this.presentToast();
        }
    }
}``
OBS: My app work 100% in ionic serve

Posts: 1

Participants: 1

Read full topic

Cordovafile-transfer deprecated - how to download files form an url?

$
0
0

@Fieel wrote:

Hi all.

I’ve been struggling recently trying to implement a simple ‘download’ button that points to an image url, the final result should be the user being able to save the image in its gallery.

I tried using file-transfer but apparently it’s been deprecated for some months now and i if i try to use it i keep getting warning messages in my IDE. I can’t seriously find a good guide/tutorial showing how to implement this simple task.

Suggestions?

Posts: 1

Participants: 1

Read full topic

Stack Based Navigation No Longer In Ionic Angular 4?

$
0
0

@daytonjallen wrote:

Hey everyone, I just upgraded to try out ionic angular 4 alpha but I’m getting an error that push and pop are no longer methods on NavController. Is it that these methods were moved to another class or, angular style routing is the only option now?

Posts: 2

Participants: 2

Read full topic

Ionic 3 underline

App crashing when launching: Property 'results' does not exist on type '{}'

$
0
0

@MMartiDeveloper wrote:

Hi guys, I’m having a weird issue using Ionic, every time I launch the application it throws the following error:

Seems that the error is happening in the home.ts file, but first I took a look at the console and no one of my console.log() are displayed, that’s weird! So I put a console.log() in the constructor of home.ts, ionic rebuild the changes and magically the app works with no problems.
Then I thought: “well, maybe was a little and occasional bug”, but when I closed the application and relaunched it again the same error is thrown again without the **console.log()**s.

I hope you can help me, I can keep developing the app but it’s pointless if it crashes when you use it. :disappointed_relieved:

Posts: 1

Participants: 1

Read full topic

Prevent showing google play service dialog in app start

$
0
0

@doroudi wrote:

I have built an application that uses google maps and FCM plugins, on some old devices like Android 4.4 when the app loads a prompt show for updating google play service. I have tried to downgrade google play service plugin’s version but it can’t be lower than v9, but installed google play service version on the device is 6. Is there any way to prevent showing this message in app start? or a way to disable these plugins when google play service is lower than the required version.

Posts: 1

Participants: 1

Read full topic


How to validate multiple Angular 2+/Ionic2+ form controls using one asynchronous function on submit?

$
0
0

@Natanael4354 wrote:

My form have a FormGroup with many FormControls.

When clicking on submit a request is send to the backend with the data from the form.

In case of error, the server return an object containing error information for each field with error. I’ts not an per field validation. It’s a single validation that validates all fields.

How to set this errors comming from one single request in the respective FormControls?

Posts: 2

Participants: 2

Read full topic

Run ionic 1 project with ionic 3

$
0
0

@dodomui wrote:

Hi,

I having several ionic v1 project running.
And would like to try out the ionic v3 now, upgrade to ionic 3 successfully and can start and serve / build ionic 3 project properly.

But i found that all my existing ionic v1 project cannot serve or build anymore.
Tried some method i read online but still cannot solve it.

  1. NPM install
  2. install or update @ionic/app-scripts

The only solution is I downgrade ionic 3 back to ionic 2 then only can run ionic 1 existing project properly.
This really stoping me to explore ionic v3 for my new project and appreciate if anyone got idea.
Thanks

Error as per below

Error: Cannot find module '/Users/.../node_modules/@ionic/app-scripts'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/.../node_modules/@ionic/cli-utils/lib/ionic-angular/app-scripts.js:9:16)
    at Generator.next (<anonymous>)
    at /Users/.../node_modules/tslib/tslib.js:107:75
    at Promise (<anonymous>)
    at Object.__awaiter (/Users/.../node_modules/tslib/tslib.js:103:16)
    at Object.importAppScripts (/Users/.../node_modules/@ionic/cli-utils/lib/ionic-angular/app-scripts.js:7:20)

Posts: 1

Participants: 1

Read full topic

Ion-searchbar in real time with database

$
0
0

@Quiesan wrote:

Hi !
How Can I interact with my database in real time when the user enter letter in ion-searchbar please ?

Posts: 1

Participants: 1

Read full topic

Ionic cordova-plugin-fcm error

$
0
0

@Ponchia wrote:

Hello everyone!
I’m trying to use the ionic cordova plugin fcm, but right after I installed it like it is explained here:
medium

I get the following error while trying to run it on an android device

(node:54438) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The “chunk” argument must be one of type string or Buffer
at validChunk (_stream_writable.js:253:10)
at Socket.Writable.write (_stream_writable.js:288:21)
at Socket.stream.write (/usr/local/lib/node_modules/cordova/node_modules/ansi/lib/newlines.js:36:21)
at Object. (/Users/zeno/Desktop/Bachelor/Ionic/ticaccio/plugins/cordova-plugin-fcm/scripts/fcm_config_files_process.js:80:24)
at Module._compile (module.js:662:30)
at Object.Module._extensions…js (module.js:673:10)
at Module.load (module.js:575:32)
at tryModuleLoad (module.js:515:12)
at Function.Module._load (module.js:507:3)
at Module.require (module.js:606:17)
(node:54438) 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)
(node:54438) [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.
cordova-android-support-gradle-release ANDROID_SUPPORT_VERSION: 26.+
cordova-android-support-gradle-release : WROTE /Users/zeno/Desktop/Bachelor/Ionic/ticaccio/platforms/android/build.gradle > 26.+

anyone can explain me why and what I have to do in order to solve this problem?

I’m creating the receiving app, not the sender, which will not be an app but a website. Still this will come in the future

Posts: 1

Participants: 1

Read full topic

Ionic 3 slow performance in android

$
0
0

@alibahjat wrote:

hello
why ionic 3 performance in android is slower than ios even with crosswalk is there any other solution in future like wk webview which it very enhaced ios performance

i think everyone can feel this problem

Posts: 3

Participants: 2

Read full topic

Viewing all 71247 articles
Browse latest View live


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