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

Ionic Back button fails when Admob ad shows

$
0
0

I managed to show the Admob test Banner in the bottom of one of my views but now the navigation back button to the root view through the top navbar fails.

Is the ADmob logic somehow overriding the ui interaction?
Is this because as of now I am showing the test ad only?
My implmentation is based on the default example

Code below:

import * as moment from 'moment';

import { AdMobFree, AdMobFreeBannerConfig } from '@ionic-native/admob-free';

import { SocialSharing } from '@ionic-native/social-sharing';
import { Component, ViewChild } from '@angular/core';
import { IonicPage, NavController, NavParams, LoadingController, Platform, Slides } from 'ionic-angular';

im

const bannerConfig: AdMobFreeBannerConfig = {
  // add your config here
  // for the sake of this example we will just use the test config
  isTesting: true,
  autoShow: true
 };
 
@IonicPage()
@Component({
  selector: 'page-forecast',
  templateUrl: 'mypage.html',
  providers: [AdMobFree]
})
export class ForecastPage {



  constructor(public navCtrl: NavController, 
              public navParams: NavParams,
              private _admobFree: AdMobFree) {

    this._admobFree.banner.config(bannerConfig);



    this._admobFree.banner.prepare()
    .then(() => {
      console.log('\nSHOWING BANNER!\n');
      // banner Ad is ready
      // if we set autoShow to false, then we will need to call the show method here
    })
    .catch(e => console.log(e));
    }

  ionViewDidLoad() {
    console.log('Hello World')
  }



}

Original question here if you want to collect SO karma


AlertController: Word splits into 2 words on new line

$
0
0

Hello,

I’m showing some message in AlertController. Issue is when there is new line in message, last word is splits into 2 words.

See below image for reference:

Issue: ‘version’ word is splits to ‘versi’ & ‘on’(goes to new line).
Expected behavior: if whole word ‘version’ can’t fit into same line, it should display in new line as whole word ‘version’.

Thanks,
Nirav

Sending request as OPTIONS instead of POST,GET in backend

$
0
0

@niravparsana94 Thanks for the reply.
In backend we are just adding @CrossOrigin for every class isn’t it sufficient??

Sending request as OPTIONS instead of POST,GET in backend

$
0
0

I can’t tell you exact configuration for your programming language. Better you can google it yourself.

Ionic 4 WebAssembly is not defined with OpenCV on an older phone

$
0
0

Hi

I have no experience with OpenCV so cannot tell what is happening if you use other libs.

As to the webview, you may want to try downgrading, but I think it may become a disappointing experience, knowing that some aspects of angular and/or ionic (such as webcomponents) may not function properly anymore.

Next to some other issues around security and all the efforts trying to get it done at all.

Don’t have the details, but there have been in past some posts around this.

You may want to carefully review the available OS of your users to see if it it is worth the effort.

Best approach for E2E testing

$
0
0

Hi All, I’m very new to E2E testing. I want implement end to end testing of my Ionic 4 application. Want to know what is best way or tool to use for that. If Appium is your answer, can I use it for all the native interactions like camera, Geo-location, Making API calls etc ?
My app has many native functionalities considering that, kindly suggest me, what approach I need to use and share the useful links with that regard.

Help us test the Ionic 5 Release Candidate!

$
0
0

Thx for the notice,

Just to check, the CDN way to use is:

    <script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@5.0.0-rc.1/dist/ionic/ionic.esm.js"></script>
    <script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core@5.0.0-rc.1/dist/ionic/ionic.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@5.0.0-rc.1/css/ionic.bundle.css" />

? (integration test with svelte)

Getting some 404 on some svg related to ionicons, but haven’t investigated more thoroughly.

Video chatting with recording facility Ionic

$
0
0

Hi, You need to give more information. What technology you are using for mediating and by network what you mean ?


Sending request as OPTIONS instead of POST,GET in backend

$
0
0

@lohith95 if you find solution working, then mark it as answer so that question can be closed.

Ion-slider in ion-menu not working

$
0
0

