Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:41:22+00:00 2026-06-11T06:41:22+00:00

I have added this code in launch function. This code is used to globally

  • 0

I have added this code in launch function. This code is used to globally handled internet connectivity issue

 Ext.device.Connection.on({
       // scope: this,
        onlinechange: this.onlineChange
    });


  onlineChange: function (online, type) {
        alert(online + type);
    },

This works fine on the device when we build using sencha native packager, But fails when the same app is packaged using phonegap. The alert is not getting triggered using phonegap native packaging it will work only if i do sencha native packaging. I don’t get any error messages, I don’t get the alert and i have added this code in app.js file in the launch function, I am using sencha touch 2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:41:24+00:00Added an answer on June 11, 2026 at 6:41 am

    When packaging with PhoneGap, use PhoneGap’s own Events instead:

    document.addEventListener("online", yourCallbackFunction, false);
    
    document.addEventListener("offline", yourCallbackFunction, false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code $(.delete2).click(function() { $('#load2').fadeIn(); } I have dynamically added item via
I have implemented correctly bump's api, and added this code: - (void) configureBump {
I have added some animation using jquery but it's not working: $('.test-container').click(function(){ $(this).css('background-color', 'rgb(119,
This didn't happen until I have added jQuery. function mfunc() {} mfunc.prototype.create = function(value)
I have added a show more or less function to a div - this
I have just compiled this code: http://www.win32developer.com/tutorial/winsock/winsock_tutorial_2.shtm I have added some codes so it
Please let me know what's wrong with this code, wherein I have added some
i have added this code iTunes.OnPlayerPlayingTrackChangedEvent += new _IiTunesEvents_OnPlayerPlayingTrackChangedEventEventHandler(iTunes_OnPlayerPlayingTrackChangedEvent); and this code private void
I have added this fix https://gist.github.com/2382288 for protect all fields against mass assignment in
I have added this rule in my web.config to redirect non www URLs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.