import PhoneGapDevice from 'kinvey-phonegap-sdk/es5/device';
import packageJSON from '../package.json';

/**
 * @private
 */
class Device extends PhoneGapDevice {
  static toJSON() {
    const json = super.toJSON();

    // Add angular information
    json.library = {
      name: 'angular',
      version: global.angular.version.full
    };

    // Add sdk information
    json.kinveySDK = {
      name: packageJSON.name,
      version: packageJSON.version
    };

    return json;
  }
}

// Expose the device class globally
global.KinveyDevice = Device;

@@ -210,16 +210,95 @@
 SON();%0A%0A
+    if (Device.isBrowser()) %7B%0A      json.platform.name = 'web browser';%0A    %7D%0A%0A
     // A

Change json description of device depending on the environment.