navigation bar menu is not working after the successful event booking.Anyone can any idea about this issue

Sending request as OPTIONS instead of POST,GET in backend

$
0
0

Is there any way to handle it from ionic end??

Sending request as OPTIONS instead of POST,GET in backend

$
0
0

No, i guess. You can’t control things restricted at server-side from client-end.

Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25

$
0
0

Import this code toyour build.gradle file and try to build

repositories {
mavenCentral()
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.3.0'
}

Creating a popup form that appears only once

$
0
0

Hi all,

I am looking for advice on what is the best code or way to create a POP-UP FORM that requires users to fill up the details ONLY ONCE after installing the application.

Basically, after users install the application from play/app store, a pop-up form will pop out and they MUST fill in the details in the form and will only be able to use the app after clicking the submit button ONLY ONCE.

Something like a login page which only comes out once, but I do not need my users to register an account however I need them to fill in a form in order to proceed.

Any suggestions?

Any help is appreciated, Thanks!

Build failure for ionic app

$
0
0

i’m facing the same issue now. if you find any solution please suggest me


Removing space between ion-header and ion-content

Ionoic v1 with angularjs _build error

$
0
0

I have installed the android built tool version as 26 yet i receive the following error during my build any suggestion please

A problem occurred evaluating project ‘:app’.

No installed build tools found. Install the Android build tools version 19.1.0 or higher.

Ionic 3 App uninstall event in ios

$
0
0

anyone who has experience with the ionic 3 apps remove the app event in ios.

I integrate firebase analytics into my app to find out how many peoples uninstall the application. is worked in android.but in ios it’s not work do anyone know the problem.

I get an error in the ionic serve(ng build)

$
0
0

I’m migrating source code from ionic3 to ionic4.
After migrating the source code, the following error occurs when building.
Please tell me how to solve it.

  • error contents
ERROR in ./src/global.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/global.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):

    color: color($colors, text_gray);
                ^
      Undefined variable: "$colors".
      in .\src\app\app.scss (line 75, column 18)
