This is a migrated thread and some comments may be shown as answers.

Device.overrideBackButton() is deprecated.

3 Answers 62 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
DQvsRA
Top achievements
Rank 2
DQvsRA asked on 25 Jun 2013, 08:01 PM
This is my problem (from console.log)

Device.overrideBackButton() is deprecated. Use App.overrideBackbutton(true). cordova.js:4230
Device.resetBackButton() is deprecated. Use App.overrideBackbutton(false). cordova.js:4241
Device.exitApp() is deprecated. Use App.exitApp(). cordova.js:4252
  1. Wrong type for parameter "successCallback" of Device.getInfo: Expected Function, but got Undefined. cordova.js:563
  1. Uncaught TypeError: Wrong type for parameter "successCallback" of Device.getInfo: Expected Function, but got Undefined. cordova.js:565
I can't find any solution. It's happen when i fire Ajax request from JQuery (ver. 1.10.1 same with 2.0.2)
Please help me, i need to show my project progress to the customer every day and it's make make me feel sad because today i can't. It's problem come after i update reinstall Graphite.

Best Regards, 
Vladimir Minkin.

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan Dobrev
Telerik team
answered on 26 Jun 2013, 11:54 AM
Hello Vladimir,

Looking deeply into what might cause this it seems that one of the parameters (data) you are passing to the $.ajax  call contains a property which is Cordova's Device object. When jQuery sees this object it enumerates all its properties and this results in enumerating the Device's properties, which in the case for Android calls those legacy functions. In order to fix this my suggestion is not use the Cordova Device's object, but to create your own object only containing the properties you need.

As a note this problem should have been present if you have run the application on an actual physical device. With version v1.6 Icenium's simulator strictly mimics Cordova's API behavior which resulted in the behavior you have experienced.

 

Hope this helps,
Stefan Dobrev
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
0
DQvsRA
Top achievements
Rank 2
answered on 27 Jun 2013, 11:09 AM
Thank you very much! That helped.
And why there is no information about "What is new" in update?

Best Regards, 
Vladimir Minkin.
0
Iva Koevska
Telerik team
answered on 28 Jun 2013, 06:28 AM
Hello Vladimir,

We are glad to hear that you have been able to resolve your issue and continue your work. You can check more details about what's new in this release in the following resources.

  • Release Notes for Icenium 1.6: a list of new features, breaking changes, and notable bug fixes
  • What's New on the Icenium web site: a quick overview of the most significant improvements in the product
  • A blogpost on the official Icenium blogs: a nice walk-through that illustrates how to add a custom Cordova plugin to your project plus a few words about the other significant improvements
  • Known Issues in Icenium 1.6: a list of currently known issues and workarounds, if any

Please, note, that you might need to check with the official Apache Cordova, Kendo UI, and jQuery Mobile pages to learn more about the changes in the latest supported versions of the frameworks. 


Regards,
Iva Koevska
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
DQvsRA
Top achievements
Rank 2
Answers by
Stefan Dobrev
Telerik team
DQvsRA
Top achievements
Rank 2
Iva Koevska
Telerik team
Share this question
or