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

Print(For Ios and Android)

$
0
0

@sekhar97 wrote:

I am using print plugin for preview and print the doucment… it is working fine for print preview the only text content but not working external url

this.printer.print(‘Hello’, options).then(onSuccess, onError); - Working

this.printer.print(‘UrlLink’, options).then(onSuccess, onError); - Not Working

Posts: 1

Participants: 1

Read full topic


Error: read ECONNRESET

$
0
0

@Shadrackmwangi92 wrote:

hello am trying to use google map api but when i run the command for plugin installation this error pops up
Error: read ECONNRESET

at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
what is going on?

Posts: 1

Participants: 1

Read full topic

Typescript Errors when running ionic serve

$
0
0

@ashok12 wrote:

i have typescript": “^2.3.3”. when i trie to run with ionic serve i get thos error
Typescript Error

Class ‘Tabs’ incorrectly implements interface ‘NavigationContainer’. Types of property ‘parent’ are incompatible. Type ‘NavControllerBase’ is not assignable to type ‘NavController’. Types of property ‘popTo’ are incompatible. Type ‘(indexOrViewCtrl: any, opts?: NavOptions, done?: () => void) => Promise’ is not assignable to type ‘(page: string | Page | ViewController, params?: any, opts?: NavOptions, done?: Function) => Promi…’. Types of parameters ‘done’ and ‘opts’ are incompatible. Type ‘NavOptions’ is not assignable to type ‘() => void’.

Typescript Error

Class ‘NavControllerBase’ incorrectly implements interface ‘NavController’. Types of property ‘popTo’ are incompatible. Type ‘(indexOrViewCtrl: any, opts?: NavOptions, done?: () => void) => Promise’ is not assignable to type ‘(page: string | Page | ViewController, params?: any, opts?: NavOptions, done?: Function) => Promi…’. Types of parameters ‘done’ and ‘opts’ are incompatible. Type ‘NavOptions’ is not assignable to type ‘() => void’. Type ‘NavOptions’ provides no match for the signature ‘(): void’.

Typescript Error

Class ‘Subject’ incorrectly extends base class ‘Observable’. Types of property ‘lift’ are incompatible. Type ‘(operator: Operator<T, R>) => Observable’ is not assignable to type ‘(operator: Operator<T, R>) => Observable’. Type ‘Observable’ is not assignable to type ‘Observable’. Type ‘T’ is not assignable to type ‘R’.

Typescript Error

Class ‘WebSocketSubject’ incorrectly extends base class ‘AnonymousSubject’. Types of property ‘lift’ are incompatible. Type ‘(operator: Operator<T, R>) => WebSocketSubject’ is not assignable to type ‘(operator: Operator<T, R>) => Observable’. Type ‘WebSocketSubject’ is not assignable to type ‘Observable’. Types of property ‘operator’ are incompatible. Type ‘Operator<any, R>’ is not assignable to type ‘Operator<any, T>’. Type ‘R’ is not assignable to type ‘T’.


those errors appears since i upgrade ionic.
here’s a screen shot of my ionic info

i have tied to ugrade typescript version to 3.5.3 but still get the same issues !!?
Any suggestion?

Posts: 1

Participants: 1

Read full topic

Run-time Compilation Error

Ionic apk build failed with - Cannot find module 'cordova-common'

$
0
0

@raghvendranaidu wrote:

Hello Guyz,

I am new to ionic framework, trying to build android apk for testing and demo purpose but getting following error while building apk. I tried several ways to resolve referring previous topics but failed.

command: ionic cordova build android

Error:

chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 236 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 9.23 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 109 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 4.6 MB [initial] [rendered]

cordova.cmd build android
cordova-android-support-gradle-release: Android platform: V6
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to F:\IONIC\travelmaster\platforms\android\build.gradle
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to F:\IONIC\travelmaster\platforms\android\cordova-android-support-gradle-release\ionic4start-cordova-android-support-gradle-release.gradle
cordova-android-support-gradle-release: Android platform: V6
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to F:\IONIC\travelmaster\platforms\android\build.gradle
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to F:\IONIC\travelmaster\platforms\android\cordova-android-support-gradle-release\ionic4start-cordova-android-support-gradle-release.gradle
Cannot find module ‘cordova-common’

