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

Cordova Android 7.0.0 released!

$
0
0

@Sujan12 wrote:

Cordova just released version 7.0.0 of cordova-android:

https://cordova.apache.org/announcements/2017/12/04/cordova-android-7.0.0.html

This version switches the Android project from the ancient structure to a modern one where the app code actually lives in app - so Android Studio and Android tooling is a lot more happy with it.

It is not installed by default yet, so you have to switch manually:

ionic cordova platform remove android
ionic cordova platform add android@7.0.0

The path changes can mean that some plugins don’t work any more, so it would be really nice if you could test it with your project and report any problems here or (if they are clearly problems with cordova-android) at issues.cordova.io

Happy testing!

Posts: 1

Participants: 1

Read full topic


Ionic Cordova run Android doesn't run

$
0
0

@adnanu wrote:

Shows this error


Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
   > Could not resolve org.xwalk:xwalk_core_library:22+.
     Required by:
         project :
      > Could not resolve org.xwalk:xwalk_core_library:22+.
         > Failed to list versions for org.xwalk:xwalk_core_library.
            > Unable to load Maven meta-data from https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.
               > Could not GET 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'.
                  > download.01.org

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] An error occurred while running cordova run android (exit code 1).

Posts: 2

Participants: 2

Read full topic

Restart app displays old content

$
0
0

@fhanisch wrote:

Hi Folks,

i have a crazy problem. I built a app with

ionic cordova build android --prod --release

After i installed the app on my phone the first run is good (Current app version, all fine).
When i close the app (press back button till app closes) and start it again i have a app version which is round about 2 Weeks old. I have no idea how two different versions of the app can be included in one apk…

I googled a lot but i cant find a solution for my Problem.
Did anyone of you had the same problem or any idea how i can solve this? This very strange.

Thats my ionic info:

