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

Image not displaying while displaying contacts

$
0
0

You are changing your code... before you used contacts[i].photos[0].value, now only contacts[i].photos.

What is the expected format of contacts[i]? I have no idea where that comes from, so of course I don't know what it should look like. Do a console.log(contacts) to see all your data.

Do any of your contacts have photos at all?


Ionic error adding platform

Ionic error adding platform

$
0
0

Working for me:

PS C:\Users\Jan\Documents\my-app> cordova platform add android@6.2.3
Using cordova-fetch for cordova-android@6.2.3
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: com.phonegap.helloworld
        Name: helloworld
        Activity: MainActivity
        Android target: android-25
...

I would gues ssomething is broken with your connection.
Can you install 6.2.2?

Ionic error adding platform

Obfuscating java code using proguard in Ionic 1

$
0
0

Created a demo application for Ionic and added the android platform to the same. Imported this very same android project under the platforms directory into my Android Studio for further modifications at the native end. Below is my project structure:

+DemoApp
-build
-cordova
-CordovaLib
-gradle
-libs
-platform_www
-res
-src
-AndroidManifest.xml
-build.gradle
-proguard-android.txt
-project.properties
-settings.gradle

added below lines in my build.gradle to enable proguard:

buildTypes {
            release {
                signingConfig signingConfigs.release
                minifyEnabled true
                debuggable false
                shrinkResources true
                proguardFiles 'proguard-android.txt'
            }

        }

However, the issue that I am facing is that on generating a signed APK, my build does not consider the Proguard files and its rules.I do not see any proguard operations being conducted in the gradle console. The mapping.txt file isn't generated in the build->outputs->release folder either. How to I enable proguard in my project so as to obfuscate the java files in the src folder?

Offline first Mobile App with firebase

$
0
0

Hi Leob, looking into an alternative for Firebase, offline first in js. Are you still using feathers.js, how'd it go ? Do you use the socket.io implementation ?
My main app is using ionic V1.
Thanks !

NavController cache problem

$
0
0

Here is my code for better understanding.

export class MyApp {
@ViewChild(Nav) nav;
constructor(
   ...
   platform: Platform
   ...
   ) {
        platform.registerBackButtonAction(()=>{
            alert(this.navCtrl.getViews().length);
            this.navCtrl.pop();
        });
   }
   ...
}

The length of views is 1 always even though there are many views.

Ionic android gradle build takes long time!

$
0
0

So if the build time changed, it was caused by a change in Cordova CLI or cordova-android. As you are now on 6.2.3 it seems you also updated that.

Did you also update your Android Studio and/or SDK? Then maybe it's not even Cordova's fault but just a change in Android.


Ionic Battery Status on iOS

Why battery status update after plugging the mains charger in/out takes place on the Android after tapping the touch screen?

Error in Upgrading: Type 'IterableDiffer' is not generic

$
0
0

I've been trying to upgrade my project from Ionic 2 to Ionic 3 and I have been unable to shake this error:

[11:22:15] typescript: node_modules/ionic-angular/components/virtual-scroll/virtual-scroll.d.ts, line: 220
Type 'IterableDiffer' is not generic.

 L219:  private _dom;
 L220:  _differ: IterableDiffer<any>;
 L221:  _scrollSub: any;

I've seen that this error gets thrown when the typescript is updated to latest, among a slew of others. I've been around the block a couple times with that. I can't tell if this is something that I'm doing wrong or if there's a bug in the virtual scroll file (my guess is that if it were a bug, it would have been found way before this).

Here are the dependencies and devDependencies as they show up in my package.json.

"dependencies": {
        "@agm/core": "^1.0.0-beta.0",
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@angular/platform-server": "4.1.3",
        "@ionic-native/background-geolocation": "^3.12.1",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/deeplinks": "3.12.1",
        "@ionic-native/facebook": "3.12.1",
        "@ionic-native/geolocation": "3.12.1",
        "@ionic-native/image-picker": "3.12.1",
        "@ionic-native/in-app-browser": "3.12.1",
        "@ionic-native/splash-screen": "3.12.1",
        "@ionic-native/sqlite": "3.12.1",
        "@ionic-native/status-bar": "3.12.1",
        "@ionic/storage": "2.0.1",
        "angular2-universal": "^2.1.0-rc.1",
        "body-parser": "^1.16.0",
        "braintree-web": "^3.12.1",
        "c3": "^0.4.11",
        "cordova-ios": "^4.4.0",
        "cordova-plugin-compat": "^1.1.0",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-geolocation": "^2.4.3",
        "cordova-plugin-mauron85-background-geolocation": "^2.2.5",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.1",
        "cordova-plugin-whitelist": "^1.3.1",
        "dotenv": "^4.0.0",
        "express": "^4.14.1",
        "ionic-angular": "3.5.0",
        "ionic-native": "2.9.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "ng2-cookies": "^1.0.6",
        "ng2-file-upload": "^1.2.0",
        "preboot": "^4.5.2",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "typescript": "^2.3.4",
        "zone.js": "0.8.12"
    },
    "devDependencies": {
        "@ionic/app-scripts": "1.3.12",
        "@ionic/cli-plugin-cordova": "1.4.0",
        "@ionic/cli-plugin-ionic-angular": "1.3.1",
        "node-sass": "^4.3.0",
        "raw-loader": "^0.5.1",
        "rollup-plugin-replace": "^1.1.1",
        "sass-loader": "^6.0.3"
    },