Posts: 1

Participants: 1

Read full topic

FCM AND ABMOB Execution failed for task ':app:processDebugGoogleServices'

$
0
0

@yurasmitsh123 wrote:

Hi guys, tell me what could be the problem? Аfter i add admob free i get an error with veracity. Something is wrong with FCM and AbMob. I tried to set one version but it didn’t solve the problem.

cordova-android-play-services-gradle-release: overriding com.google.android.gms:play-services-ads:11.8.0 in build.gradle with com.goo
gle.android.gms:play-services-ads:18.0.0
cordova-android-play-services-gradle-release: overriding com.google.android.gms:play-services-base:11.8.0 in build.gradle with com.go
ogle.android.gms:play-services-base:17.0.0
cordova-android-play-services-gradle-release: overriding com.google.android.gms:play-services-tagmanager:+ in build.gradle with com.g
oogle.android.gms:play-services-tagmanager:17.0.0
cordova-android-play-services-gradle-release: overriding com.google.android.gms:play-services-ads:11.8.0 in build.gradle with com.goo
gle.android.gms:play-services-ads:18.0.0
cordova-android-play-services-gradle-release: overriding com.google.android.gms:play-services-base:11.8.0 in build.gradle with com.go
ogle.android.gms:play-services-base:17.0.0
cordova-android-play-services-gradle-release: overriding com.google.android.gms:play-services-tagmanager:+ in build.gradle with com.g
oogle.android.gms:play-services-tagmanager:17.0.0
Preparing Firebase on Android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\User\AppData\Local\Android\sdk (DEPRECATED)
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Could not find google-services.json while looking in [src/debug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace
.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider(
)'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display
 a stack trace.
WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'
.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display
a stack trace.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack
 trace.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack tr
ace.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display a s
tack trace.
WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders(
)'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to displ
ay a stack trace.
Could not find google-services.json while looking in [src/release]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

> Task :app:preBuild UP-TO-DATE
> Task :CordovaLib:preBuild UP-TO-DATE
> Task :CordovaLib:preDebugBuild UP-TO-DATE
> Task :CordovaLib:checkDebugManifest UP-TO-DATE
> Task :CordovaLib:processDebugManifest UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :CordovaLib:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :CordovaLib:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript UP-TO-DATE
> Task :app:checkDebugManifest UP-TO-DATE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:prepareLintJar UP-TO-DATE
> Task :app:generateDebugSources UP-TO-DATE
> Task :CordovaLib:compileDebugRenderscript UP-TO-DATE
> Task :CordovaLib:generateDebugBuildConfig UP-TO-DATE
> Task :CordovaLib:generateDebugResValues UP-TO-DATE
> Task :CordovaLib:generateDebugResources UP-TO-DATE
> Task :CordovaLib:packageDebugResources UP-TO-DATE
> Task :CordovaLib:generateDebugRFile UP-TO-DATE
> Task :CordovaLib:prepareLintJar UP-TO-DATE
> Task :CordovaLib:generateDebugSources UP-TO-DATE
> Task :CordovaLib:javaPreCompileDebug UP-TO-DATE
> Task :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
> Task :CordovaLib:processDebugJavaRes NO-SOURCE
> Task :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:mainApkListPersistenceDebug UP-TO-DATE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders UP-TO-DATE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:mergeDebugShaders UP-TO-DATE
> Task :CordovaLib:compileDebugShaders UP-TO-DATE
> Task :CordovaLib:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:packageDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE

> Task :app:processDebugGoogleServices FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version
is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.andr
oid.gms to 10.+.

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 9s
Found com.google.firebase:firebase-auth:+, but version 10.+ is needed for the google-services plugin.
Found com.google.android.gms:play-services-base:11.0.4, but version 10.+ is needed for the google-services plugin.
Found com.google.android.gms:play-services-ads:11.0.4, but version 10.+ is needed for the google-services plugin.
Found com.google.android.gms:play-services-tagmanager:+, but version 10.+ is needed for the google-services plugin.
Found com.google.firebase:firebase-core:+, but version 10.+ is needed for the google-services plugin.
Found com.google.firebase:firebase-messaging:+, but version 10.+ is needed for the google-services plugin.
Found com.google.firebase:firebase-config:+, but version 10.+ is needed for the google-services plugin.
Found com.google.firebase:firebase-perf:+, but version 10.+ is needed for the google-services plugin.
25 actionable tasks: 1 executed, 24 up-to-date
E:\mekoMeApp\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version
is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.andr
oid.gms to 10.+.

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 9s
[ERROR] An error occurred while running subprocess cordova.

        cordova.cmd build android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.


Config.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>MyApp</name>
    <description>An awesome Ionic/Cordova app.</description>
    <author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <preference name="ScrollEnabled" value="false" />
    <preference name="android-minSdkVersion" value="19" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />
    <preference name="ShowSplashScreen" value="true" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="FadeSplashScreen" value="true" />
    <platform name="android">
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
            <application android:networkSecurityConfig="@xml/network_security_config" />
        </edit-config>
        <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
        <allow-intent href="market:*" />
        <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
        <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
        <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
        <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
        <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
        <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
        <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
        <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
        <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
        <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
        <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
        <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
        <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
        <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
        <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
        <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
        <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
        <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <icon height="57" src="resources\ios\icon\icon.png" width="57" />
        <icon height="114" src="resources\ios\icon\icon@2x.png" width="114" />
        <icon height="29" src="resources\ios\icon\icon-small.png" width="29" />
        <icon height="58" src="resources\ios\icon\icon-small@2x.png" width="58" />
        <icon height="87" src="resources\ios\icon\icon-small@3x.png" width="87" />
        <icon height="20" src="resources/ios/icon/icon-20.png" width="20" />
        <icon height="40" src="resources/ios/icon/icon-20@2x.png" width="40" />
        <icon height="60" src="resources/ios/icon/icon-20@3x.png" width="60" />
        <icon height="48" src="resources/ios/icon/icon-24@2x.png" width="48" />
        <icon height="55" src="resources/ios/icon/icon-27.5@2x.png" width="55" />
        <icon height="29" src="resources/ios/icon/icon-29.png" width="29" />
        <icon height="58" src="resources/ios/icon/icon-29@2x.png" width="58" />
        <icon height="87" src="resources/ios/icon/icon-29@3x.png" width="87" />
        <icon height="40" src="resources\ios\icon\icon-40.png" width="40" />
        <icon height="80" src="resources\ios\icon\icon-40@2x.png" width="80" />
        <icon height="120" src="resources\ios\icon\icon-40@3x.png" width="120" />
        <icon height="88" src="resources/ios/icon/icon-44@2x.png" width="88" />
        <icon height="50" src="resources\ios\icon\icon-50.png" width="50" />
        <icon height="100" src="resources\ios\icon\icon-50@2x.png" width="100" />
        <icon height="60" src="resources\ios\icon\icon-60.png" width="60" />
        <icon height="120" src="resources\ios\icon\icon-60@2x.png" width="120" />
        <icon height="180" src="resources\ios\icon\icon-60@3x.png" width="180" />
        <icon height="72" src="resources\ios\icon\icon-72.png" width="72" />
        <icon height="144" src="resources\ios\icon\icon-72@2x.png" width="144" />
        <icon height="76" src="resources\ios\icon\icon-76.png" width="76" />
        <icon height="152" src="resources\ios\icon\icon-76@2x.png" width="152" />
        <icon height="167" src="resources\ios\icon\icon-83.5@2x.png" width="167" />
        <icon height="172" src="resources/ios/icon/icon-86@2x.png" width="172" />
        <icon height="196" src="resources/ios/icon/icon-98@2x.png" width="196" />
        <icon height="1024" src="resources\ios\icon\icon-1024.png" width="1024" />
        <splash height="480" src="resources\ios\splash\Default~iphone.png" width="320" />
        <splash height="960" src="resources\ios\splash\Default@2x~iphone.png" width="640" />
        <splash height="1024" src="resources\ios\splash\Default-Portrait~ipad.png" width="768" />
        <splash height="768" src="resources\ios\splash\Default-Landscape~ipad.png" width="1024" />
        <splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
        <splash height="1242" src="resources\ios\splash\Default-Landscape-736h.png" width="2208" />
        <splash height="2048" src="resources\ios\splash\Default-Portrait@2x~ipad.png" width="1536" />
        <splash height="1536" src="resources\ios\splash\Default-Landscape@2x~ipad.png" width="2048" />
        <splash height="2732" src="resources\ios\splash\Default-Portrait@~ipadpro.png" width="2048" />
        <splash height="2048" src="resources\ios\splash\Default-Landscape@~ipadpro.png" width="2732" />
        <splash height="1136" src="resources\ios\splash\Default-568h@2x~iphone.png" width="640" />
        <splash height="1334" src="resources\ios\splash\Default-667h.png" width="750" />
        <splash height="2208" src="resources\ios\splash\Default-736h.png" width="1242" />
        <splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
        <splash height="2732" src="resources\ios\splash\Default@2x~universal~anyany.png" width="2732" />
    </platform>
    <plugin name="cordova-plugin-whitelist" spec="1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="2.4.2" />
    <plugin name="cordova-plugin-device" spec="2.0.2" />
    <plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
    <plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
</widget>

project.properties

target=android-28
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.android.support:support-annotations:27.+
cordova.gradle.include.1=cordova-plugin-badge/starter-badge.gradle
cordova.system.library.2=com.android.support:support-v4:26.+
cordova.gradle.include.2=cordova-plugin-local-notification/starter-localnotification.gradle
cordova.gradle.include.3=cordova-android-play-services-gradle-release/starter-cordova-android-play-services-gradle-release.gradle
cordova.system.library.3=com.google.firebase:firebase-core:10.+
cordova.system.library.4=com.google.firebase:firebase-messaging:10.+
cordova.gradle.include.4=cordova-plugin-fcm-with-dependecy-updated/starter-FCMPlugin.gradle
cordova.system.library.5=com.google.android.gms:play-services-base:11.0.4
cordova.system.library.6=com.google.android.gms:play-services-ads:11.0.4
cordova.gradle.include.5=cordova-plugin-firebase/starter-build.gradle
cordova.system.library.7=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.8=com.google.firebase:firebase-core:+
cordova.system.library.9=com.google.firebase:firebase-messaging:+
cordova.system.library.10=com.google.firebase:firebase-config:+
cordova.system.library.11=com.google.firebase:firebase-perf:+

platforms/android/app/build.gradle

dependencies {
    implementation fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    implementation(project(path: ":CordovaLib"))
    implementation "com.android.support:support-annotations:27.+"
    implementation "com.android.support:support-v4:26.+"
    implementation "com.google.firebase:firebase-core:10.+"
    implementation "com.google.firebase:firebase-messaging:10.+"
    implementation "com.google.android.gms:play-services-base:11.0.4"
    implementation "com.google.android.gms:play-services-ads:11.0.4"
    implementation "com.google.android.gms:play-services-tagmanager:+"
    implementation "com.google.firebase:firebase-core:+"
    implementation "com.google.firebase:firebase-messaging:+"
    implementation "com.google.firebase:firebase-config:+"
    implementation "com.google.firebase:firebase-perf:+"
    // SUB-PROJECT DEPENDENCIES END
}

platforms/android/build.gradle

dependencies {
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

        classpath 'com.android.tools.build:gradle:3.3.0'

        classpath 'com.google.gms:google-services:4.1.0' // google-services dependency from cordova-plugin-firebase

        classpath 'io.fabric.tools:gradle:1.25.4' // fabric dependency from cordova-plugin-firebase
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        google() // Google's Maven repository from cordova-plugin-firebase
    }

    //This replaces project.properties w.r.t. build settings
    project.ext {
      defaultBuildToolsVersion="28.0.3" //String
      defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
      defaultTargetSdkVersion=28 //Integer - We ALWAYS target the latest by default
      defaultCompileSdkVersion=28 //Integer - We ALWAYS compile with the latest by default
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Posts: 1

Participants: 1

Read full topic

How to set it correctly on cloud functions?

$
0
0

@Manel00 wrote:

Hi everyone, i did a cloud function but it gives me:

“Http failure response for https://us-central1-objects-mec.cloudfunctions.net/notif: 0 Unknown Error”

What i’m doing wrong?

const functions = require('firebase-functions')
const cors = require('cors')({ origin: true });

exports.notif = functions.https.onRequest((request, response) => {
    cors(request, response, () => {
        functions.firestore
            .document('objects/{new}')
            .onCreate((snap, context) => {
                response.setHeader('Access-Control-Allow-Origin', '*');
                const data = snap.data();
                console.log(data)
                const name = data.name.val()
                const title = data.title.val()
                const message = `${name} - ${title}`
                response.send(message);
            });
    });
});

Thank you so much!

Regards

Posts: 1

Participants: 1

Read full topic

White Screen with Ionic Webview Iframe

$
0
0

@loctesla wrote:

i am using Ionic 3 and webview on my App project, All are working fine on iOS but it is not working on Android, the problem is when I press the next button it will come to white screen on Android Webview Iframe.

  1. Here my Ionic info

Ionic:

  • Ionic CLI : 5.2.3 (/usr/local/lib/node_modules/ionic)
  • Ionic Framework : ionic-angular 3.9.2
  • @ionic/app-scripts : 3.2.4

Cordova:

  • Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
  • Cordova Platforms : android 8.0.0, browser 6.0.0, ios 4.5.5
  • Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 4.1.1, (and 14 other plugins)

Utility:

  • cordova-res : 0.6.0
  • native-run : 0.2.5 (update available: 0.2.8)

System:

  • Android SDK Tools : 26.1.1
  • ios-deploy : 1.9.4
  • NodeJS : v8.16.0
  • npm : 6.4.1
  • OS : macOS Mojave
  • Xcode : Xcode 10.3 Build version 10G8
  1. Here my Cordova plugins list
  • cordova-plugin-app-name 1.0.4 “App Namer”
  • cordova-plugin-file 6.0.1 “File”
  • cordova-plugin-file-transfer 1.7.1 “File Transfer”
  • cordova-plugin-google-analytics 1.8.6 “Google Universal Analytics Plugin”
  • cordova-plugin-inappbrowser 3.0.0 “InAppBrowser”
  • cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”
  • cordova-plugin-ionic-webview 4.1.1 “cordova-plugin-ionic-webview”
  • cordova-plugin-network-information 2.0.1 “Network Information”
  • cordova-plugin-screen-orientation 3.0.1 “Screen Orientation”
  • cordova-plugin-splashscreen 5.0.2 “Splashscreen”
  • cordova-plugin-statusbar 2.4.2 “StatusBar”
  • cordova-plugin-whitelist 1.3.3 “Whitelist”
  • cordova-plugin-x-toast 2.7.0 “Toast”
  • cordova-plugin-zip 3.1.0 “cordova-plugin-zip”
  • cordova-sqlite-storage 3.2.1 “Cordova sqlite storage plugin - cordova-sqlite-storage plugin version”
  • cordova-unique-device-id 1.3.2 “UniqueDeviceID”
  • es6-promise-plugin 4.2.2 “Promise”
  1. Here my Code

Home.ts

import { Platform, NavController } from 'ionic-angular';
import { Component } from '@angular/core';
import { ServicesProvider } from '../../providers/services/services';

let win: any = window;

@Component({
    selector: 'page-home',
    templateUrl: 'home.html'
})
export class HomePage {
    url: string = "";

    constructor(public platform: Platform, public navCtrl: NavController, public Services: ServicesProvider) {
        this.platform.ready().then(() => {
        if(this.platform.is('cordova')) {
            this.url = this.Services.getStorageDirectory();
            this.url = win.Ionic.WebView.convertFileSrc(this.url) + "/index.html";
        }
        })
    }
}

home.html

<iframe [src]="url | safe" name="trustResourceURL" frameborder="0" scrolling="no" onload="this.style.visibility='visible';"></iframe>

safe.ts

import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';

@Pipe({
    name: 'safe',
})
export class SafePipe implements PipeTransform {
    constructor(private sanitizer: DomSanitizer) {}
    transform(url) {
        return this.sanitizer.bypassSecurityTrustResourceUrl(url);
    }
}

I hope some one can help me figure out where the issue is.

Posts: 1

Participants: 1

Read full topic


Navigate Login or homescreen based on login state

$
0
0

@Harikag wrote:

Hi, I have Login Screen and Home screen, I need to navigate Login screen or home screen based on login state, So anyone can provide any sample. I am trying with samples of the ionic guard, In device, it is showing a blank white screen after splash screen, so please help me.

Posts: 1

Participants: 1

Read full topic

THREAD WARNING: ['Console'] took '33.617188' ms. Plugin should use a background thread

$
0
0

@lsantaniello wrote:

When I use ios Emulator on my iMac, the app is very slow and in the console I see this message:

THREAD WARNING: [‘Console’] took ‘33.617188’ ms. Plugin should use a background thread.

No solution to this? I’ve seen a lot of topics about this but no one can solve it. How can it be possible?

Regards
Luca

Posts: 1

Participants: 1

Read full topic

Ion-radio-group how to unselect all radio button by defulat in ionic 4

ReferenceError: google is not defined Android Pie

$
0
0

@ISG wrote:

Hello Ionicers!

I’ve been running an implementation of Google Maps Address autocomplete. it has been working just swimmingly, until the new Android API 28/29. When I run the @ionic/angular app on an Android Pie device I get the “ReferenceError: google is not defined” error.

When I run the same app on an Android 8 device it runs perfectly fine.

What do I need to do differently??

declare var google: any;

updateSearch() {
    console.log('updateSearch - ', this.autocomplete.query);
    if (this.autocomplete.query == '') {
      this.autocompleteItems = [];
      return;
    }
    let me = this;
    this.service.getPlacePredictions({
      input: this.autocomplete.query,
      componentRestrictions: {
        country: 'uk'
      }
    }, (predictions, status) => {
      me.autocompleteItems = [];

      me.zone.run(() => {
        if (predictions != null) {
          predictions.forEach((prediction) => {
            me.autocompleteItems.push(prediction.description);
          });
        }
      });
    });
  }

Posts: 1

Participants: 1

Read full topic

Ionic backbutton click not working

$
0
0

@salomon022 wrote:

Hi, help me

import { Component } from '@angular/core';

import { Platform, ToastController } from '@ionic/angular';

import {  } from '@ionic/angular';
@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {
private subscription;
private sec;
  constructor(private platform: Platform,
    private toastController: ToastController
    ) {
    this.subscription = this.platform.backButton.subscribe(async()=>{
      if(this.sec == 0)
      {
        const toast = await this.toastController.create({
          message: 'Press Back again to Exit',
          duration: 2000
        });
        toast.present();
        this.sec=1;
        setTimeout(()=>{
          this.sec=0;
        },5000);
      }
      else
      {
        navigator['app'].exitApp();
      }
  });
  }
}

Posts: 1

Participants: 1

Read full topic

How to share my ionic app in Test Mode

$
0
0

@EniolaTade wrote:

Ok Guys,
I just developed this sample ionic app but i want to share it to my friends to test the app.
please, how do i go about it? what can i do?

Posts: 1

Participants: 1

Read full topic

Radio and Checkbox inner button is taking more than ion-item size


Mobile application developer firms

Navbar doesn't show in Iphone X testflight

$
0
0

@pedrodutra94 wrote:

Hi Guys, in Android works fine, emulating in iphone x Xcode working fine too.
But I’m having this trouble when run in Iphone X in testflight
Some pages doesnt show ion navbar (header)

Anyone had this problem?

thanks
Iphone X

Android

    @ionic/cli-utils  : 1.19.3
    ionic (Ionic CLI) : 3.20.1

global packages:

    cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) 

local packages:

    @ionic/app-scripts : 3.2.4
    Cordova Platforms  : ios 4.5.5
    Ionic Framework    : ionic-angular 3.9.8

System:

    ios-deploy : 1.9.4 
    Node       : v10.16.0
    npm        : 6.9.0 
    OS         : macOS
    Xcode      : Xcode 10.2.1 Build version 10E1001 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro
package.json

{
  "name": "extratoApp",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@agm/core": "^1.0.0-beta.0",
    "@angular/animations": "^5.2.3",
    "@angular/common": "5.0.3",
    "@angular/compiler": "5.0.3",
    "@angular/compiler-cli": "5.0.3",
    "@angular/core": "5.0.3",
    "@angular/forms": "5.0.3",
    "@angular/http": "5.0.3",
    "@angular/platform-browser": "5.0.3",
    "@angular/platform-browser-dynamic": "5.0.3",
    "@ionic-native/android-full-screen": "^4.5.3",
    "@ionic-native/app-version": "^4.5.3",
    "@ionic-native/badge": "^4.7.0",
    "@ionic-native/camera": "^4.5.3",
    "@ionic-native/clipboard": "^4.5.2",
    "@ionic-native/core": "4.4.0",
    "@ionic-native/facebook": "^4.5.3",
    "@ionic-native/file": "^4.5.2",
    "@ionic-native/file-transfer": "^4.5.2",
    "@ionic-native/geolocation": "^4.5.3",
    "@ionic-native/google-maps": "^4.8.0",
    "@ionic-native/http": "^4.5.2",
    "@ionic-native/in-app-browser": "^4.5.3",
    "@ionic-native/keyboard": "^4.5.3",
    "@ionic-native/network": "^4.5.3",
    "@ionic-native/onesignal": "^4.7.0",
    "@ionic-native/social-sharing": "^4.6.0",
    "@ionic-native/splash-screen": "4.4.0",
    "@ionic-native/status-bar": "4.4.0",
    "@ionic/storage": "^2.1.3",
    "angular-svg-round-progressbar": "^1.2.1",
    "brmasker-ionic-3": "^1.0.3",
    "build": "0.1.4",
    "cordova": "^8.1.2",
    "cordova-android": "^7.0.0",
    "cordova-browser": "^5.0.4",
    "cordova-clipboard": "^1.1.1",
    "cordova-custom-config": "^5.0.3",
    "cordova-ios": "^4.5.5",
    "cordova-plugin-advanced-http": "^1.9.1",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-badge": "^0.8.7",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-facebook4": "git+https://github.com/amritk/cordova-plugin-facebook4.git",
    "cordova-plugin-fcm-plus": "git+https://github.com/guyromb/cordova-plugin-fcm-plus.git",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-geolocation": "^4.0.1",
    "cordova-plugin-googlemaps": "^2.4.2",
    "cordova-plugin-inappbrowser": "^2.0.2",
    "cordova-plugin-ionic-keyboard": "2.1.3",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-ios-localized-strings": "^1.0.6",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.4.1",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-socialsharing": "^5.3.2",
    "cordova-sqlite-storage": "^2.2.0",
    "cordova-support-google-services": "^1.1.0",
    "es6-promise-plugin": "^4.2.2",
    "fast-sha256": "^1.1.0",
    "ionic": "^3.20.1",
    "ionic-angular": "^3.9.5",
    "ionic2-date-picker": "^1.1.0",
    "ionicons": "3.0.0",
    "is": "^3.3.0",
    "js-yaml": "^3.12.2",
    "jsonwebtoken": "^8.1.0",
    "jsrsasign": "^8.0.4",
    "libphonenumber-js": "^1.0.24",
    "ng2-currency-mask": "^4.4.1",
    "onesignal-cordova-plugin": "~2.3.3",
    "purge": "^1.0.0",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "^0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^3.2.3",
    "@ionic/lab": "1.0.11",
    "typescript": "2.4.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-facebook4": {
        "APP_ID": "x",
        "APP_NAME": "x"
      },
      "cordova-sqlite-storage": {},
      "cordova-plugin-network-information": {},
      "cordova-clipboard": {},
      "cordova-plugin-advanced-http": {},
      "cordova-plugin-statusbar": {},
      "cordova-custom-config": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-app-version": {},
      "cordova-plugin-geolocation": {},
      "cordova-plugin-x-socialsharing": {},
      "onesignal-cordova-plugin": {},
      "cordova-plugin-badge": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-ios-localized-strings": {
        "MAIN_LANGUAGE": "pt-BR",
        "ADDITIONAL_LANGUAGES": "pt-BR"
      },
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "x",
        "API_KEY_FOR_IOS": "x",
        "LOCATION_ALWAYS_USAGE_DESCRIPTION": "Este aplicativo quer obter sua localização para garantir a segurança da conta.",
        "LOCATION_WHEN_IN_USE_DESCRIPTION": "Este aplicativo quer obter sua localização para garantir a segurança da conta.",
        "PLAY_SERVICES_VERSION": "15.0.1",
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      },
      "cordova-plugin-ionic-keyboard": {}
    },
    "platforms": [
      "browser",
      "android",
      "ios"
    ]
  }
}