cli packages: (C:\Users\fabian.hanisch\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.4
    Cordova Platforms  : android 6.3.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v6.10.3
    npm  : 5.5.1
    OS   : Windows 7

Regards,
Fabian

Posts: 1

Participants: 1

Read full topic

Wich is the http origin of Ionic app working on real device?

Ionic app in the cloud

$
0
0

@oporje wrote:

We need to have the App in the Cloud in order to give recent updates to the users without updating/downloading the new APK file.
Is it possible to have a Ionic hybrid app in the cloud so that users by default get the updates?

I need to know in detail how this can be achieved?

Posts: 2

Participants: 2

Read full topic

Ionic-native braintree

Problem with ion-tabs when there are many tabs

$
0
0

@akshatbhargava123 wrote:

I want to have these 11 tabs in my ionic 2 app but they are either overlapping or this, have tried a lot of css but couldn’t get through. Please help, thanks.

Image:

https://gyazo.com/361456b7ee2fa44fa4482b2acbd1823a

HTML code:

<ion-tabs #ionTabs [color]="navParams.data.color" tabsHighlight="true" tabsPlacement="{{tabsPlacement}}" text-wrap padding>
  <ion-tab *ngFor="let tab of tabs" [root]="tab.component" [rootParams]="navParams.data" [tabsHideOnSubPages]="true" tabTitle="{{ tab.title }}" tabIcon="{{ tab.icon }}"></ion-tab>
</ion-tabs>

Posts: 1

Participants: 1

Read full topic

How to call SOAP Api in ionic 3


How to ship or build the socket io chat app for device

$
0
0

@wfybiz wrote:

I have already finishing coding and my chat app works fine and looks good. I have a socket io chat-server inside ionic project folder. To make my chat app work I need to start the chat-server with node index.js and everything works fine. But now I am stuck in a point where I don’t know how to build this two things in one. I mean ionic app and socket io chat-server and how would I auto start the node index.js. I am very confuse at this point a help would be much appreciated in how to ship this two things for device ready. I hope I have explained clearly…

Posts: 1

Participants: 1

Read full topic

Download the file from php mysql server using Ionic app

$
0
0

@zuekegreen wrote:

Hi , i’ve created Ionic app and php file upload and save the data in my database. I want my Ionic app that would be download a file from php mysql , i already connect my Ionic app and php server , now how can i download the file from php mysql using my App ? i can’t find any solutions or source in the internet .

Posts: 1

Participants: 1

Read full topic

Global Translation for OK, Cancel and Done Texts

$
0
0

@lucasbasquerotto wrote:

I would like to know if there is a way to set global translations for the properties of okText, cancelText and doneText of ion-select and ion-datetime.

My code is similar to the one below:

interface IonicConfig {
	backButtonText: string;
	cancelText: string;
	dayNames: string;
	dayShortNames: string;
	doneText: string;
	monthNames: string;
	monthShortNames: string;
	okText: string;
}

...

constructor(
	private config: Config,
	private translationService: TranslationService,
	...
) { ... }

...

private someMethod() {
	let configData: IonicConfig = {
		backButtonText: this.translationService.translate(...),
		cancelText: this.translationService.translate(...),
		dayNames: this.translationService.translate(...),
		dayShortNames: this.translationService.translate(...),
		doneText: this.translationService.translate(...),
		monthNames: this.translationService.translate(...),
		monthShortNames: this.translationService.translate(...),
		okText: this.translationService.translate(...),
	};

	Object.keys(configData).forEach(key => {
		let value = configData[key];
		this.config.set(key, value);
	});
}

Looking at the config docs I see that the only property that I use that is in the docs is backButtonText.

On the other hand, the properties dayNames, dayShortNames, monthNames and monthShortNames are not in the config docs, but they work, so I think some properties are missing in the docs (these can be seen in the ion-datetime docs).

The properties cancelText, doneText and okText don’t work though. I expected them to work because they have the same names of properties of ion-select and ion-datetime, just like dayNames and so on, and having to define them per component is impractical IMO.

So either these properties have different names or they can’t be configured globally for the moment. If the later, is there some estimated time to implement it, to make them work globally for ion-select and ion-datetime?

Posts: 1

Participants: 1

Read full topic

Troubles to run my project on google chrome at a customer

$
0
0

@romulus64 wrote:

Hello,

With a workmate, we are deploying a web project to a customer, we are encountering troubles to run it.
Our web application consumes REST Api web service and it runs on Internet Explorer 11, not on google chrome (version 62.0.3202.94), this error message is displayed : Response with status: 0 for URL: null
I also installed the allow control allow origin application, even if I disable and enable it, I continue to have the same error message, any idea?
In case the solution is here, I put the code contained in the main.js file to generate the http header :

AppService.prototype.getHeaderWS = function () {
        var myHeaders = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["a" /* Headers */]();
        myHeaders.append('Accept', 'application/json');
        myHeaders.append('Content-Type', 'application/json');
        myHeaders.append('Access-Control-Allow-Origin', '*');
        myHeaders.append('Access-Control-Allow-Methods', 'POST, GET, OPTIONS');
		myHeaders.append('Authorization','Bearer CE8F9C763E919C7600000000F700FC0580F6142EE61E72B3867DAFEC900AE7C0A54746A9C2E1BF35BF50798B21997EF89');
		return myHeaders;
    };

Thanks

Posts: 2

Participants: 2

Read full topic

Proxy configuration

$
0
0

@mdline wrote:

Hello,

my ionic server is on the local host started with ionic --serve.
The backend is behind a corporate proxy.
So is it possible to make backend calls without deploying on a device and how?

Posts: 1

Participants: 1

Read full topic

Best approach to store data

$
0
0

@madbyte wrote:

Hi,

I’m new to Ionic (and JS) and I’m developing an app that read data from bluetooth devices. I have an history page where I need to show the history data of each device selected from a list. The data that I need to store/show are:

An uint8array buffer with 225 elements (the main history data)
one pointer (number)
one date (string) dd/mm/yy hh:mm:ss

My idea is to use Ionic Storage, taking the bluetooth address like key, but I’m not sure how to store all data to value. I was reading that I can save a JSON object but I’m not sure if I can use it in my case. My first idea is store all data like concatenated strings but maybe exists a better solution (and transparent) to save all the data without converting anything.

My questions are:
What is the best approach to achieve this?
Is better SQLite than Storage for my case?.

Any guidance or help?

Thank you.

Posts: 3

Participants: 3

Read full topic

Unable to use ionic cordova run android --prod --release

$
0
0

@kkoych wrote:

When trying to run ionic cordova run android --prod --release I get the following error

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

Sign the build using '-- --keystore' or '--buildConfig' or sign and deploy the unsigned apk manually using Android tools.

[ERROR] An error occurred while running cordova run android --keystore=platforms/android/keystore/my-release-key.jks
        --s... (exit code 1).

I was able to manually build an unsigned .apk and then sign it using jarsigner and zipalign as per https://ionicframework.com/docs/intro/deploying/

However I would like to know what steps do I need to take so that the run command executes correctly?

Posts: 4

Participants: 2

Read full topic


Rendering differencies Ipad iOS10 vs iOS 11

$
0
0

@untildev wrote:

Hi there !

I’m building an app for iPad. using ionic components. I’m facing huge rendering differencies between ios11 vs 10 on devices & simulators.

Untill now i worked for phone apps only Droid vs iOS differencies are obvious.
Is that a common issue with tablets or is iOS11 introducing a breaking change on rendering ?

Did someone face this yet ? How one can explain ?

Cheers

Posts: 2

Participants: 2

Read full topic

Ionic native file plugin - file.readAsDataURL returns bad base64 string

$
0
0

@seevoovapp wrote:

Hey.
i diden’t found the issues section in the cordova repo so i am writing it here.
when using the function file.readAsDataURL (which suppose to return the file in base64 encoding) in web and android it works great but in ios it returns a bad base64 string. the string contain many line breaks. the workaround i found is to use:
imageData = imageData.replace(/[\n\r]+/g, ‘’);
in order to correct the base64 string.

without the above, if the file is an image SafeStyle will not be able to present it.

hope it helps.

Posts: 1

Participants: 1

Read full topic

Content not updating on ionViewDidLoad

$
0
0

@aditya_1027 wrote:

I am getting data from server with get request which i am using in ionViewDidLoad. But content is not updating when i am changing value of variable.

It does change when i do some action like… If i open sidemenu or click a button.

Posts: 1

Participants: 1

Read full topic

Property 'catch' does not exist on type 'PromiseLike'

$
0
0

@newtonmunene wrote:

Im an ionic beginner and was following some tutorials and as I was trying to catch an error I ran into some typescript errors… Here is my code.

addnewmessage(msg) {
    if (this.buddy) {
      var promise = new Promise((resolve, reject) => {
        this.firebuddychats.child(firebase.auth().currentUser.uid).child(this.buddy.uid).push({
          sentby: firebase.auth().currentUser.uid,
          message: msg,
          timestamp: firebase.database.ServerValue.TIMESTAMP
        }).then(() => {
          this.firebuddychats.child(this.buddy.uid).child(firebase.auth().currentUser.uid).push({
            sentby: firebase.auth().currentUser.uid,
            message: msg,
            timestamp: firebase.database.ServerValue.TIMESTAMP
          }).then(() => {
            resolve(true);
            }).catch((err) => {
              reject(err);
          })
        })
      })
      return promise;
    }
  }

and screenshots

Posts: 2

Participants: 2

Read full topic

Vertically align center for a ion-card

$
0
0

@JEricaM wrote:

Hi to everyone.
I’m developing a login form, so inside my <ion-content padding > I have an <ion-card> (used like a container of the login form) that I want to center vertically. I tried different ways with css flexbox and other css tricks but nothing worked for me! The card remains at the top of the page.
Can you help me please?

<ion-content >

    <ion-card id = "login-card">
        <form [formGroup]="signInForm" (submit)="doEmailPswLogin()" class="input">
            <ion-list>

              <ion-item>
                <ion-label fixed>Email</ion-label>
                <ion-input type="email" [(ngModel)]="email" formControlName="email"></ion-input>
              </ion-item>

              <ion-item>
                <ion-label fixed>Password</ion-label>
                <ion-input type="password" [(ngModel)]="password" formControlName="password"></ion-input>
              </ion-item>


              <div padding>
                <button ion-button color="primary" block [disabled]="buttonDisabled">Effettua il login</button>
              </div>

            </ion-list>
          </form>
    </ion-card>
</ion-content>

I do not have any kind of scss acting on this page. All the tests I did were useless (the card did not move a millimeter), except using margin-top on the card, but it’s not a correct way to do it, I would like to have something responsive!
Thank you in advance!

Posts: 2

Participants: 2

Read full topic

Viewing all 49526 articles
Browse latest View live


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