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

Ionic 4 & Angular 8

$
0
0

Done! Added the package.json to my original post.


Ionic 5 - mobile address bar hiding

$
0
0

Do you find a working configuration for ios and android. This problem persists since years https://github.com/ionic-team/ionic/issues/19543 and developing a pwa makes your app feel like a website from the 90’s. The ionic homepage hides the address bar on scroll, because I think they dont’t use their own framework!? Are there any frameworks solving this problem for pwa?

Ionic-native/firebase:3.4.4 - analytics events not showing up

Ionic 3 and Google Play App Signing

$
0
0

No, i didn’t download anything just these 5 commands and try to upload the apk.

Error while send Email in Ionic 4

$
0
0

Hi,

I am trying to send Email using Backendless server but it give an error while sending Email.

login.page.html :

<ion-title>login</ion-title>

<ion-button (click)= Send()>Backendless

login.page.ts :

constructor(public httpreq: HttpClient ) { }

Send(){

var url = “https://api.backendless.com/<application_id>-<app_key>/messaging/email”;

var body = {

from : “example@gmail.com”,

subject : “Sample Email”,

bodyparts : {

textmessage : “Send Email”,

htmlmessage : “Send Email to me from the backendless server.”

},

to : [ “mymail@gmail.com” ]

}

this.httpreq.post(url, body,

{

 headers: { 'Content-Type' : 'application/json' },

}).subscribe(success => {

console.dir("SUCCESS -> " + JSON.stringify(success));

}, error => {

console.dir("ERROR -> " + JSON.stringify(error));

 });

}

Error in Chrome Browser Console :

POST https://api.backendless.com/<app_id>/<app_key>/messaging/email 400 (Bad Request)

