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

[Ionic 4] Best way to implement push notifications?

$
0
0

@charlescc wrote:

Hey,

I was wondering what is the best way to implement push notifications on iOS with Ionic.

I’m struggling with this since a long time and never succeed. It looks like both FCM and FirebaseMessaging plugins are conflicting in ios and I couldn’t directly use firebase library.

I’m handling user authentification with cordova-plugin-firebase, so I need it to be compatible.

When building with cordova-plugin-firebase-messaging, I get an error telling me that firebase library cannot be found. After “pod install”, though I get this error :
ld: 1093 duplicate symbols for architecture arm64

With cordova-plugin-fcm, I get :
Property 'delegate' not found on object of type 'FIRMessaging

For both plugins, I have no problem in Android. I have no idea what to do.

How do you manage that in your apps ?

Posts: 1

Participants: 1

Read full topic


Ion-nav push method not working in Ionic 4

$
0
0

@riteshrajoria wrote:

I am using Ionic v4 and using router navigation for all page navigation/routing.

However, I have a peculiar case requirement where I wish to push new components on to the stack without affecting the app overall router (Ionic 4 document - ionicframework.com/docs/api/nav). I am using a slide-in menu (split-pane) that needs to have its own page stack.

My currentPage html (current-page.page.html) has a button component -

<ion-button (click)="goToNextPage()">Next Page</ion-button>

My currentPage script file (current-page.page.ts) has the following code -

import { Component, OnInit } from '@angular/core';
import { NavController, NavParams } from '@ionic/angular';
import { NextPage } from '../next-page/next-page.page';

@Component({
  selector: 'current-page',
  templateUrl: './current-page.page.html',
  styleUrls: ['./current-page.page.scss'],
})
export class CurrentPage implements OnInit {

  constructor(public navCtrl: NavController, public navParams: NavParams) { }

  goToNextPage () {
    this.navCtrl.push('NextPage');
  }

  ngOnInit() {
  }

}

However, I get the format error as Property 'push' does not exist on type 'NavController'

Not sure how to use the push method properly. Any help will be appreciated.

Posts: 1

Participants: 1

Read full topic

Pages take a long time to load with href attribute

$
0
0

@josiasbueno wrote:

Hello everyone.
I’m having trouble with the links inside my Ionic 4 applications, more specifically with page load time.
I created some test apps with blank templates, sidemenu and tabs and they all have the same problem: when I click on an item with the href attribute, it takes a long time to load the requested page, even if it has only the title in the header, with no more content.
By clicking the tab icons at the bottom, the pages (screens) load quickly, even if they were created manually. The problem is only in pages loaded via href.
I do not know what to do to solve this.

Posts: 1

Participants: 1

Read full topic

How to test Android apps in Emulator/Device via WSL (Windows Subsystem Linux)

$
0
0

@jasoncartermartin wrote:

Hello, I have been trying for over a week now to figure out how to test Ionic Android apps through WSL (Windows Subsystem Linux). I use WSL for my development environment (Ubuntu version 16.04) with Windows 10, and it has worked great for everything so far except for trying to develop Native Ionic apps and test in Android.

I have installed Android Studio/SDK, Java, and Gradle on both Windows and the Linux Subsystem (as well as installed & configured proper Android environments using sdkmanager), and have tried a combination of using both environments to build and emulate Android apps. Since WSL can launch native Windows executables such as.exe files, in theory I believe this should be possible to do completely via WSL.

However, the only successful method I have found so far is to install the android-sdk in Linux, build the .apk file via ionic cordova build android, and then manually open the emulator on Windows and drag and drop the created .apk file to the emulator to install and run the build. This is quite cumbersome, but so far has been the only method I have found that works.

If I set up my environment to be completely based on the Linux environment, running ionic cordova requirements works successfully and returns the following:

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-28,android-27
Gradle: installed /opt/gradle/gradle-5.1.1/bin/gradle

