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

Is it possible to use Ionic simply for the UI on native applications?

$
0
0

Because you then a) have to move the dynamic data to display from your native app into there somehow and b) Ionic apps are built as SPA that take some time to start up. Not really for 1 page content things as display instantly.

There might be workaround though - no experience.


Best way to handle authenticated areas in app?

Image not displaying while displaying contacts

How to properly re-render a component in Ionic manually

$
0
0

How to force a component re-rendering in Ionic 2, is that possible? I want to update my current component to show the new value that have been changed and shown the correct value.

Grouping entries in list by first letter

$
0
0

Some general advice:

  • Get the "sort contacts" list in its own function. Then you also don't have to show it here as it is not relevant to this problem.
  • Same for the constructor - just tell people what format your sortedContacts is. That should be enough.
  • Last you should fix then intendation of your html - google for "htl beautifier" and use one of them to see what I mean.

Ionic cordova run android: error in opening zip file

$
0
0

It says what the error is. It doesn't recognize your Genimotion emulator. You can just use one provided by Android Studio.

Error when i run the comand "cordova build android"

$
0
0

I run this code an then i run again cordova build android and then appeard that:

[09:40:56]  lint finished in 5.39 s
✖ Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build android (exit code 1):

        (truncated) ... mpilationSafeguard UP-TO-DATE
        :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
        :CordovaLib:processDebugJavaRes UP-TO-DATE
        :CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
        :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
        :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
        :CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
        :CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
        :CordovaLib:bundleDebug UP-TO-DATE
        :CordovaLib:preReleaseBuild UP-TO-DATE
        :CordovaLib:checkReleaseManifest
        :CordovaLib:prepareReleaseDependencies
        :CordovaLib:compileReleaseAidl UP-TO-DATE
        :CordovaLib:compileReleaseNdk UP-TO-DATE
        :CordovaLib:copyReleaseLint UP-TO-DATE
        :CordovaLib:mergeReleaseShaders UP-TO-DATE
        :CordovaLib:compileReleaseShaders UP-TO-DATE
        :CordovaLib:generateReleaseAssets UP-TO-DATE
        :CordovaLib:mergeReleaseAssets UP-TO-DATE
        :CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
        :CordovaLib:packageReleaseRenderscript UP-TO-DATE
        :CordovaLib:compileReleaseRenderscript UP-TO-DATE
        :CordovaLib:generateReleaseResValues UP-TO-DATE
        :CordovaLib:generateReleaseResources UP-TO-DATE
        :CordovaLib:packageReleaseResources UP-TO-DATE
        :CordovaLib:processReleaseManifest UP-TO-DATE
        :CordovaLib:generateReleaseBuildConfig UP-TO-DATE
        :CordovaLib:processReleaseResources UP-TO-DATE
        :CordovaLib:generateReleaseSources UP-TO-DATE
        :CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
        :CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
        :CordovaLib:processReleaseJavaRes UP-TO-DATE
        :CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
        :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
        :CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
        :CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
        :CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
        :CordovaLib:bundleRelease UP-TO-DATE
        :prepareComAndroidSupportSupportCompat2520Library UP-TO-DATE
        :prepareComAndroidSupportSupportCoreUi2520Library UP-TO-DATE
        :prepareComAndroidSupportSupportCoreUtils2520Library UP-TO-DATE
        :prepareComAndroidSupportSupportFragment2520Library UP-TO-DATE
        :prepareComAndroidSupportSupportMediaCompat2520Library UP-TO-DATE
        :prepareComAndroidSupportSupportV42520Library UP-TO-DATE
        :prepareComGoogleAndroidGmsPlayServicesBase1101Library UP-TO-DATE
        :prepareComGoogleAndroidGmsPlayServicesBasement1101Library UP-TO-DATE
        :prepareComGoogleAndroidGmsPlayServicesLocation1101Library UP-TO-DATE
        :prepareComGoogleAndroidGmsPlayServicesMaps1101Library UP-TO-DATE
        :prepareComGoogleAndroidGmsPlayServicesTasks1101Library UP-TO-DATE
        :prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
        :prepareDebugDependencies
        :compileDebugAidl UP-TO-DATE
        :compileDebugRenderscript UP-TO-DATE
        :generateDebugBuildConfig UP-TO-DATE
        :generateDebugResValues UP-TO-DATE
        :generateDebugResources UP-TO-DATE
        :mergeDebugResources
        Error: Failed to crunch file C:\Users\espem\Desktop\Universidad\Desarrollo de
        Apps\Practicas\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.0.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
        into C:\Users\espem\Desktop\Universidad\Desarrollo de
        Apps\Practicas\platforms\android\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
        :mergeDebugResources FAILED

        BUILD FAILED

        Total time: 25.985 secs

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':mergeDebugResources'.
        > Error: Failed to crunch file C:\Users\espem\Desktop\Universidad\Desarrollo de
        Apps\Practicas\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.0.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
        into C:\Users\espem\Desktop\Universidad\Desarrollo de
        Apps\Practicas\platforms\android\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png

        * 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:
        Execution failed for task ':mergeDebugResources'.
        > Error: Failed to crunch file C:\Users\espem\Desktop\Universidad\Desarrollo de
        Apps\Practicas\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.0.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png
        into C:\Users\espem\Desktop\Universidad\Desarrollo de
        Apps\Practicas\platforms\android\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png

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