ERROR -> {“headers”:{“normalizedNames”:{},“lazyUpdate”:null},“status”:400,“statusText”:“Bad Request”,“url”:“https://api.backendless.com/<app_id>/<app_key>/messaging/email”,“ok”:false,“name”:“HttpErrorResponse”,“message”:“Http failure response for https://api.backendless.com/<app_id>/<app_key>/messaging/email: 400 Bad Request”,“error”:{“code”:5045,“message”:“Cannot send email with the default Email Settings. Change the Email Settings in the console and try again”,“errorData”:{}}}

Please help, i need this urgent.

How to set image in page background in ionic 4?

Ionic app for background task in android and iOS

$
0
0

The same issue with us as we can’t trigger the subscript function when the application in background
there is anyone have a solutions

HttpClient infinity Timeout?

$
0
0

Hi, I’d like to tell you a quick story about my question, as I’m just wondering why is it so.

I’ve made a basic tracking app including backgroundGeolocation and I then POST all the location details to a FQDN website using HttpClient. It’s working fine and seems to be accurate enough.

Tonight I went for a walk about my town lake, and the tracking facility worked fine, for about half of my trip around the lake.

I know this, because I came home, looked at the server part and saw the tracks on the map of where I had gone - but only half of the track.
So, I opened the app, and then, it proceed to uploaded the rest of the tracks, and voila, the rest of the track appeared on my server.

My question is related to HttpClient, and what the timeout is, or if the app just keeps the data in an infinite holding pattern until it gets suitable reception and can then upload the data?

It was just weird behaviour, and i don’t think it is related to background/foreground geolocation.

I’m doing nothing special with the upload code. Should I be running a timeout, or just doing it this way?
Is the built-in Post method better? I think this way that I’m currently doing I’ve got (seemingly) more control over things.

I’m just after a why, or is it the best practice.
Thanks.


  this.httpClient.post(URLlink, trackJSONdata)
  .subscribe(data => {
    this.data.response = data["_body"]; 
  not-exist-on-type-response
  }, error => {
    console.log("Oooops!");
  });

Can not store data in a file

$
0
0

Hello,

I am developping an app using Ionic 4 with React.
I succeded to store data in LocalStorage using Capacitor Storage API (https://capacitor.ionicframework.com/docs/apis/storage/). It’s pretty easy to use and it is efficient.

Now, I need to backup everything in a file to be sent.
I tried the FileSystem API (https://capacitor.ionicframework.com/docs/apis/filesystem/) but I m not able to find my file once it has been created.

I tried to find my file on my Virtuel Device and on my Samsung Galaxy s7 but I found nothing.

Did I miss something?
Where are these folders mentioned in FileSystemDirectory?

Thanks

Apartemen Menteng Square, Solusi Hunian Masa Kini

$
0
0

Apartemen menjadi salah satu pilihan hunian yang sangat diminati dewasa ini. Orang
berbondong-bondong menyewa atau membeli sebuah unit hunian di apartemen. Dengan tujuan dan maksud yang berbeda-beda. Ada yang memang membeli karena lebih ingin tinggal disebuah hunian yang sederhana, ada pula yang menyewa karena tuntutan pekerjaan atau studi yang membutuhkan sebuah hunian yang dekat dengan tempat yang dituju. Apartemen juga dewasa ini, mulai banyak di gemari di kalangan muda-mudi yang baru bekerja atau berkuliah. Dibandingkan dengan tinggal atau menyewa sebuah kos-kosan, mereka lebih memilih apartemen, lagi pula perbandingan harga yang tidak terlalu jauh juga mereka jadikan pertimbangan. Selain biaya sewa atau biaya beli yang ditawarkan lebih murah dari hunian yang lainnya juga dijadikan bahan pertimbangan lainnya.

Serta akses dan segala kemudahan yang diberikan, dengan berbagai macam fasilitas lengkap yang dijanjikan, tentu saja menambah nilai lebih dihati para calon penyewa dan pembeli unit tersebut.

Seperti Apartemen Menteng Square, sebuah solusi hunian masa kini. Letaknya yang
strategis, akses dan segala kemudahan yang diberikan serta fasilitas yang menjanjikan dapat anda miliki dengan biaya sewa dan biaya beli yang dapat dibilang cukup terjangkau. Sebuah hunian dengan desain sederhana dan minimalis namun tetap mampu memberikan anda kenyamanan dalam beraktifitas ataupun beristirahat. Tanpa perlu takut anda akan meras kesepian atau merasa bosan,

apartemen Menteng Square menyediakan beberapa fasilitas yang dapat anda gunakan kapanpun
dan selama apapun. Selain itu banyak tempat-tempat menarik di sekitar Apartemen Menteng
Square yang dapat membuat hidup anda menjadi lebih berwarna dan menyenangkan.
Apartemen Menteng Square, sangat memperhatikan kenyamanan dan keamanan para
penyewa dan pembeli sebuah unit di apartemen mereka. Jadi anda tidak perlu merasa risau atau
khawatir sedikitpun. Sistem keamanan yang canggih, dengan difasilitasi banyak CCTV di penjuru
lantai, membuat anda akan tetap merasa aman.
Anda memliki sebuah kendaraan pribadi? Anda tidak perlu bingung dan khaawatir, karena
Apartemen Menteng Square menyediakan lahan parkir khusus bagi anda pemilik kendaraan pribadi.

Hanya dengan menambah sedikit biaya, kendaraan pribadi anada akan tetap aman dan anda tetap
bisa menggunakannya setiap hari.
Anda tidak memiliki kendaraan pribadi? Atau anda lebih suka menggunakan transportasi
umum? Tidak perlu merasa takut anda akan kesulitasn mencari transportasi umum tersebut.
Apartemen Menteng Square juga letaknya didekat dengan halte bus-bus transjakarta atau tempat
drop out taksi online maupun taksi biasa. letaknya yang juga dekat dengan stasiun, dapat
mempurmudah mobilitas anda.
Restaurant atau bahkan cafe-cafe cantik juga menjadi nilai tambah bagi Apartemen
Menteng Square, karena dengan adanya restaurant dan cafe tersebut, bukankah akan
mempermudah anda ketika anda ingin makan makanan tertentu.

Pemandangan malam kota Jakarta yang indah jga dapat anda saksikan hanya dengan
membuka jendela anda. Anda dapat duduk di balkon sembari meminum secangkir teh hangat atau
kopi dan menikmati keindahan malam kota Jakarta.
Bukankah mengasyikan? Memikirkannya saja sudah mampu membuat anda tersenyum
bahagia bukan? Lalu anda tunggu apalagi? Masihkah anda ragu? Masih inginkah anda membuang
semua waktu anda hanya untuk berfikir tentang hal-hal yang tidak perlu anda pikirkan lagi?
Apartemen Menteng Square adalah Solusi terbaik untuk anda. Apartemen Menteng Square, adalah
sebuah solusi Hunian Masa Kini dengan Harga Terjangkau yang letaknya di pusat kota. Jadi ayo
segera pesan sebuah unit di Apartemen Menteng Square.

How to determine the changes in device contacts in phonegap

$
0
0

Hi , If you get any solution please send me. I am also looking for something like that.

Sync contacts in ionic3

$
0
0

have you got any solution, I am also stuck at same position please inform if you get any solution please.

I can't compile my application

$
0
0

Hello, I have been trying to compile my application for several days and it gives me an error. The fact is that the project works perfectly for Android, but not for iOS.
I have updated, I have deleted the platforms and I have created them again, but every time I compile it gives me a different error.
I need help, thank you very much.
My package.json file:

{
  "name": "myapp",
  "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": {
    "@angular/common": "5.0.0",
    "@angular/compiler": "5.0.0",
    "@angular/compiler-cli": "^8.2.14",
    "@angular/core": "5.0.0",
    "@angular/forms": "5.0.0",
    "@angular/http": "5.0.0",
    "@angular/platform-browser": "5.0.0",
    "@angular/platform-browser-dynamic": "5.0.0",
    "@ionic-native/admob-free": "^4.20.0",
    "@ionic-native/android-fingerprint-auth": "^4.20.0",
    "@ionic-native/android-permissions": "^4.20.0",
    "@ionic-native/battery-status": "^4.20.0",
    "@ionic-native/bluetooth-le": "^4.20.0",
    "@ionic-native/camera": "^4.20.0",
    "@ionic-native/core": "4.3.2",
    "@ionic-native/db-meter": "^4.20.0",
    "@ionic-native/device": "^4.20.0",
    "@ionic-native/diagnostic": "^4.20.0",
    "@ionic-native/extended-device-information": "^4.20.0",
    "@ionic-native/fingerprint-aio": "^4.20.0",
    "@ionic-native/firebase": "^4.20.0",
    "@ionic-native/firebase-analytics": "^4.20.0",
    "@ionic-native/firebase-authentication": "^4.20.0",
    "@ionic-native/flashlight": "^4.20.0",
    "@ionic-native/geolocation": "^4.20.0",
    "@ionic-native/google-analytics": "^4.20.0",
    "@ionic-native/google-plus": "^4.20.0",
    "@ionic-native/gyroscope": "^4.20.0",
    "@ionic-native/http": "^4.20.0",
    "@ionic-native/in-app-purchase": "^4.20.0",
    "@ionic-native/in-app-purchase-2": "^4.20.0",
    "@ionic-native/native-geocoder": "^4.20.0",
    "@ionic-native/native-storage": "^4.20.0",
    "@ionic-native/network": "^4.20.0",
    "@ionic-native/pin-check": "^4.20.0",
    "@ionic-native/social-sharing": "^4.20.0",
    "@ionic-native/spinner-dialog": "^4.20.0",
    "@ionic-native/splash-screen": "4.3.2",
    "@ionic-native/status-bar": "4.3.2",
    "@ionic-native/text-to-speech": "^4.20.0",
    "@ionic-native/three-dee-touch": "^4.20.0",
    "@ionic-native/touch-id": "^4.20.0",
    "@ionic-native/vibration": "^4.20.0",
    "@ionic/storage": "2.1.3",
    "angular-particle": "^1.0.4",
    "angularfire2": "^5.3.0",
    "cordova-admob-sdk": "^0.24.1",
    "cordova-android": "8.0.0",
    "cordova-android-firebase-gradle-release": "^4.0.0",
    "cordova-android-play-services-gradle-release": "^4.0.0",
    "cordova-android-support-gradle-release": "^3.0.1",
    "cordova-ios": "^5.1.1",
    "cordova-plugin-add-swift-support": "^2.0.2",
    "cordova-plugin-admob-free": "^0.27.0",
    "cordova-plugin-advanced-http": "^2.4.0",
    "cordova-plugin-android-fingerprint-auth": "^1.5.0",
    "cordova-plugin-android-permissions": "^1.0.2",
    "cordova-plugin-androidx": "^1.0.2",
    "cordova-plugin-androidx-adapter": "^1.1.0",
    "cordova-plugin-battery-status": "^2.0.3",
    "cordova-plugin-cocoapod-support": "^1.6.2",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-dbmeter": "^2.1.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-file": "^6.0.2",
    "cordova-plugin-fingerprint-aio": "^3.0.1",
    "cordova-plugin-firebase-analytics": "^1.1.1",
    "cordova-plugin-firebasex": "^7.0.2",
    "cordova-plugin-flashlight": "^3.2.0",
    "cordova-plugin-geolocation": "^4.0.2",
    "cordova-plugin-googleplus": "^8.4.0",
    "cordova-plugin-gyroscope": "^0.1.4",
    "cordova-plugin-inapppurchase": "^1.2.0",
    "cordova-plugin-ionic-webview": "^4.1.3",
    "cordova-plugin-native-spinner": "^1.1.3",
    "cordova-plugin-nativegeocoder": "^3.2.2",
    "cordova-plugin-nativestorage": "^2.3.2",
    "cordova-plugin-network-information": "^2.0.2",
    "cordova-plugin-pincheck": "0.0.6",
    "cordova-plugin-splashscreen": "^5.0.3",
    "cordova-plugin-tts": "^0.2.3",
    "cordova-plugin-vibration": "^3.1.1",
    "cordova-plugin-whitelist": "^1.3.4",
    "cordova-plugin-x-socialsharing": "^5.6.4",
    "cordova-promise-polyfill": "0.0.2",
    "cordova-simple-volume": "^1.0.4",
    "cordova-support-android-plugin": "1.0.1",
    "cordova-support-google-services": "1.3.2",
    "cordova.plugins.diagnostic": "^5.0.1",
    "es6-promise-plugin": "^4.2.2",
    "firebase": "^7.6.2",
    "ionic-angular": "3.9.2",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "rxjs": "5.5.2",
    "rxjs-compat": "^6.5.4",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^3.2.4",
    "typescript": "^2.4.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-googleplus": {
        "REVERSED_CLIENT_ID": "com.googleusercontent.apps.1090467287213-bm8deu8379oo06u7rr9h2tm6l0f6hvtg",
        "PLAY_SERVICES_VERSION": "15.0.1"
      },
      "ionic-plugin-keyboard": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-native-spinner": {},
      "cordova-plugin-advanced-http": {
        "OKHTTP_VERSION": "3.10.0"
      },
      "cordova-plugin-nativestorage": {},
      "cordova-plugin-android-fingerprint-auth": {},
      "cordova-plugin-tts": {},
      "cordova-plugin-dbmeter": {},
      "cordova-plugin-vibration": {},
      "cordova.plugins.diagnostic": {
        "ANDROID_SUPPORT_VERSION": "28.+"
      },
      "cordova-plugin-battery-status": {},
      "cordova-plugin-flashlight": {},
      "cordova-plugin-network-information": {},
      "cordova-android-support-gradle-release": {
        "ANDROID_SUPPORT_VERSION": "27.+"
      },
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "Comprobar el estado del GPS"
      },
      "cordova-plugin-nativegeocoder": {
        "LOCATION_WHEN_IN_USE_DESCRIPTION": "Use geocoder service"
      },
      "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-android-permissions": {},
      "cordova-plugin-gyroscope": {},
      "cordova-plugin-pincheck": {},
      "cordova-plugin-inapppurchase": {},
      "cordova-plugin-admob-free": {
        "ADMOB_APP_ID": "ca-app-pub-6508971507467534~9864462056"
      },
      "cordova-android-play-services-gradle-release": {
        "PLAY-SERVICES-ADS": "18.0.0",
        "PLAY-SERVICES-ADS-IDENTIFIER": "17.0.0",
        "PLAY-SERVICES-ADS-LITE": "18.0.0",
        "PLAY-SERVICES-AFS-NATIVE": "17.0.0",
        "PLAY-SERVICES-ANALYTICS": "17.0.0",
        "PLAY-SERVICES-ANALYTICS-IMPL": "17.0.0",
        "PLAY-SERVICES-APPINVITE": "18.0.0",
        "PLAY-SERVICES-AUDIENCE": "17.0.0",
        "PLAY-SERVICES-AUTH": "17.0.0",
        "PLAY-SERVICES-AUTH-API-PHONE": "17.0.0",
        "PLAY-SERVICES-AWARENESS": "17.0.0",
        "PLAY-SERVICES-BASE": "17.0.0",
        "PLAY-SERVICES-BASEMENT": "17.0.0",
        "PLAY-SERVICES-CAST": "17.0.0",
        "PLAY-SERVICES-CAST-FRAMEWORK": "17.0.0",
        "PLAY-SERVICES-CLEARCUT": "17.0.0",
        "PLAY-SERVICES-CRONET": "17.0.0",
        "PLAY-SERVICES-DRIVE": "17.0.0",
        "PLAY-SERVICES-FIDO": "18.0.0",
        "PLAY-SERVICES-FITNESS": "17.0.0",
        "PLAY-SERVICES-FLAGS": "17.0.0",
        "PLAY-SERVICES-GAMES": "18.0.0",
        "PLAY-SERVICES-GASS": "18.0.0",
        "PLAY-SERVICES-GCM": "17.0.0",
        "PLAY-SERVICES-IDENTITY": "17.0.0",
        "PLAY-SERVICES-IID": "17.0.0",
        "PLAY-SERVICES-INSTANTAPPS": "17.0.0",
        "PLAY-SERVICES-LOCATION": "17.0.0",
        "PLAY-SERVICES-MAPS": "17.0.0",
        "PLAY-SERVICES-MEASUREMENT": "17.0.0",
        "PLAY-SERVICES-MEASUREMENT-API": "17.0.0",
        "PLAY-SERVICES-MEASUREMENT-IMPL": "17.0.0",
        "PLAY-SERVICES-MEASUREMENT-SDK": "17.0.0",
        "PLAY-SERVICES-MEASUREMENT-SDK-API": "17.0.0",
        "PLAY-SERVICES-NEARBY": "17.0.0",
        "PLAY-SERVICES-OSS-LICENSES": "17.0.0",
        "PLAY-SERVICES-PANORAMA": "17.0.0",
        "PLAY-SERVICES-PHENOTYPE": "17.0.0",
        "PLAY-SERVICES-PLACES": "17.0.0",
        "PLAY-SERVICES-PLACES-PLACEREPORT": "17.0.0",
        "PLAY-SERVICES-PLUS": "17.0.0",
        "PLAY-SERVICES-SAFETYNET": "17.0.0",
        "PLAY-SERVICES-STATS": "17.0.0",
        "PLAY-SERVICES-TAGMANAGER": "17.0.0",
        "PLAY-SERVICES-TAGMANAGER-API": "17.0.0",
        "PLAY-SERVICES-TAGMANAGER-V4-IMPL": "17.0.0",
        "PLAY-SERVICES-TASKS": "17.0.0",
        "PLAY-SERVICES-VISION": "18.0.0",
        "PLAY-SERVICES-VISION-COMMON": "18.0.0",
        "PLAY-SERVICES-VISION-IMAGE-LABEL": "18.0.0",
        "PLAY-SERVICES-WALLET": "17.0.0",
        "PLAY-SERVICES-WEARABLE": "17.0.0"
      },
      "cordova-android-firebase-gradle-release": {
        "FIREBASE-CORE": "17.0.0",
        "FIREBASE-ADS": "18.0.0",
        "FIREBASE-ANALYTICS": "17.0.0",
        "FIREBASE-APPINDEXING": "19.0.0",
        "FIREBASE-AUTH": "18.0.0",
        "FIREBASE-FIRESTORE": "20.0.0",
        "FIREBASE-FUNCTIONS": "18.0.0",
        "FIREBASE-MESSAGING": "19.0.0",
        "FIREBASE-STORAGE": "18.0.0",
        "FIREBASE-CRASH": "16.2.1",
        "CRASHLYTICS": "2.10.1",
        "FIREBASE-DYNAMIC-LINKS": "18.0.0",
        "FIREBASE-INVITES": "17.0.0",
        "FIREBASE-INAPPMESSAGING": "18.0.1",
        "FIREBASE-INAPPMESSAGING-DISPLAY": "18.0.1",
        "FIREBASE-ML-VISION": "21.0.0",
        "FIREBASE-ML-VISION-IMAGE-LABEL-MODEL": "18.0.0",
        "FIREBASE-ML-VISION-FACE-MODEL": "18.0.0",
        "FIREBASE-ML-VISION-OBJECT-DETECTION-MODEL": "17.0.0",
        "FIREBASE-ML-NATURAL-LANGUAGE": "20.0.0",
        "FIREBASE-ML-NATURAL-LANGUAGE-LANGUAGE-ID-MODEL": "20.0.0",
        "FIREBASE-ML-NATURAL-LANGUAGE-TRANSLATE-MODEL": "20.0.0",
        "FIREBASE-ML-NATURAL-LANGUAGE-SMART-REPLY-MODEL": "20.0.0",
        "FIREBASE-ML-MODEL-INTERPRETER": "20.0.0",
        "FIREBASE-ML-VISION-AUTOML": "17.0.0",
        "FIREBASE-PERF": "18.0.0",
        "FIREBASE-DATABASE": "18.0.0",
        "FIREBASE-CONFIG": "18.0.0"
      },
      "cordova-plugin-androidx": {},
      "cordova-plugin-androidx-adapter": {},
      "cordova-plugin-compat": {},
      "cordova-plugin-firebase-analytics": {
        "FIREBASE_CORE_VERSION": "16.0.+"
      },
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-fingerprint-aio": {
        "FACEID_USAGE_DESCRIPTION": " "
      },
      "cordova-simple-volume": {},
      "cordova-plugin-cocoapod-support": {},
      "cordova-plugin-firebasex": {}
    },
    "platforms": [
      "android"
    ]
  }
}