Error: 
    color: color($colors, text_gray);
                ^
      Undefined variable: "$colors".
      in .\src\app\app.scss (line 75, column 18)
    at options.error (.\node_modules\node-sass\lib\index.js:291:26)
 @ ./src/global.scss 1:14-241
 @ multi ./src/theme/variables.scss ./src/global.scss
  • package.json
{
  "name": "v4blank-temp",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "https://ionicframework.com/",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular-devkit/build-angular": "^0.803.23",
    "@angular/common": "~8.2.14",
    "@angular/core": "8.2.14",
    "@angular/forms": "~8.2.14",
    "@angular/platform-browser": "8.2.14",
    "@angular/platform-browser-dynamic": "~8.2.14",
    "@angular/router": "~8.2.14",
    "@ionic-native/android-permissions": "^5.20.0",
    "@ionic-native/app-version": "^5.20.0",
    "@ionic-native/calendar": "^5.20.0",
    "@ionic-native/core": "^5.20.0",
    "@ionic-native/dialogs": "^5.20.0",
    "@ionic-native/geolocation": "^5.20.0",
    "@ionic-native/globalization": "^5.20.0",
    "@ionic-native/google-analytics": "^5.20.0",
    "@ionic-native/in-app-browser": "^5.20.0",
    "@ionic-native/location-accuracy": "^5.20.0",
    "@ionic-native/native-storage": "^5.20.0",
    "@ionic-native/network": "^5.20.0",
    "@ionic-native/open-native-settings": "^5.20.0",
    "@ionic-native/social-sharing": "^5.20.0",
    "@ionic-native/splash-screen": "^5.20.0",
    "@ionic-native/status-bar": "^5.20.0",
    "@ionic/angular": "^4.11.10",
    "@ngx-translate/core": "^11.0.1",
    "@ngx-translate/http-loader": "^4.0.0",
    "angular-linky": "^1.2.2",
    "claimtypes": "^0.1.0",
    "cordova-android": "^8.1.0",
    "cordova-ios": "^5.1.1",
    "core-js": "^3.6.4",
    "es6-promise-plugin": "^4.2.2",
    "rxjs": "^6.5.4",
    "rxjs-compat": "^6.5.4",
    "tslib": "^1.10.0",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/architect": "^0.803.23",
    "@angular-devkit/core": "^8.3.23",
    "@angular-devkit/schematics": "^8.3.23",
    "@angular/cli": "^8.3.23",
    "@angular/compiler": "~8.2.14",
    "@angular/compiler-cli": "~8.2.14",
    "@angular/language-service": "~8.2.14",
    "@ionic/angular-toolkit": "^2.1.2",
    "@types/jasmine": "^3.5.1",
    "@types/jasminewd2": "~2.0.8",
    "@types/node": "^13.5.0",
    "codelyzer": "^5.2.1",
    "com-sarriaroman-photoviewer": "^1.2.4",
    "cordova-open-native-settings": "^1.5.2",
    "cordova-plugin-android-permissions": "^1.0.2",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-calendar": "^5.1.5",
    "cordova-plugin-device": "^2.0.3",
    "cordova-plugin-dialogs": "^2.0.2",
    "cordova-plugin-geolocation": "^4.0.2",
    "cordova-plugin-globalization": "^1.11.0",
    "cordova-plugin-google-analytics": "^1.8.6",
    "cordova-plugin-inappbrowser": "^3.2.0",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^4.1.3",
    "cordova-plugin-nativestorage": "^2.3.2",
    "cordova-plugin-network-information": "^2.0.2",
    "cordova-plugin-request-location-accuracy": "^2.3.0",
    "cordova-plugin-splashscreen": "^5.0.3",
    "cordova-plugin-statusbar": "^2.4.3",
    "cordova-plugin-whitelist": "^1.3.4",
    "cordova-plugin-x-socialsharing": "^5.6.3",
    "cordova-plugin-x-toast": "^2.7.2",
    "css-loader": "^0.28.10",
    "jasmine-core": "~3.5.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.4.1",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~2.1.1",
    "karma-jasmine": "~3.1.0",
    "karma-jasmine-html-reporter": "^1.5.1",
    "node-sass": "^4.13.1",
    "protractor": "~5.4.2",
    "sass-loader": "^7.1.0",
    "ts-node": "~8.6.2",
    "tslint": "~6.0.0",
    "typescript": "~3.5.0"
  },
  "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-android-permissions": {},
      "cordova-plugin-app-version": {},
      "cordova-plugin-dialogs": {},
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
      },
      "cordova-plugin-globalization": {},
      "cordova-plugin-nativestorage": {},
      "cordova-plugin-network-information": {},
      "com-sarriaroman-photoviewer": {},
      "cordova-open-native-settings": {},
      "cordova-plugin-x-socialsharing": {
        "ANDROID_SUPPORT_V4_VERSION": "24.1.1+",
        "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.",
        "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."
      },
      "cordova-plugin-x-toast": {},
      "cordova-plugin-google-analytics": {
        "GMS_VERSION": "11.0.1"
      },
      "cordova-plugin-calendar": {
        "CALENDAR_USAGE_DESCRIPTION": "This app uses your calendar",
        "CONTACTS_USAGE_DESCRIPTION": " "
      },
      "cordova-plugin-request-location-accuracy": {
        "PLAY_SERVICES_LOCATION_VERSION": "16.+"
      },
      "cordova-plugin-inappbrowser": {}
    },
    "platforms": [
      "ios",
      "android"
    ]
  }
}
  • ionic info
Ionic:

   Ionic CLI                     : 5.4.6 (C:\Users\yosuke.yasui\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.11.10
   @angular-devkit/build-angular : 0.803.23
   @angular-devkit/schematics    : 8.3.23
   @angular/cli                  : 8.3.23
   @ionic/angular-toolkit        : 2.1.2

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v12.13.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.13.0
   OS     : Windows Server 2016

Build failure for ionic app

$
0
0

follow the above step, it works.

Viewing all 228514 articles
Browse latest View live


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