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

Error generating PDF android 6

$
0
0

@iver2001 wrote:

Good evening, I hope you can help me,
I am using the pdfMake library to generate pdf, the problem is that e versions 6 and 7 of android does not open the window with the pdf created.
Only in lower versions could someone help me to know what to do to solve this problem is a project in ionic 1
cordova version 5.0.0

Posts: 2

Participants: 2

Read full topic


Untraceable build error

$
0
0

@jordanomac wrote:

Ionic version: (check one with “x”)
[ ] 2.x
[x ] 3.x
[ ] 4.x

I’m submitting a … (check one with “x”)
[x ] bug report
[ ] feature request

Current behavior:
When I try to build for Android I keep getting a simple error that appears as the following:

C:\path\to\project>ionic cordova run android --verbose --debug
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] Daemon found (pid: 312)
[INFO] Running app-scripts build: --platform android --target cordova

[12:58:34] build dev started …
[12:58:34] clean started …
[12:58:34] clean finished in 15 ms
[12:58:34] copy started …
[12:58:34] transpile started …
[12:58:39] transpile finished in 5.02 s
[12:58:39] preprocess started …
[12:58:39] deeplinks started …
[12:58:39] deeplinks finished in 200 ms
[12:58:39] preprocess finished in 202 ms
[12:58:39] webpack started …
[12:58:40] copy finished in 5.54 s
[12:58:50] webpack finished in 10.64 s
[12:58:50] sass started …
[12:58:51] sass finished in 1.11 s
[12:58:51] postprocess started …
[12:58:51] removed unused font files
[12:58:51] postprocess finished in 34 ms
[12:58:51] lint started …
[12:58:51] build dev finished in 17.24 s

ionic cordova prepare android
cordova prepare android
Error: Cannot read property ‘length’ of undefined

[ERROR] An error occurred while running cordova prepare android (exit code 1).
Expected behavior:
I’ve tried removing and re-adding the android platform, I’ve tried switching npm versions, I’ve tried deleting node_modules and several other things and I still haven’t been able to successfully build my project. Does anyone know how I could go about resolving this issue?

Ionic info:

cli packages: (C:\path\to\project\node_modules)

@ionic/cli-utils  : 1.12.0
ionic (Ionic CLI) : 3.12.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

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

System:

Android SDK Tools : 25.2.5
Node              : v8.6.0
npm               : 5.3.0
OS                : Windows 10

Misc:

backend : legacy

Posts: 1

Participants: 1

Read full topic

How to get dynamic sidemenu after login

$
0
0

@Phanitechie wrote:

I want to create a page with login and after user logs in i want to display the dynamic sidemenu when ever user creates that sidemenu menu components it has to redirect to the respective page and how can i do this if any body got a sample it would be great and im thinking to put component name in the db and via service making it call and the after click it will redirected . if there is another approach please let me know.**if u people know any dynamic sidemneu sample file using json also please let me know **

Posts: 1

Participants: 1

Read full topic

Ionic APK build for Android started breaking

$
0
0

@utbc wrote:

Hi All,

here is my problem. recently my ionic build started breaking, and after researching I found that I can no longer use special characters in my plugin versions.
i.e. but it wants all versions to appear without the characters.
i.e. …if you notice the difference

So ok, great I took them out, and everything works. sort of…
Now we are also developing for IOS, and my IOS build will not work without the characters.

my work around for now is to maintain 2 version on config.xml and package.json

has anyone had this happen recently?

thanks!

Posts: 3

Participants: 2

Read full topic

Two apps based on template. Second app doesn't install

$
0
0

@kipdisk wrote:

This week is my first encounter with Ionic, so this might be a beginner-only problem. Couldn’t find something similar on the forum however.

I’ve built two similar apps (chatbots using IBM Watson Bluemix) for two different groups of end-users.

In effect; I buit one -> works fine -> copied the project and built the second -> works fine.

So, stand-alone, they both work as expected.

However, it seems impossible to install BOTH apps on the same device.
While installing the second app, it keeps asking to update instead of install. (Update fails, by the way…)

I guess I missed a reference to the first app somewhere when cloning it for the second app.

I changed the name in:

  1. ./config.xml
  2. ./ionic.config.json
  3. ./package.json