Ionic 5 Create Modal from Service with presentingElement

$
0
0

Thank you! Using

presentingElement: document.getElementById(‘ion-router-outlet-content’),

works as a workaround.

No error returned but no data returned on successful json post to api

$
0
0

Hi all,

I am attempting a json post to an api expected to return json data in the format [‘token’: ‘’, status: ‘’, error: ‘’] but no data is returned.

My sample code is :

import { Component } from '@angular/core';
import { HTTP } from '@ionic-native/http/ngx';

@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {

    public amessage = '';
    public bmessage = '';

    public errmessage: boolean = false;

  constructor(private http: HTTP) {}

  getVehicles() {

    this.http.setDataSerializer('json');

    this.http.post(
      "http://api.*********.com/WebProcessorApi.ashx",             //URL
      {
        "Token":"", 
        "OperationType":"SignIn", 
        "InformationType":"User", 
        "LanguageType":"", 
        "Arguments": {"UserName":"username","Password":"password"}

      },         //Data,
      { "Content-Type": "application/json", "Access-Control-Allow-Origin" : "*"} //Headers
     )
     .then(response => {
        // prints 200
        console.log(response.status);
        try {
          this.amessage = JSON.stringify(response);
          // prints test
          console.log(response);
          //this.amessage = response;
        } catch(e) {
          console.error('JSON parsing error');
        }
     })
     .catch(response => {
         this.errmessage = true;
       // prints 403
       console.log(response.status);
        this.bmessage = response.error;
       // prints Permission denied
       console.log(response.error);
     });

  }
}

The value returned is

There was an instance when it did return the proper expected data json format but only when it was displaying a returned the error.

It returned [‘token’: ‘’, status: ‘’, error: ‘Object reference not set to an instance of an object in web api’] but that was before I added

this.http.setDataSerializer('json');

after i added that line, no data is returned.

what could be the possible cause?

Thanks


How to implement a horizontal scroll like In above image in ionic 4/5?

Install Ionic Fork locally

$
0
0

Yeah i read that before my first PR. It describes how to run the tests etc, but i think not how to use a local fork for a test project :confused:

Import all photo from photo library in ionic page

How to implement a horizontal scroll like In above image in ionic 4/5?

$
0
0

That’s not really an ionic topic. If you are using Angular have a look at this.

overflow-x: scroll does the thing.

Import all photo from photo library in ionic page

Viewing all 228603 articles
Browse latest View live


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