Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast deprecation error on iOS 12.1.2 #123

Open
4 of 7 tasks
Arathmorr opened this issue Dec 28, 2018 · 1 comment
Open
4 of 7 tasks

Toast deprecation error on iOS 12.1.2 #123

Arathmorr opened this issue Dec 28, 2018 · 1 comment

Comments

@Arathmorr
Copy link

Arathmorr commented Dec 28, 2018

Expected behaviour

Toast should display

Actual behaviour

Toast does not display, error message:
Error: The old format of this exec call has been removed (deprecated since 2.1). Change to: cordova.exec(null, null, 'Service', 'action', [ arg1, arg2 ]); iOSExec — cordova.js:906 execProxy — cordova.js:1048 showWithOptions — Toast.js:49 show — Toast.js:53 gpsTooltip — core.js:1340 onclick — index.html:642 gpsTooltip — core.js:1331

I'm seeing this behaviour on

  • iOS device
  • iOS sim
  • Android device
  • Android sim

Hardware models

iPhone 6 Plus, simulated iPhone 8

OS versions

iOS 12.1.2

I'm not a dummy, so I've checked these

  • It happens on a fresh Cordova CLI project as well.
  • I'm waiting for deviceready to fire.
  • My JavaScript has no errors (window.onerror catches nothing).

So how can we reproduce this?

I am using as such:

window.plugins.toast.show('Location services unavailable', 'short', 'center', '', '');

That snippet works on Android, just not on iOS.

@spinninghamster
Copy link

Pretty sure you're missing the callback. That's whats causing the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants