Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 48984 articles
Browse latest View live

Can't add Android to Ionic 4 Capacitor app as www is empty

$
0
0

@peterjc wrote:

I am just starting to play with Ionic 4 and Capacitor.

Following the doco, I attempted to add Android to the blank Ionic 4 application I have just created, and got the following error…

$ npx cap add android
npx: installed 1 in 2.363s
Path must be a string. Received undefined
C:\dev\ionic\sqlite-test\node_modules\@capacitor\cli\bin\capacitor
[error] The web directory (C:\dev\ionic\sqlite-test\www) must contain a "index.html".
    It will be the entry point for the web portion of the Capacitor app.

Also, even though I have been running the app (using Ionic serve), I notice my www folder is empty! So not sure where the app is building to?

Any ideas here greatly appreciated.

Posts: 1

Participants: 1

Read full topic


Ionic Firebase Index

$
0
0

@bilisim1995 wrote:

Hi. I have a problem. I used firebase for get realtime data. But when I run the function data is coming;

—>4th message
—>first message
—>second message
—>third message

and going back to previous page, I’m opening the message page again all messages are coming correctly. only when I first opened it get message irregular

—>first message
—>second message
—>third message
—>4th message

what can I do about it
Thank you for your help

this.vt.collection("message").where("room", "==", roomNUmber)
        .orderBy("date", "asc")
        .onSnapshot(function (snapshot) {
          snapshot.docChanges().forEach(function (change) {
            
         console.log(change);
            if (change.type === "added") {
...
..
.

Posts: 1

Participants: 1

Read full topic

Ionic 4 PWA Camera

$
0
0

@avilao wrote:

Hi guys

I’m developing a PWA using ionic 4. Future plans don’t include making the app available on the stores.

One of the feature I need to take or upload photos.

I was wandering what the best approach would be?

Capacitor?
If so, do I need to use pwa elements? Or would it use the native stuff of mobile devices?

Cordova?

HMTL input?
Not sure about browser support on this one…

Thank you for your inputs

Posts: 2

Participants: 2

Read full topic

How to select Items using ion-select without delete Items that was selected

$
0
0

@NabilaEsam wrote:

Q2

when select Items in category فرامل using ion-select ,then select Items from category فلتر it remove the firest Items was selected before
I want select from each category without remove any thing selected before ???

Posts: 1

Participants: 1

Read full topic

[@ionic/core] How to implement route guard?

$
0
0

@JCKodel wrote:

How is the recommended way to implement secure routes (one route that is secure has, initially, a redirect to a login page that is erased from the navigation stack as soon as the user is logged in).

Posts: 3

Participants: 2

Read full topic

Cordova-plugin-media-capture on windows 10 mobile

$
0
0

@jasongenesis wrote:

I’m building IONIC app with plugin “cordova-plugin-media-capture” for iOS, Android, Windows Mobile. For iOS, Andorid it’s working fine. Unfortunately Windows Mobile 10 gives me error : plugin not installed Any ideas ?

Posts: 1

Participants: 1

Read full topic

Ionic 3 can't play local html5 video on ios

$
0
0

@lolaswift wrote:

<video *ngIf="words[i].video" width="100%" autoplay controls autobuffer webkit-playsinline>

<source [src]="_sanitizer.bypassSecurityTrustResourceUrl(words[i].video)" type="video/mp4">

</video>

config.xml

<allow-navigation href="http://localhost:8089/*" />

<preference name="WKPort" value="8089" />

error:

Failed to load resource: the server responded with a status of 401 (Unauthorized)
http://localhost:8089/assets/videos/cat.mp4

@rapropos Hi Robert, could you please help me?
@Judgewest2000 Last time, you mentioned that Ionic was working on something to replace the local web server, do you know if it is released? could you please help?

I tried to sanitize the url from the controller. also not working. And I don’t want to use the native video player because I don’t know how to specify the width and height.

big thx!!

Posts: 1

Participants: 1

Read full topic

[IONIC 4] color of ion-label

$
0
0

@proiertti wrote:

How I can change the color of a ion-label in ionic 4?
I tried in the scss of the page:

ion-labe l{
–color: green;
}

But it doesn’t work!

Posts: 2

Participants: 2

Read full topic


[ionic 4] How to add inputs to alert controller dynamically

$
0
0

@Dorado wrote:

Hey fellas, I faced with a problem, I want to add some Inputs into presented alert but do not how to do it, I tried to do like this

callAlert() {
const alert = await this.alertCtrl.create({
      header: 'Height',
      buttons: [
        {
          text: 'Cancel',
          role: 'cancel',
          cssClass: 'secondary',
          handler: () => {
            console.log('Confirm Cancel');
          }
        }, {
          text: 'Ok',
          handler: () => {
            console.log('Confirm Ok');
          }
        }
      ]
    }).then(resp => {
      const alertInputs = <any[]>this.availableFootValues.map((el, index) => ({
        name: `radio${index}`,
        type: 'radio',
        label: el.title,
        value: el.value,
        checked: false
      }));

      resp.inputs.concat(...alertInputs);

      resp.present();
    });
}

But inputs are empty ((. Any ideas?

Posts: 2

Participants: 2

Read full topic

Hows to debug .ts files when running Ionic4/Capacitor on Android emulator

$
0
0

@peterjc wrote:

Hi, I am running my sample Ionic4/Capacitor app from Android studio using the emulator.

I want to be able to debug the ts source, but when I open in chrome://inspect as I would normally, I just cannot see the ts files anywhere, just js.

I did find this post, , but using the second suggestion, ie

  1. To see the true original ts file while debugging on Android I patched angular cli source code (i have @angular/cli version 7.0.0) to use inline-source-maps webpack option. To do so I changed one line in node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js file
    sourcemaps = ‘eval’;
    to
    sourcemaps = ‘inline-source-map’;

still didn’t work for me. Also would be better if we did not have to edit a file in node_modules?

At any rate, I need to run in emulator due to will be relying on SQLite a lot, but still need to debug the main app (ts files).

Thanks in advance for any suggestions!

Posts: 1

Participants: 1

Read full topic

How to randomly display images in ionic 3?

Ionic Apk Build error

$
0
0

@mahdimunfarid wrote:

i am new in ionic framewrok. i have created a project but when i try to build apk with onic cordova build android

there is an error

[ERROR] An error occurred while running subprocess cordova.

    cordova build android exited with exit code 1.

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

and i tried to run

cordova build android --verbose

and get this

No scripts found for hook "before_build".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\app\src\main\res\xml\config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms\android\platform_www] to platforms\android\app\src\main\assets\www
Wrote out android application name "MyApp" to C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\app\src\main\res\values\strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1
Wrote out Android package name "io.ionic.starter" to C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\app\src\main\java\io\ionic\starter\MainActivity.java
Updating icons at platforms\android\app\src\main\res
Updating splash screens at platforms\android\app\src\main\res
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
ANDROID_HOME=C:\Users\zdx\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app
Running command: cmd "/s /c "C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\gradlew.bat cdvBuildDebug -b C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m""

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> Could not resolve all files for configuration ':CordovaLib:classpath'.
   > Could not find android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5).
     Searched in the following locations:
         https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar

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

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

BUILD FAILED in 1s
Command finished with error code 1: cmd /s /c "C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\gradlew.bat cdvBuildDebug -b C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m"
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> Could not resolve all files for configuration ':CordovaLib:classpath'.
   > Could not find android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5).
     Searched in the following locations:
         https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar

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

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

BUILD FAILED in 1s
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> Could not resolve all files for configuration ':CordovaLib:classpath'.
   > Could not find android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5).
     Searched in the following locations:
         https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar

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

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

BUILD FAILED in 1s
    at ChildProcess.whenDone (C:\Users\zdx\Desktop\projects\ionic\simpleApp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

Posts: 2

Participants: 2

Read full topic

Creating animation slider like inshorts app

$
0
0

@adityara0 wrote:

I have to develop an app like inshorts animation effect . I have successfully done this in cordova but i’m not able to do it in ionic3. I have gone through a lot of solutions on internet but didn’t find what I’m looking for.

<ion-content padding>
  <ion-card color="primary" swiper (onSwipeUp)="swipeUp($event)" (onSwipeDown)="swipeDown($event)" (onSwipeLeft)="swipeLeft($event)" (onSwipeRight)="swipeRight($event)">
  </ion-card>
  <ion-card color="secondary" swiper (onSwipeUp)="swipeUp($event)" (onSwipeDown)="swipeDown($event)" (onSwipeLeft)="swipeLeft($event)" (onSwipeRight)="swipeRight($event)">
  </ion-card>
</ion-content>

The swipe is working, i’m able to capture the swipe event with hammerjs but I’m not able to add the transition on the card dynamically.

I have done that in cordova with the below block of code but not able to do with ionic.

function scrollImages(distance, duration, selectorId) {
            console.log(distance);
            var r = $.Deferred();
            $('#'+selectorId).css("transition-duration", (duration / 1000).toFixed(1) + "s");
            var value = (distance < 0 ? "" : "-") + Math.abs(distance).toString();                
            $('#'+selectorId).css("transform", "translate(" + value + "px,0)");
        }

Posts: 1

Participants: 1

Read full topic

Predefined CSS not working ionic3

Hardware back button and navigation management on Android with Ionic 4

$
0
0

@fifth wrote:

I’ve been using Ionic 3 more than 1 year and I started using v4 now. However I’m confused with current navigation management, there’s no ‘root’, there’s no navigation stack, even the simple NavController’s gone as well :frowning:

First I created a tabs layout from official starter project, then added a simple button in tab2. By clicking on that button, it can go to another page1. And I called navController.navigateRoot(’’) when dismissed the page1.

However, on Android, I just found that the hardware/virtual back button behaved very close to a browser style, every “back” just went back to earlier history. For example, if you first go tab1 -> tab3-> tab2 -> page1 -> tabs, then keep clicking on back button, it would give you tabs -> page1 -> tab2 -> tab3 -> tab1.

It’s wired for a mobile app. I found nothing to help setting a real root like previous v3. I really need tabs to be a root and some similar popToRoot() to dump current navigation stack.

Could anyone give suggestion on how to manage navigation on v4? Thanks

Posts: 1

Participants: 1

Read full topic


I want to send token through HttpClient headers

$
0
0

@flycoders_sourav wrote:

I want to send token through header how can i do that

   public details(token){
    const httpOptions = {
      headers: new HttpHeaders({
        'Accept':  'application/json',
        'Authorization':'Bearer'+token
      })
    }; 
    return this.http.post('http://mywebsite.ca/helpify/api/details',  httpOptions)
   }

whenever i tired to hit this api its showing 401 Unauthorized
how can i fix it please help me out
Thanks in advance

Posts: 1

Participants: 1

Read full topic

ERR_ADDRESS_UNREACHABLE issue

$
0
0

@pabloo87 wrote:

Hi, this is an old issue here in the forum, but i tried the solutions suggested in other posts but non of them work for me.

Every time i run ionic cordova run android -l i get the famous net::ERR_ADDRESS_UNREACHABLE error. This started 10 days ago.

I already tried:
checking the internet connection be the same in cellphone and pc
updating ionic and cordova
reinstalling ionic and cordova
reinstalling nodejs
try with a brand new app
reset developer options in cellphone
try to access through android chrome (didn’t work)
try to access through pc browser to local and external ip (did work)
deactivating windows 10 firewall
deactivating antivirus

Ionic info:

ionic (Ionic CLI) : 4.6.0 (C:\Users\pablo\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-rc.0
@angular-devkit/build-angular : 0.11.4
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.2

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

System:
Android SDK Tools : 26.1.1 (C:\Users\pablo\AppData\Local\Android\Sdk)
NodeJS : v10.14.2 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

Posts: 1

Participants: 1

Read full topic

Error after downgrade 4.6.0 to 3.12.0

$
0
0

@antonios94 wrote:

Hi all!

I downgraded my ionic version to 3.12.0 from the last (4.6.0) which I have installed for a mistake.
Now, when I try to start a new project, I obtain this error:

PS C:\Users\anton\Desktop> ionic start BackupApp blank
√ Creating directory .\BackupApp - done!
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
√ Downloading - done!
[INFO] Fetching starter template blank (https://github.com/ionic-team/ionic2-starter-blank/archive/master.tar.gz)
√ Downloading - done!
√ Updating package.json with app details - done!
√ Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!
> npm install
× Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):


        npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in
        other tools.

        > node-sass@4.5.3 install C:\Users\anton\Desktop\BackupApp\node_modules\node-sass
        > node scripts/install.js

        Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-64_binding.node
        Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-64_binding.node":

        HTTP error 404 Not Found

        Hint: If github.com is not accessible in your location
               try setting a proxy via HTTP_PROXY, e.g.

               export HTTP_PROXY=http://example.com:1234

        or configure npm proxy via

               npm config set proxy http://example.com:8080

        > uglifyjs-webpack-plugin@0.4.6 postinstall
        C:\Users\anton\Desktop\BackupApp\node_modules\uglifyjs-webpack-plugin
        > node lib/post_install.js


        > node-sass@4.5.3 postinstall C:\Users\anton\Desktop\BackupApp\node_modules\node-sass
        > node scripts/build.js

        Building: C:\Program Files\nodejs\node.exe
        C:\Users\anton\Desktop\BackupApp\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 [ 'C:\\Program Files\\nodejs\\node.exe',
        gyp verb cli   'C:\\Users\\anton\\Desktop\\BackupApp\\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@10.14.1 | win32 | 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` failed Error: not found: python2
        gyp verb `which` failed     at getNotFoundError
        (C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:13:12)
        gyp verb `which` failed     at F (C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:68:19)
        gyp verb `which` failed     at E (C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:80:29)
        gyp verb `which` failed     at C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:89:16
        gyp verb `which` failed     at C:\Users\anton\Desktop\BackupApp\node_modules\isexe\index.js:42:5
        gyp verb `which` failed     at C:\Users\anton\Desktop\BackupApp\node_modules\isexe\windows.js:36:5
        gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
        gyp verb `which` failed  python2 { Error: not found: python2
        gyp verb `which` failed     at getNotFoundError
        (C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:13:12)
        gyp verb `which` failed     at F (C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:68:19)
        gyp verb `which` failed     at E (C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:80:29)
        gyp verb `which` failed     at C:\Users\anton\Desktop\BackupApp\node_modules\which\which.js:89:16
        gyp verb `which` failed     at C:\Users\anton\Desktop\BackupApp\node_modules\isexe\index.js:42:5
        gyp verb `which` failed     at C:\Users\anton\Desktop\BackupApp\node_modules\isexe\windows.js:36:5
        gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
        gyp verb `which` failed   stack:
        gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError
        (C:\\Users\\anton\\Desktop\\BackupApp\\node_modules\\which\\which.js:13:12)\n    at F
        (C:\\Users\\anton\\Desktop\\BackupApp\\node_modules\\which\\which.js:68:19)\n    at E
        (C:\\Users\\anton\\Desktop\\BackupApp\\node_modules\\which\\which.js:80:29)\n    at
        C:\\Users\\anton\\Desktop\\BackupApp\\node_modules\\which\\which.js:89:16\n    at
        C:\\Users\\anton\\Desktop\\BackupApp\\node_modules\\isexe\\index.js:42:5\n    at
        C:\\Users\\anton\\Desktop\\BackupApp\\node_modules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete
        (fs.js:154:21)',
        gyp verb `which` failed   code: 'ENOENT' }
        gyp verb check python checking for Python executable "python" in the PATH
        gyp verb `which` succeeded python C:\ProgramData\Anaconda3\python.EXE
        gyp ERR! configure error
        gyp ERR! stack Error: Command failed: C:\ProgramData\Anaconda3\python.EXE -c import sys; print "%s.%s.%s" %
        sys.version_info[:3];
        gyp ERR! stack   File "<string>", line 1
        gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
        gyp ERR! stack                                ^
        gyp ERR! stack SyntaxError: invalid syntax
        gyp ERR! stack
        gyp ERR! stack     at ChildProcess.exithandler (child_process.js:289:12)
        gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
        gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
        gyp ERR! System Windows_NT 10.0.17134
        gyp ERR! command "C:\\Program Files\\nodejs\\node.exe"
        "C:\\Users\\anton\\Desktop\\BackupApp\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose"
        "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
        gyp ERR! cwd C:\Users\anton\Desktop\BackupApp\node_modules\node-sass
        gyp ERR! node -v v10.14.1
        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.4 (node_modules\fsevents):
        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted
        {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js`
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the node-sass@4.5.3 postinstall script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

        npm ERR! A complete log of this run can be found in:
        npm ERR!     C:\Users\anton\AppData\Roaming\npm-cache\_logs\2018-12-24T15_10_04_936Z-debug.log

Here my ionic info:

cli packages: (C:\Users\anton\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

System:

    Node : v10.14.1
    npm  : 6.4.1
    OS   : Windows 10

Misc:

    backend : pro

Could someone help me?
Thank you!

Posts: 1

Participants: 1

Read full topic

inAppPurchase2 - No callback after cancel during user authentication

$
0
0

@doug1e wrote:

Hi there,

After refresh() Apple Store authentication pop up requires user id and password. When cancel is clicked, I’d expect store.when(productId).cancelled() to be called.

However, the store.when(productId).cancelled() function is called when the product is registered and the purchase is cancelled during the transaction.

If the “cancel” button is clicked during user authentication, there is no feedback from the API.

Has anybody experienced a similar behavior? If so, what is the proper way of solving this issue?

Thanks,

Doug

Posts: 1

Participants: 1

Read full topic

Visual Studio - latest ionic version error messages

$
0
0

@doug1e wrote:

Hi there,

This is not an ionic question per se but because may people use visual studio with ionic, I felt it is worth asking here.

After I switched to 4.0.0-beta.19 from 4.0.0-beta.17, I started getting “TS Cannot find name” errors at the visual studio.

I also get: “An async function or method must return a ‘Promise’. Make sure you have a declaration for ‘Promise’ or include ‘ES2015’ in your --lib option”

After some googling, it looks like this requires modifications at tsconfig.json but I was wondering if others have faced similar issues and what the proper way of solving this?

Thanks,

Doug

Posts: 1

Participants: 1

Read full topic

Viewing all 48984 articles
Browse latest View live


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