Device.overrideBackButton() is deprecated.

4 posts, 1 answers
  1. DQvsRA
    DQvsRA avatar
    7 posts
    Member since:
    Jun 2013

    Posted 25 Jun 2013 Link to this post

    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.
  2. Answer
    Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 26 Jun 2013 Link to this post

    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.
  3. DQvsRA
    DQvsRA avatar
    7 posts
    Member since:
    Jun 2013

    Posted 27 Jun 2013 Link to this post

    Thank you very much! That helped.
    And why there is no information about "What is new" in update?

    Best Regards, 
    Vladimir Minkin.
  4. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 28 Jun 2013 Link to this post

    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.
Back to Top