question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ionic 5 - Native: tried calling...

See original GitHub issue

Bug Report

Ionic version:

[x] 5.x

Current behavior:

getting a series of `Native: tried calling (StatusBar.statusDefault/Spashscreen.hide()/Android Permissions) but Cordova is not available. Make sure to include cordova.js or run in a device/simulator. I am running this on a native device.

Expected behavior:

not to get these errors as they are causing side effects especially when this.platform.is('cordova') is returning false. Steps to reproduce:

Related code:

insert short code snippets here

Other information:

Ionic info:


Ionic:

   Ionic CLI                     : 6.1.0 (/Users/me/.config/yarn/global/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.4
   @angular-devkit/build-angular : 0.801.2
   @angular-devkit/schematics    : 8.3.25
   @angular/cli                  : 8.3.25
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 17 other plugins)

Utility:

   cordova-res : 0.9.0
   native-run  : 0.3.0

System:

   Android SDK Tools : 26.1.1 (/Users/me/Library/Android/sdk)
   ios-deploy        : 1.10.0
   ios-sim           : 8.0.2
   NodeJS            : v13.8.0 (/usr/local/Cellar/node/13.8.0/bin/node)
   npm               : 6.13.7
   OS                : macOS Mojave
   Xcode             : Xcode 11.3.1 Build version 11C504

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ctfranciacommented, Mar 5, 2020

Sure, I will do that, it might be after the weekend, as I am sick and unable to think straight

0reactions
ionitron-bot[bot]commented, Apr 11, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ionic 5 - Native: tried calling... · Issue #20671 - GitHub
Current behavior: getting a series of `Native: tried calling (StatusBar.statusDefault/Spashscreen.hide()/Android Permissions) but Cordova is not ...
Read more >
Ionic Capacitor in Xcode Error - [warn] Native: tried calling ...
When i run my application in Xcode below error occur. [warn] - Native: tried calling StatusBar.overlaysWebView, but the StatusBar plugin is not ...
Read more >
Error "tried calling SplashScreen.hide, but the ... - Ionic Forum
In debug mode I can see this error: vendor.js:77445 Native: tried calling SplashScreen.hide, but the SplashScreen plugin is not installed.
Read more >
The 9 Most Common Mistakes That Ionic Developers Make
Common Mistake #6: Trying to Run Cordova Plugins Inside the Browser. The majority of developers using Ionic will want their app to run...
Read more >
ionic cordova_not_available | The AI Search Engine You Control
StackOverflow · // You're on a device, call the native plugins. Example: · // · // var url: string = ''; · //...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found