What could be causing my web app to freeze on select Android devices? Is there a way for me to identify the issue?

Currently, I am in the process of developing a mobile application that is cross-platform and built using HTML, CSS & JavaScript. My plan is to publish this app on both Android and iOS by utilizing PhoneGap as a wrapper.

After successfully launching the app on the Android Market, I have encountered feedback from users indicating that there are issues with the app stalling during the initial setup phase for certain users and devices. Unfortunately, I did not incorporate any error handling or reporting mechanisms within the app itself. Even after multiple downloads and negative reviews, the crash report in the Android Market shows no reported crashes.

In hindsight, I realize the importance of including error reporting functionalities while developing the app. Is there a straightforward way to integrate this now? Currently, my approach involves trying to capture the window onError event, but I am unsure if this is the most effective method.

I have come across Acra (http://code.google.com/p/acra/), which seems to provide Java error reporting. However, my concern lies with whether it can also report details when JavaScript errors occur due to missing functions or non-existing objects.

EDIT: Given that my app already has internet access, I have implemented a listener for the 'onerror' event in JavaScript, which provides information about the error. This listener utilizes Cordova/PhoneGap to check for an active connection: if present, it sends the error description along with device details to the server. In cases where there is no internet connectivity, it attaches an event listener to Cordova/PhoneGap's 'online' event to transmit the error once the device regains online status.

While this solution is still a work in progress and not yet flawless, I believe it is a step in the right direction towards addressing these issues effectively.

Answer №1

A resounding no, and trust me, it's incredibly detrimental for a significant portion of our population!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Utilize Google's Places Direction API Autocomplete feature to pre-select the starting location

I am currently utilizing draggable markers along with 2 autocompletes to assist with obtaining directions. You can find more information about this setup here: https://developers.google.com/maps/documentation/javascript/examples/directions-draggable. With ...

Connecting sound components in HTML with AngularJS

I'm having difficulty figuring out how to synchronize a function with the updates on a webpage. I currently have a checkbox that triggers a function when checked. Here is the HTML code: <input type="checkbox" value="data.id" id="status" ng-model ...

"Troubleshooting Problem with JSON Encoding in PHP and Parsing with getJSON in

Apologies if this sounds like yet another discussion on the topic, but I've been struggling for hours without finding a solution. I'm attempting to retrieve data from a MySQL database, generate a JSON using PHP, and then parse this JSON in JavaS ...

Issues with previewing PDF files in AngularJS

I am trying to display a PDF preview on my website using the following code: var $scope; angular.module('miniapp', ['phonecatFilters', 'ngSanitize']); function Ctrl($scope) { $scope.test = 'Example from: '; ...

Is it possible for PHP to dynamically load a file based on a condition set in JavaScript?

I am attempting to dynamically insert a PHP include onto the page once the user scrolls to a specific part of the page. Is this feasible? For example: var hasReachedPoint = false; $(window).scroll(function() { var $this = $(this); if ($this.scrollTo ...

Navigating through a multidimensional array in Angular 2 / TypeScript, moving both upwards and downwards

[ {id: 1, name: "test 1", children: [ {id: 2, name: "test 1-sub", children: []} ] }] Imagine a scenario where you have a JSON array structured like the example above, with each element potenti ...

Searching on Android with a list that updates as you type

Is there a way to create a dynamic search bar that displays results in real-time on the ListView as I type? Imagine having a list view with 20 items and activating the search bar. I want the search functionality to trigger once I start typing three or mor ...

Issues arising from TypeScript error regarding the absence of a property on an object

Having a STEPS_CONFIG object that contains various steps with different properties, including defaultValues, I encountered an issue while trying to access the defaultValues property from the currentStep object in TypeScript. The error message indicated tha ...

Strange behavior exhibited by Ajax in Internet Explorer 8

Below is the function I have implemented to ajax more reviews: function retrieveAdditionalReviews(str) { var counter = Number($('#counter').val()); var xmlhttp; if (str == "") { document.getElementById("reviews").innerHTML = ...

"The Ajax POST request to MyUrl returned a 404 error, indicating that the resource

While working on my Grails code, I encountered an error when the Ajax function received a response from the controller action. The parameters are being passed successfully by the Ajax function, and the controller function is executed. However, upon return ...

When hovering over a specific div, it triggers a hover effect on a separate div

Currently, I am facing a dilemma: I have an effect triggered by hovering over one div, but I actually want the effect to be triggered when the cursor hovers over another div instead. To illustrate: <div id='mouse-hover-in-this-div'> bl ...

Unable to locate a compatible version of androidx.arch.core:core-common that meets the version restrictions

When creating a new Android Studio project with an Empty Activity type, adding the following lines to the app's build.gradle file can lead to errors when running the connectedCheck task: // Lifecycle/View Models def lifecycleVersion = '2 ...

A step-by-step guide on accessing an expressjs endpoint from a static html file using Vercel

I am working on a basic app that consists of one server named /api/index.js and one file called index.html located at the root. In the index.js file, there is a route defined as app.get("/api/mystuff", () => {...}) The index.html file makes a request ...

The issue of bidirectional binding not functioning properly has been identified in AngularJS version 1.x

I have a directive that I want to make accessible across multiple pages. The requirement is that when any key is held down, the password should be displayed. The password details are passed from the controller and need to be updated in the directive. For ...

Tips for maintaining the integrity of blank space within a text node?

When intercepting a paste event and cleaning HTML off of the content using textNodes, I am faced with an issue where all white space is reduced to a single space and new lines are disregarded. For example, pasting: "hello world !" ends up being "h ...

phpif (the current date is after a certain specific date, do

Can someone please help me solve this problem? I want to prevent echoing a variable if the date has already expired. Currently, my PHP code displays: Match 1 - April 1, 2015 Match 2 - April 8, 2015 What I need is for Match 1 to not be echoed if the cur ...

Using the `let` keyword in Node.js for variable declaration

Understanding global and local identifiers in Node.js has been a bit tricky for me, especially when working with database query results in the page.evaluate() method. I'm seeking assistance in utilizing variables from a query to subsequently use them ...

Issue with Volley in Android app preventing retrieval of dynamic data from server

I am currently working on updating a single HTML page at regular intervals using AJAX. I need to retrieve this data in an Android application using Volley and display it in a dialog box, but instead of loading the entire content of the HTML body, only stat ...

What could be causing the Android app's data not to be saved in MySQL?

For some reason, the "contact" and "email" fields are not being stored in MySQL, even though other fields like username, password, and full name are working fine. I've tried adjusting the field sequence and restarting XAMPP, but the issue persists. He ...

Tips for organizing user information to generate a pie chart

My goal is to dynamically collect user input data from form input textboxes to create a pie chart when the submit button is clicked. Currently, I have a test version set up with fixed values displayed here: <form style="margin-bottom: 50px;"> 1 val ...