Thank you

FCM Push notification handler

$
0
0

Sorry, no idea if this is possible. Probably yeah. Create a new topic if you want to ask the community.

While running "ionic cordova run android" command I am getting below error. Is there any way to get it fixed?

$
0
0

Look at how you post looks here in the forum.
Not good.
Use the </> button over the input field to fix this.

iOS splashscreen spinner not centered

$
0
0

No, that also doesn't make sense to me.

How to click notify calendar go to my app


Toast closeButtonText use icon instead of text

$
0
0

Hello! Wonder how to use ionic icon inside a closeButtonText? Idea: closeButtonText: '' (not working). Here is a goal:

Ionic PWA to access mobile camera

$
0
0

My requirement is to access the mobile camera in iOS and android using the mobile browser

Using Ionic PWA app can I access mobile camera in iOS and android device browsers? Looking for PWA solution using Cordova (not native solution ) > please advise this is possible and any help

Image not displaying while displaying contacts

$
0
0

if I am doing contacts[i].photos[0].values,
it gives me error ,and nothing is being displayed on that page neither name or phone number
Error-
that 0 is not defined..something like that..exactly I don't remember..

If I am doing contacts[i].photos,I am able to display the other details name and phone number but not the photos
contacts[i] is the array of all the contacts..

Yes the contacts which have photos,are getting output as some box while which have no photos
are getting nothing,,only the empty circle..

Like this--

Ionic Deploy - cordova.js not found after update

$
0
0

I'm trying implementing Ionic Deploy with ionic v1 (v1.3.1), but when the app loads a downloaded and extracted update, the app crashes. Debugging remotely the app, I see that, after the update, the console shows this error:

GET file:///data/user/0/com.example.www/app_12b7t876-f543-098j-b65f-6h9u098jh123/cordova.js net::ERR_FILE_NOT_FOUND

Using an absolute url to referencing the cordova.js file I was able to see it working on Android, but I think that this is not the right way, specially because on iOS the url is different:

  <!-- <script src="cordova.js"></script> -->
  <script src="file:///android_asset/www/cordova.js"></script>

How I need to reference the cordova.js file?

I tried commenting out the cordova.js (or removing it) from index.html, but didn't work also.

Maybe I missing something more?

Thanks!

Hoping that will help someone, here's my full implementation:

config.js

    $ionicCloudProvider.init({
      core: {
        app_id: 'myappid',
        api_key: 'myapikey' // ApiKey is mandatory for ionic deploy??
      },
      insights: {
        enabled: false
      }
    });

run.js

      $ionicDeploy.channel = 'dev';

      $ionicDeploy.check().then(function(snapshotAvailable) {
        if (snapshotAvailable) {
          $ionicDeploy.download().then(function(res) {
            return $ionicDeploy.extract();
          }).then(function(res) {
            return $ionicDeploy.load();
          });
        }
      });

Ionic Info:

global packages:

    @ionic/cli-utils : 1.4.0
    Gulp CLI         : CLI version 1.2.2 Local version 3.9.1
    Ionic CLI        : 3.4.0

local packages:

    @ionic/cli-plugin-gulp   : 1.0.1
    @ionic/cli-plugin-ionic1 : 2.0.0
    Ionic Framework          : unknown

System:

    Node       : v6.9.1
    OS         : Linux 4.4
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 4.5.0

Installed platforms:

  android 5.1.1

Cordova plugins:
`
ionic-plugin-deploy 0.6.7 "IonicDeploy"

Tabs highlight color change

$
0
0

Hi, I'm facing the same problem. Did you find the solution?

Viewing all 228535 articles
Browse latest View live


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