用户工具

站点工具


这是本文档旧的修订版!


Cobub Razor Windows Phone Developer Guide

1 Overview

1.1 Documentation Goal

The goal of this document is to explain usage rules of Cobub Razor Windows Phone SDK for facilitating mobile app developers.

1.2 Application Scope

This document is for Windows Phone SDK developers, which uses the Open Source Mobile Analytics – Cobub Razor.

1.3 Terms and Abbreviations

1.4 Relevant Documentation

NA

2 Basic Setup Guide

2.1 Obtain AppKey

First please setup the Web Server of Cobub Razor (instruction), then register App at web server and fill App info after login. Once App is created successfully, you could obtain AppKey.

2.2 SDK Usage Step

2.2.1 Import UMSAgent.dll

Import Windows Phone SDK into your project.

VS users right click own project “Reference” directory and select “Add Reference —>Browse”. Then select path of UMSAgent.dll. Click OK and then import is completed.

2.2.2 Integration Instructions

We recommend you Calling

UmsAgent.UMSApi.onPageBegin("current_page_name ")

and

UmsAgent.UMSApi.onPageEnd("current_page_name ")

in all pages. If not , Page View report and some related data statistics reports will not be available on the Web Server.

2.2.3 Note

Check to make sure that AppKey has been correctly written. You must invoke UmsAget.UMSApi.onAppstart(string appkey,string url) firstly SDK could help you catch exit exception during App usage and send error data statistics report to server. Error report includes App version, OS version, device type and stack trace of program exception. These data will help you debug the App errors. Different channels have different AppKeys.

3 API introduce

en/razor/windows-phone-developer-guide.1426667303.txt.gz · 最后更改: 2017/07/14 11:12 (外部编辑)