Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following plug-ins are used by Canvas Technology to implement the About Page and Send Logs features for mobile apps. These plug-ins come installed in the Canvas Technology framework package.

...

  1. Call the following APIs in the listener file containing the events to display the About Page and to send logs. Sample codes are as follows:
    1. showAboutPage


      Code Block
      languagejs
      canvasHybridUtil.showAboutPage(function ()
      {
         console.log("About Page Triggered!");
      }, function (errormsg) 
      {
         alert(errormsg);
      }); 


    2. sendLogs

      Code Block
      languagejs
      canvasHybridUtil.sendLogs(successCallback);


  2. Ensure that you replace your app's support team's mail ID in the Hybrid.xml file available in your app bundle.

    Image Modified

In Android devices, the sendLogs API enables the end users to select the mail apps. After a mail app is selected, it will attach the app's log details and the app support team's mail ID automatically to the mail composer. The following screen shot shows how the sendLogs API functions in an Android device.


In iOS devices, the sendLogs API opens the default mail composer for the device with the attached log details and the mail ID as shown in the following screen shot.

If you want to add additional log messages to the mobile app log file, use the logToFile API. Sample code is as follows:

Code Block
languagejs
canvasHybridUtil.logToFile(logMsg);

...