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.
...
- 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:
- showAboutPage
Code Block language js canvasHybridUtil.showAboutPage(function () { console.log("About Page Triggered!"); }, function (errormsg) { alert(errormsg); });
Code Block language js canvasHybridUtil.sendLogs(successCallback);
- showAboutPage
- Ensure that you replace your app's support team's mail ID in the Hybrid.xml file available in your app bundle.
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 | ||
---|---|---|
| ||
canvasHybridUtil.logToFile(logMsg); |
...
Code Block | ||
---|---|---|
| ||
console.log("logMsg"); |
Info |
---|
The canvasHybridUtil The canvasHybridUtil is the object of the class CanvasHybridUtil, that is present in the canvas.hybrid.util.js file. |