I am also successfully able to build a .apk file. The problem is that I cannot seem to use the emulator, because WSL has no GUI, and I need to be able to use the emulator based in Windows.

If I set up my environment based on Windows (noting that I still need the Java run time environment based in Linux), everything else appears to work but I receive the following error when running ionic cordova build android or ionic emulate android:

Execution failed for task ':CordovaLib:compileDebugAidl'. 
> java.lang.IllegalStateException: aidl is missing

Running ionic cordova requirements with that configuration gives me the following output:

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
android: Command failed with exit code ENOENT
Gradle: installed /mnt/c/Program Files/Android/Android Studio/gradle/gradle-4.10.1/bin/gradle

For some reason, with my Windows configuration it does not recognize the Android target (even though it is properly installed), which leads to the ':CordovaLib:compileDebugAidl' error.

Does anybody have any advice on how to test Ionic Android apps with the emulator while using WSL? Thank you!!

Posts: 1

Participants: 1

Read full topic

Ionic 4 : Cannot Set Background Image

$
0
0

@junjunhernandez wrote:

Hello there,

I am trying to change the background image of ion-content but cannot make it work.
I did:

ion-content {
	background-image: url('/assets/app_images/image.png') !important;
}

The above somehow works ONLY IF I UNCHECK the styling of :host using Google Chrome’s console.
There is always a layer that has a white background in front of the ion-content, that is why the background image does not show and the only thing I can see is the white background of :host.

So I tried:

.inner-scroll {
	background-image: url('/assets/app_images/school.png') !important;
}

and

.scroll-y {
	background-image: url('/assets/app_images/school.png') !important;
}

but the result is still the same…

Before unchecking the background of :host

I found out that its there after unchecking the background of :host

background1

background3

I also added encapsulation:

ViewEncapsulation.None

on my component but it doesn’t seem to help. No effect at all.

How can I make the background show?

I have developed mobile apps using Ionic 3 with so much ease but its pain using Ionic 4.
I actually wasted 7 hours of searching on forums as well as trial and error with no success for just a simple background image. :tired_face: TIA. :slight_smile:

Posts: 1

Participants: 1

Read full topic

Cannot get rid from this crash Ionic 4 + Firebase

$
0
0

@Manel00 wrote:

Im starting on a Ionic 4 tutorial and I’m getting this big crash dont know why, i’m cleaning cache, removing /node_modules, installing npm --unsafe-perm… but cannot get rid from this error, thank you so much anyway

manel@XXX:~/Ionic4Tutorial/app$ sudo npm i

> grpc@1.18.0 install /home/manel/Ionic4Tutorial/app/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
[grpc] Success: "/home/manel/Ionic4Tutorial/app/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node" is installed via remote

> node-sass@4.10.0 install /home/manel/Ionic4Tutorial/app/node_modules/node-sass
> node scripts/install.js

