Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228529 articles
Browse latest View live

Ionic cordova run android: error in opening zip file


Setting Focus to an Input in Ionic

How to read this file JSON

$
0
0

Its an invalid json. In json names need to be quoted strings. E.g.

{
    "etalon": {
          "8": {
               "course": []
           }
     }
}

Seems like its a Javascript object printed on console. User JSON.stringify(obj) to print it correctly as JSON string

Setting Focus to an Input in Ionic

$
0
0

they have, but sometimes the usecase is more compicated than that.
For instance: I have a button, which requires a user to be logged in, but he can click it always.
If not loggedIn a modal with the loginpage opens.
Logging in will lead to the removal of the modal (from within the modal)
Now on the underlying page stuff has changes, and the ion-content needs to resize. To properly do this i need to wait unit the transition is over.

I will check if there is an observable for the open - close events, but I doubt whether they take the transition time into account.

But the navTransition looks promising!

Color picker ionic

Ionic Refresh Current Page

$
0
0

this.navCtrl.setRoot(this.navCtrl.getActive().component); it's not the solution :sob:. It removes all previous navigations.

I'm showing a value that changes when I read a bluetooth code. It works perfect, but the variable do not change on screen, it just change when I press any button on the screen. Someone have a solution to this?

Application error. The connection to the server was unsuccessful

$
0
0

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Setting Focus to an Input in Ionic

$
0
0

mmmm what about the profileModal.onDidDismiss
look at this:

import { Component } from '@angular/core';
import { ModalController, ViewController } from 'ionic-angular';

@Component(...)
class HomePage {

 constructor(public modalCtrl: ModalController) {

 }

 presentContactModal() {
   let contactModal = this.modalCtrl.create(ContactUs);
   contactModal.present();
 }

 presentProfileModal() {
   let profileModal = this.modalCtrl.create(Profile, { userId: 8675309 });
   profileModal.onDidDismiss(data => {
     console.log(data);
   });
   profileModal.present();
 }

}

@Component(...)
class Profile {

 constructor(public viewCtrl: ViewController) {

 }

 dismiss() {
   let data = { 'foo': 'bar' };
   this.viewCtrl.dismiss(data);
 }

}

here: http://ionicframework.com/docs/api/components/modal/ModalController/


Application error. The connection to the server was unsuccessful

$
0
0

Since the error only occurs on Android platform, the first option is the best.

    <platform name="android">
        <preference name="loadUrlTimeoutValue" value="700000" />
    </platform>

Ionic 1 On keyboard open i see this

Error: exporting my App from Creator

$
0
0

Unfortunately I have no idea how Ionic Creator works, and there is not much activity of Creator users here either.
With the .zip you could probably extract the project and build using Ionic CLI. But no details on this as well.

Setting Focus to an Input in Ionic

$
0
0

Cool, Im gonna look into that, hoping that will take the animation time into acount. thnx, will post what I find here for reference

Setting Focus to an Input in Ionic

$
0
0

Yup, thats what i just thought! whether the event is fired before, during or after the transition! let us know!!
cheers!

Ionic cordova run android: error in opening zip file

$
0
0

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

Longer running background process (synching huge amounts of data) - general pointers?

$
0
0

Sorry, my rambling message sent your down a wrong path, I provided too much unimportant detail:

The process only has to be active when the app is running, I just have to make sure that stuff doesn't break when the app is restarted in between. Actually, in the first version I am even ok with it displaying a note "Please don't restart the app now or you will have to start from scratch" and only saving everything when the process is done.

Same for the empty state / wireframe thoughts. I can of course do that, but in a first version I am okay with a modal or overlay that says "syncing data". The user wants the data to be there, so this is not perfect UX, but a worth complexity tradeoff for the first version.

The data is actually a set of entries in a database (simplified) that is delivered in JSON from the API. I have to call one endpoint to get a list of foo ids, then many calls to the foo endpoint as there is not foos endpoint to get many at once.


Error: exporting my App from Creator

$
0
0

I though that at the beggining,

I've create a new project with ionic CLI and change the content of the www folder for the unziped content of creator but it doesn't work at all. When I have that i don't know how to create the apk file.

Let's see if someone could help. Thanks for everything.

Error: exporting my App from Creator

$
0
0

How did you create your Ionic project? You have to make sure it is a "Ionic v1" project.
What version of the CLI did you install and how?

Image not displaying while displaying contacts

$
0
0

Please feel free to ask any questions about my code. You almost had it, but didn't look at the data structures and so had not way to really solve it.

Disable tabs on home page

$
0
0

I use Tabs and I can disable tabs only homepage
How to do ?
I have 4 pages

HomePage
Second Page
Third Page
Tabs Page

My root page > HomePage

Ionic cordova run android: error in opening zip file

$
0
0

Do you have solved this problem?

Viewing all 228529 articles
Browse latest View live


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