Track User’s Events/Rates Through iLocky SDK

In order to improve user experience of iLocky keyless service, any user feedback in app regarding to iLocky from users should be tracked and uploaded through iLocky SDK.

Let’s show some example

Android

Method
ILocky.getInstance(Context).track(String event, JSONObject content)

example:

  try {
            JSONObject json=new JSONObject(passport.toJSONString());
            json.put("rating_stars",intStarsCount);
            json.put("comment",strUserComment);
            //... any user's feedback should be tracked
            ILocky.getInstance(mContext).track("iLocky satisfication rating", json)
        } catch (JSONException e) {
            e.printStackTrace();
        }

if you didn’t setup the android development environment yet , please see iLocky Android SDK Usage Manual

iOS

Method
  //in swift
  ILocky.track(event:NSString, prop:[String:AnyObject]!) 

example:

  //in swift
  var prop:[String:AnyObject]! = [:]
  prop.updateValue(intStarsCount, forKey: "rating_stars")
  prop.updateValue(strUserComment, forKey: "comment")
  ILocky.track("iLocky satisfication rating", prop) 
  

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s