Unable to save binary /home/manel/Ionic4Tutorial/app/node_modules/node-sass/vendor/linux-x64-67 : { Error: EACCES: permission denied, mkdir '/home/manel/Ionic4Tutorial/app/node_modules/node-sass/vendor'
    at Object.mkdirSync (fs.js:774:3)
    at sync (/home/manel/Ionic4Tutorial/app/node_modules/mkdirp/index.js:71:13)
    at Function.sync (/home/manel/Ionic4Tutorial/app/node_modules/mkdirp/index.js:77:24)
    at checkAndDownloadBinary (/home/manel/Ionic4Tutorial/app/node_modules/node-sass/scripts/install.js:114:11)
    at Object.<anonymous> (/home/manel/Ionic4Tutorial/app/node_modules/node-sass/scripts/install.js:157:1)
    at Module._compile (internal/modules/cjs/loader.js:736:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
    at Function.Module._load (internal/modules/cjs/loader.js:560:3)
  errno: -13,
  syscall: 'mkdir',
  code: 'EACCES',
  path:
   '/home/manel/Ionic4Tutorial/app/node_modules/node-sass/vendor' }

> node-sass@4.10.0 postinstall /home/manel/Ionic4Tutorial/app/node_modules/node-sass
> node scripts/build.js

Building: /usr/local/bin/node /home/manel/Ionic4Tutorial/app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/home/manel/Ionic4Tutorial/app/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.8.0
gyp info using node@11.8.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.14
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 11.8.0
gyp verb command install [ '11.8.0' ]
gyp verb install input version string "11.8.0"
gyp verb install installing version: 11.8.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 11.8.0
gyp verb build dir attempting to create "build" dir: /home/manel/Ionic4Tutorial/app/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/manel/Ionic4Tutorial/app/node_modules/node-sass/build'
gyp ERR! System Linux 4.13.0-46-generic
gyp ERR! command "/usr/local/bin/node" "/home/manel/Ionic4Tutorial/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/manel/Ionic4Tutorial/app/node_modules/node-sass
gyp ERR! node -v v11.8.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.10.0 (node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.10.0 postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 1246 packages from 1226 contributors and audited 51336 packages in 20.228s
found 0 vulnerabilities

Posts: 1

Participants: 1

Read full topic

Como solucionar problemas de carga ionic

$
0
0

@josele2015 wrote:

Estaba intentando generar nuevo splash pero no carga las imagenes de la carpeta resources. Ya he elimado multiples vece la carpeta de android desde linea de comando pero solo se queda cargando los recursos para android, lo probe en otra maquina y si funciona el splash

Posts: 1

Participants: 1

Read full topic

Ionic4 Cordova Web Api Calling Angular HttpClient With Production Problem

$
0
0

@mesutcakir wrote:

Hi Everone,

My project is correctly run on “Ionic serve -l” command. (Proxy on active)

but “ionic cordova run browser --prod or ionic cordova run android --prod” command not working. Because proxy mode not working production mode. (I’ve tried Apk Generated and device mode)

I am send Post Method, but angular send Options method.

This scope only my send header when

 return this.http.post(this.api.base + this.api._getToken, "grant_type=password&username=" + username + "&password=" + password, {
            headers: new HttpHeaders({
                'Content-Type': 'application/json'
            })
        });

if I not append headers then success work on post. But My needed Custom Headers.

OPTIONS https://localhost:44373/getToken  
Access to XMLHttpRequest at 'https://localhost:44373/getToken' from origin 'http://localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

image

Ionic:

   ionic (Ionic CLI)             : 4.10.2 (C:\Users\*\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.12.3
   @angular-devkit/schematics    : 7.2.3
   @angular/cli                  : 7.2.3
   @ionic/angular-toolkit        : 1.2.3

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4, browser 5.0.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.3, (and 9 other plugins)

System:

   Android SDK Tools : 25.2.3 (c:\Users\*\AppData\Local\Android\Sdk)
   NodeJS            : v10.14.2 (C:\Program Files\nodejs\node.exe)
   npm               : 4.6.1
   OS                : Windows 10

package.json

  "dependencies": {
    "@angular/common": "^7.2.2",
    "@angular/core": "^7.2.2",
    "@angular/forms": "^7.2.2",
    "@angular/http": "^7.2.2",
    "@angular/platform-browser": "^7.2.2",
    "@angular/platform-browser-dynamic": "^7.2.2",
    "@angular/router": "^7.2.2",
    "@ionic-native/core": "^5.0.0",
    "@ionic-native/splash-screen": "^5.0.0",
    "@ionic-native/status-bar": "^5.0.0",
    "@ionic/angular": "^4.0.0",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^2.3.2",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "core-js": "^2.5.4",
    "rxjs": "~6.3.3",
    "zone.js": "~0.8.29",
    "cordova-android": "~7.1.4"
  },
  "devDependencies": {
    "@angular-devkit/architect": "~0.12.3",
    "@angular-devkit/build-angular": "~0.12.3",
    "@angular-devkit/core": "~7.2.3",
    "@angular-devkit/schematics": "~7.2.3",
    "@angular/cli": "~7.2.3",
    "@angular/compiler": "~7.2.2",
    "@angular/compiler-cli": "~7.2.2",
    "@angular/language-service": "~7.2.2",
    "@ionic/angular-toolkit": "~1.2.0",
    "@ionic/lab": "1.0.19",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~10.12.0",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.1.4",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "~8.0.0",
    "tslint": "~5.12.0",
    "typescript": "~3.1.6"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-nativestorage": {},
      "cordova-plugin-x-toast": {},
      "cordova-plugin-native-spinner": {}
    },
    "platforms": [
      "android"
    ]
  }

index.html

 <meta http-equiv="Content-Security-Policy" content="default-src *; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

config.xml


 <content src="index.html" />
    <access origin="*" />
    <allow-intent href="*" />
    <allow-navigation href="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />

Posts: 3

Participants: 2

Read full topic


Android tablet as an HMI?

$
0
0

@gusgonnet wrote:

Hi guys,

I wanted to know if anyone had experimented with an Android tablet like this one.
image

Since I’m developing an Android app with Ionic, I thought I could run my app in this type of HMI tablet.

No, a regular tablet will not do it, mind you, but tablets geared to kiosk uses will do, like this:

Ideally, the price would be around $100 USD.

Anybody around this community would have any thoughts, links or experiences from the past?
Thanks!
Gustavo.

Posts: 1

Participants: 1

Read full topic

Ion-item-divider href

$
0
0

@reedrichards wrote:

Anyone knows how to add a router href on ion-item-divider?

I use ion-item-divider in my ion-menu to group my ion-item, which have href, and I would like to add an action/navigation to these dividers too, but don’t know how as there isn’t such an attribute according the doc https://ionicframework.com/docs/api/item-divider

P.S.: I’m using Ionic core not angular

Posts: 1

Participants: 1

Read full topic

Slow performance and slow switching tabs on ios device ionic v4.10.1

$
0
0

@Khaledesu wrote:

Hi everyone, I’m using firebase as a backend (real-time database).
the slow performance happens when I log in at the first time on the app the app is so so slow on ios device and it’s fast on android devices.
The app performance only becomes greater after :

  • Creating a new account
  • Close the app and perform autologin

I’ve tried everything
I tried to build the ios app with --prod – release
I tried to comment all the loading functions from the main page after the login
I tried to remove the platform several times and add different ios versions
I tried to remove lots of plugins that are not used anymore
I tried to install the WekWebview

the weird thing is the previous version of the application is working fine and its performance is greater than this one so I tried to run the previous version on my iPhone 7 plus and still it’s slow, do I have to downgrade my Cordova or ionic version or even node version?

It has been 3 continuous days continuous 7 hours each day.
Anyone experiencing the same problem? anyone know how to fix this?

Ionic:

   ionic (Ionic CLI)  : 4.10.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.1

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : ios
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 17 other plugins)

System:

   Android SDK Tools : 25.2.3 (/Users/khaledAlhindi/Library/Android/sdk)
   ios-deploy        : 1.9.4
   NodeJS            : v10.15.1 (/usr/local/bin/node)
   npm               : 5.3.0
   OS                : macOS Mojave
   Xcode             : Xcode 10.1 Build version 10B61


com.synconset.imagepicker 2.1.10 "ImagePicker"
cordova-plugin-add-swift-support 1.6.0 "AddSwiftSupport"
cordova-plugin-camera 3.0.0 "Camera"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-enable-multidex 0.1.3 "Enable Multidex"
cordova-plugin-fcm-with-dependecy-updated 2.4.0 "Cordova FCM Push Plugin"
cordova-plugin-file 5.0.0 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-filepath 1.0.2 "FilePath"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-keyboard 1.2.0 "Keyboard"
cordova-plugin-photo-library 2.1.1 "Photo Library"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.3.0 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 2.2.0 "Cordova sqlite storage plugin"
cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
cordova-support-google-services 1.2.1 "cordova-support-google-services"

Posts: 1

Participants: 1

Read full topic

Build Failed ionic v3

$
0
0

@dotman wrote:

I am getting error when i run ionic cordova build android --release

BUILD FAILED

Total time: 23.22 secs
Error: /Users/DOTMAN/Documents/ionic/Affinity-mobile/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Dex: Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the ‘java’ gradle plugin in a library submodule add
targetCompatibility = ‘1.7’
sourceCompatibility = ‘1.7’
to that submodule’s build.gradle file.
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Exception parsing classes
at com.android.dx.command.dexer.Main.processClass(Main.java:775)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:741)
at com.android.dx.command.dexer.Main.access$1200(Main.java:88)
at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1683)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:695)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:592)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:321)
at com.android.dx.command.dexer.Main.run(Main.java:292)
at com.android.builder.internal.compiler.DexWrapper.run(DexWrapper.java:54)
at com.android.builder.core.DexByteCodeConverter.lambda$dexInProcess$0(DexByteCodeConverter.java:173)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:476)
at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
at com.android.dx.command.dexer.Main.parseClass(Main.java:787)
at com.android.dx.command.dexer.Main.access$1600(Main.java:88)
at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1722)
at com.android.dx.command.dexer.Main.processClass(Main.java:773)
… 16 more