In desperation I eventually used notepadd++ “find in files” to update the old name to the new name EVERYWHERE (1358 replacements, most of 'em in the node_modules folder)

Still, no succes; it keeps asking if I want to update instead of installing the second app.
This works both ways; if I uninstall both, install the ‘second’ app first, and then try to install the ‘first’ I get the same problem.

Any hints would be very much appreciated.

Posts: 4

Participants: 2

Read full topic

BackgroundColor property on crosswalk plugin

$
0
0

@Atome wrote:

Hi,

I develop a Ionic application (ionic1 1.2.4 / cordova android 5.1.1 / cordova ios 4.1.0) and I use the last crosswalk plugin version which is compatible with my environment (cordova-plugin-crosswalk-webview 2.1.0 / crosswalk version 21).

I’m trying to use the BackgroundColor property (in my config.xml file) to prevent the appearance of a white screen when keyboard is dismissing (it seems there is no component in my DOM which has white background color).

My main app color is F9E8D5. If I set

<preference name="BackgroundColor" value= "0xFFF9E8D5" />`

the white screen is still there.

If I set

<preference name="BackgroundColor" value= "0x00F9E8D5" />

it is replace by a black screen (it shows that this property is really used).

I tried with « #F9E8D5 », « #FFF9E8D5 », « #00F9E8D5 » without any result.

Do you have any idea to fix this issue ? Thank you very much !

Posts: 1

Participants: 1

Read full topic

Https post not working on iOS

$
0
0

@shaun2344 wrote:

Hi,

I am using the following code to send a post request to my API which is working fine within the browser (with CORS disabled) and on a native Android build. However the same code built for iOS doesn’t work. The code is below:

return new Promise((resolve, reject) => {
      this.http.post(this.apiUrl+'/login/', data)
        .subscribe(res => {
          resolve(res);
        }, (err) => {
          reject(err);
        });
    });

The output I see within Xcode when running the app is:

{"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown Error","url":null,"ok":false,"name":"HttpErrorResponse","message":"Http failure response for (unknown url): 0 Unknown Error","error":{"isTrusted":true}}

If I load my app via phone gap on iOS the API calls work fine, but fail when built via xcode and also when running via ionic view.

Posts: 1

Participants: 1

Read full topic

How to update list of toggles in the DOM

$
0
0

@ghostrunners wrote:

Hi, I have a list of places that I want user to select from. The interface I chose for this is a toggle. I chose toggle because I really like the look and feel, and I may want to allow selecting multiple down the road.

<ion-list>
   <ion-item *ngFor="let location of places">
      <ion-label>{{location}}</ion-label>
         <ion-toggle (ionChange)="locationSelected($event, location)">
         </ion-toggle>
   </ion-item>
</ion-list>

Currently, however, I only want the user to select one toggle from that list. Which means when they select that toggle, all the other toggles will be checked to false. I’ve explored using ViewChild, contentRef. If I recall something about React, is that once I modify the data set (places), it would re-render the DOM. Does ng/ionic do something similar for my problem. I know it does it for a 2-way data bind. Is there a way to group all my toggles into an ngModel or something? A bit stuck. Thanks,

Posts: 11

Participants: 3

Read full topic


How to use @IonicPage with angular cli

$
0
0

@salmanmd786 wrote:

I have my app already developed on angular-cli version 4.4.3, I tried integrating the ionic-angular version 3.7.1, and did some modifications on top of it to make the app run, everything works fine. But the issue is @IonicPage, this is not working. Is there a way to make it work using angular-cli?

Error:

ERROR Error: Uncaught (in promise): invalid link: HomePage
at resolvePromise (zone.js:824)
at Object.reject (zone.js:746)
at Nav.webpackJsonp…/…/…/…/ionic-angular/navigation/nav-controller-base.js.NavControllerBase._fireError (nav-controller-base.js:322)
at Nav.webpackJsonp…/…/…/…/ionic-angular/navigation/nav-controller-base.js.NavControllerBase._failed (nav-controller-base.js:310)
at nav-controller-base.js:365
at ZoneDelegate.webpackJsonp…/…/…/…/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:392)
at Object.onInvoke (core.es5.js:3890)
at ZoneDelegate.webpackJsonp…/…/…/…/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
at Zone.webpackJsonp…/…/…/…/zone.js/dist/zone.js.Zone.run (zone.js:142)
at zone.js:873

Thanks.

Posts: 2

Participants: 2

Read full topic

Is background plugin illegal plugin?

$
0
0

@YousefRabieKhalil wrote:

i use background plugin for doing some processing while the app in background mode from here

appstore just reject my app and the replay was

Your app declares support for audio in the UIBackgroundModes key in your Info.plist but did not include features that require persistent audio.

Next Steps

The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the “audio” setting from the UIBackgroundModes key.

i’m didn’t use any audio plugin i just use phonegap-plugin-local-notification here
is phonegap-plugin-local-notification use sound ?
and if yes can i disable this sound ?
if no what a solution for this situation ?

Posts: 2

Participants: 2

Read full topic

Cordova CLI `--browserify`

$
0
0

@Sujan12 wrote:

Just found out that Cordova CLI has a --browserify option that “Compile plugin JS at build time using browserify instead of runtime.”-

What’s the benefit of that?
Has anybody used it?

Posts: 1

Participants: 1

Read full topic

Ionic Pro: Build Fails

$
0
0

@jmbinnacle wrote:

I am trying to follow the guidelines online to add monitoring to an app in Ionic Pro. It works when running locally using “ionic serve” but the build script is failing with the following error:

Cannot find module ‘@ionic/pro’ on the line where I am trying to import Pro.

Any thoughts?

Posts: 6

Participants: 3

Read full topic

Failed to upload ipa to storage

$
0
0

@sammoka wrote:

Hi All,

Trying to build and keep getting this error. Has anyone come across this before?

Screenshot at Oct 07 03-02-34

Seems to be related to this post

Posts: 1

Participants: 1

Read full topic

Sudo npm install -g ionic@latest installs 3.6.1 and not 3.7 on mac

Ionic 3. Make sign up page fixed / stay in place

$
0
0

@danmemememe wrote:

I have a simple sign up page with some inputs. However, when focusing on an input element my whole page shifts upwards. Can I make the whole page be fixed? Or not move around even when keyboard is launched?

Thanks

Posts: 2

Participants: 2

Read full topic


iOS app img src field

$
0
0

@ankarthik wrote:

I am working on a iOS based Ionic-Native mobile app.
I want to load images from photos library in iOS.

And, I want to load them as

However, I am not able to figure out what kind of path to use.

Any help is appreciated.

Thanks in advance.

Posts: 2

Participants: 2

Read full topic

Ionic item transparent background

$
0
0

@SaeedAnsari wrote:

Hello

i am trying to make my ionic items transparent to 70% opacity. i am following How to make ion-items transparent? but am unable to achieve the desired result

My code is basic:


      <ion-list>
        <ion-item *ngFor="let post of posts" no-padding no-lines>
....
.....
...

can you show me how to do this?

Posts: 1

Participants: 1

Read full topic

How to post image/video to server using Rest API

$
0
0

@3starinfo wrote:

Hi
i am building social network apps. so here how can i store image/video of each post by users.
simple where can we store image/video uploading from mobile gallery to server?

ankit.gorasiya@gmail.com is my email please message me.

Thanks

Posts: 1

Participants: 1

Read full topic

Adding tabs to a modal view

$
0
0

@khaledAlkathiri wrote:

In my app, I have a page with a list of renters and when I click on a renter a modal view will be shown with the renter details. But I want to modify the modal view to have two tabs, one for the renter details and the other one for comments but when I try this I keep getting a black screen!!! Why???

Posts: 1

Participants: 1

Read full topic

Admob in ionic

$
0
0

@narjes wrote:

Hello ,
i want to monetise my ionic app via Admob ,so i create an account and put the ID Publisher in the right code . but nothing is appearing ! (as a test in the browser) , but when i run with my devise (sumsung ) i got that problem:

C:\Users\ATIA>cd caf

C:\Users\ATIA\caf>ionic run android
(node:8872) fs: re-evaluating native module sources is not supported. If you are
using the graceful-fs module, please update it to a more recent version.
Running command: “C:\Program Files\nodejs\node.exe” C:\Users\ATIA\caf\hooks\afte
r_prepare\010_add_platform_class.js C:\Users\ATIA\caf

ANDROID_HOME=C:\Apps\android-sdk_r24.4.1-windows\android-sdk-windows

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_91

Subproject Path: CordovaLib

Starting a new Gradle Daemon for this build (subsequent builds will be faster).

FAILURE: Build failed with an exception.

  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
    2.14.1/userguide/gradle_daemon.html
    Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

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

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

  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/
    2.14.1/userguide/gradle_daemon.html
    Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

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

Posts: 5

Participants: 2

Read full topic

Viewing all 70929 articles
Browse latest View live


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