How to begin with ionic?

$
0
0

Hi i want to begin by give my escuse for language i'm a french guy and the barrer of language is so big !

I have juste discover Ionic 3 and her possibilities , i decide to learn it , On getting started tutorial in the website , but its a little bit dificult for me beacause what i see when i launch my project with " ionic start MyIonicProject tutorial" is not the same with documentation , so i d'ont know how really learn and master this technology !

So please if sommeone can give me indication to begin from strach and something with all update , i really want to learn Ionic but , now it's so difficult in front of me , thank you verry much for reading.


Error when i run the comand "cordova build android"

$
0
0

That is an unrelated problem, actually quite common and googling and searching the forum for parts of

should help you find a solution. (especally the mergeDebugResources).

Undefined Properties in nested Component

$
0
0

I am trying to use the MaterialModule in a component of one of my pages as well. Do I need to export it in my Page @NGModule or ? Right now the component cannot seem to access the module and giving me errors about undefined properties.

app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';

import { MyApp } from './app.component';

import { MaterialModule } from '@angular/material';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';

@NgModule({
  bootstrap: [IonicApp],
  declarations: [
    MyApp
  ],
  entryComponents: [
    MyApp
  ],
  imports: [
    BrowserModule,
    MaterialModule,
    IonicModule.forRoot(MyApp),
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}

randompage.module.ts

import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { RandomPage } from './random';
import { MapboxComponent } from '../../components/mapbox/controller';
import { MapboxViewComponent } from '../../components/mapbox/view';
import { RandomMapViewComponent } from '../../components/random-map/random-map-view';
import { RandomMapComponent } from '../../components/random-map/random-map';

@NgModule({
  declarations: [
    RandomPage,
    MapboxComponent,
    MapboxViewComponent,
    RandomMapComponent,
    RandomMapViewComponent
  ],
  imports: [
    IonicPageModule.forChild(RandomPage)
  ],
  exports: [
    RandomPage
  ]
})

export class RandomPageModule {}

Undefined Properties in nested Component

$
0
0

MaterialModule is deprecated and slated to be removed.

Color picker ionic

$
0
0

yw. If you have other question don't hesitate. I imporved it with predefined color chooser. I will update the repository if I have time

Ionic View does not show any styles

$
0
0

Yes Ionic serve shows everything as expected. I actually think it was a caching issue with Ionic View, now I seem to be getting some of the styles and colors, but a background image is still missing

writeFile new line

$
0
0

I am using file plugin from ionic native
i want to make a new line before adding the new input
this.file.writeFile(this.file.externalRootDirectory, 'mydir.txt',this.dateForDisplay,{ replace: false, append: true });
how i can do that

thank you at advance

Undefined Properties in nested Component

$
0
0

Do you have a link stating that? Is that what is causing the issue or for stuff like this do I need to do more in my exports and such?


Undefined Properties in nested Component

$
0
0

This is the first hit in a Google search I just ran on the phrase "MaterialModule deprecated." See breaking changes in cesium-cephalopod, from April.

Infinite scroll is visible

$
0
0

Yeah that is exactly what I need in that link, just hopefully I can get that to work with infinite scroll.

Thanks.

Keith

NavGuards with ionic-angular 3.5.0 has a breaking change

$
0
0

Yesterday Mike told me we have to do the redirection on pushing the page like this:

this.nav.setRoot(pageName)
              .then((permission) => {
                  if (!permission) {
                      this.nav.setRoot('LoginPage');
                  }
              });

This is working but only a part of the solutions, what if you go direct in the browser to the link, you'll never redirect to the LoginPage, but I think this is a possible scenario, we have and probably also others.

Undefined Properties in nested Component

$
0
0

Thanks, did not scroll down the page, was just looking at the last release.

Ionic View does not show any styles

$
0
0

Paths that work in ionic serve don't necessarily work in Ionic View and native apps. Make sure you use relative paths as you were inside index.html (or changed to the folder for CSS).

Viewing all 228529 articles
Browse latest View live


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