1 error; aborting

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:transformClassesWithDexForRelease’.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process

  • 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 build android --release (exit
code 1).

Posts: 2

Participants: 1

Read full topic

Ionic 4 CDN

$
0
0

@abird wrote:

I see that Ionic 4 is available via CDN from unpkg. However, the library on unpkg isn’t gzipped. I’m not even sure that option is available with unpkg. Are there plans for using a CDN with gzipped Ionic 4?

Ionic 4 is already remarkably small, but gzipping would make it even much smaller.

Posts: 1

Participants: 1

Read full topic

Accessing build.gradle inside ionic platforms using ionic pro build

$
0
0

@gregshapland wrote:

Hai Friends,

Since i have activated the ionic pro to build apk and iPa files replacing jenkins, but somehow i have to modified some parts in platforms folder in order to make successful build.

Is there any way i can access platforms and make change before execute build in ionic pro ?

Really appreciate for the help from Ionic Team

Thank You

Posts: 1

Participants: 1

Read full topic

Is inappbrowser's beforeLoad event working for anyone


Ionic WebView 3.x ionic:// behavior for plugins?

$
0
0

@webprofusion wrote:

I’m just preparing an update ioniv v4 app for production. The uses the Google Maps Native plugins and is working well on Android. on iOS however the plugin cannot load map marker icons (custom) because it doesn’t seem to understand the ionic:// scheme?