Posts: 1

Participants: 1

Read full topic

IONIC 4: Scroll div inside segment

$
0
0

@augustofrr wrote:

Hi again! I want to make a scrollable div inside just one segment.

<div [ngSwitch]="abas">
	<div class="fundo">

		<div *ngSwitchCase="'salvas'" id="salvasId">

                  <!-- Scroll content -->

		</div>

               <div *ngSwitchCase="'final'" id="final">

		</div>

         </div>
</div>

Since ion-scroll is no longer used, how can I do this? Thanks!

Posts: 1

Participants: 1

Read full topic

Ionic app launches then crashes with ios 12.4 update

$
0
0

@BrentAshWilliams wrote:

Hi,

I have a number of apps that are currently built with ionic 3.

cli packages: (/Users/lester/.nvm/versions/node/v8.11.1/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.2.3
    Cordova Platforms  : android 8.0.0 ios 5.0.1
    Ionic Framework    : ionic-angular 3.9.8

System:

    ios-deploy : 1.9.2 
    ios-sim    : 8.0.1 
    Node       : v8.11.1
    npm        : 6.0.0 
    OS         : macOS High Sierra
    Xcode      : Xcode 10.1 Build version 10B61

What I am seeing on some Apple devices is that once the phone/tablet is updated to ios 12.4 that the apps will attempt to launch. I then see the initial screen for a few seconds before it disappears.

If I delete the app, download, and install from the app store it will then work again.

Has anyone else seen this?

Thanks

Posts: 1

Participants: 1

Read full topic

Grid Hell - v4

$
0
0

@joelmeaders wrote:

Hey I’m hoping someone here can help. It’s probably pretty easy but I am lost and have made it way too complex. I went back to square one for this post.

I have this seemingly simple grid, but I need to get the comments situated below the assignment card and stretched to the bottom of the screen (not row, as the row height can and will change). I’ve had various success with inline grids but it got to be a mess css-wise. The comment box has an ion-content inside that will scroll so no need to worry about it.

<ion-content fullscreen="true">
  <ion-grid no-padding>
    <ion-row no-padding class="ion-wrap">
      <ion-col sizeXl="3" sizeLg="5" no-padding>
        <app-case-assignments-card [case]="$caseReview | async"></app-case-assignments-card>
      </ion-col>
      <ion-col sizeXl="9" sizeLg="7" no-padding>
        <app-response-overview
          [questions]="$caseQuestions | async"
          [reviewData]="$reviewData | async"
        ></app-response-overview>
			</ion-col>
			<ion-col sizeXl="3" sizeLg="5">
					<app-comment-sidebar [items]="$reviewComments | async"></app-comment-sidebar>
			</ion-col>
    </ion-row>
  </ion-grid>
</ion-content>

Posts: 1

Participants: 1

Read full topic

Viewing all 71528 articles
Browse latest View live


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