Has anyone encountered this already?

Posts: 1

Participants: 1

Read full topic

Cordova SMS plugin cannot able to choose which sim card to use in dual sim phones

$
0
0

@mmkr777 wrote:

I am using cordova sms plugin to read and send sms. it is working fine with all functionalities but now i am facing a problem in choosing which sim card to send sms in dual sim phones. I Read documentation and i tried help in many forums but never find a solution on how to choose the sim card in dual sim phones. Please help me

Posts: 1

Participants: 1

Read full topic

Hooks folder not found in v1 project

$
0
0

@mehthaf wrote:

Hooks folder not found in my ionic v1 project .also work well in ionic serve and web but not working in device or apk . apk getting collapse or broken

Posts: 1

Participants: 1

Read full topic

Cordova contacts plugin alternative

$
0
0

@reedrichards wrote:

Anyone is aware of an alternative to the Cordova contacts plugin, which is deprecated, to access, if the user is agree to, to the list of contacts of the device?

Posts: 3

Participants: 1

Read full topic

My app in IOS firing when swipe down my status bar

$
0
0

@hrmdhn wrote:

Hello,

i have problem with my app,

my ionic ios app, cannot firing
when i scrolling down status bar. my app firing

can you solve this case?

thank u

Posts: 1

Participants: 1

Read full topic

Viewing all 70435 articles
Browse latest View live


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