APP working fine in browser but when i deploy on Android i get a blank screen

I am using Ionic Framework version is 1.7.16

The line causing the error on Android is following

var obj = {[$myid] : firebase.database.ServerValue.TIMESTAMP};

If i change the above line to following line then no error

var obj = {'test':'test'};

Ctrl Code:

.controller('SearchStateCtrl', function($scope, $firebaseObject, $firebaseArray, $location, $stateParams, my_details) {
  $scope.stateId = $stateParams.stateId;
  $scope.my_details = my_details;

  var user = firebase.auth().currentUser;
  $scope.my_id = user.uid;

  var database = firebase.database();
  var trips = database.ref('Trips/'+$stateParams.stateId);
  trips.on('value', function(snapshot) {
    $scope.my_trips = $firebaseArray(trips);
  }, function(err) {
     console.log("Something is wrong.");

  $scope.addToMyTrip = function ($trip, $myid) {
    var tripRef = database.ref('MyTrips');
    var obj = {[$myid] : firebase.database.ServerValue.TIMESTAMP};
    tripRef.set(obj).catch(function(error) {
      console.log('Somthing went wrong.');
    var tripRef = database.ref('MyTrips/'+$trip.$id);
      'i-am': $trip['i-am'],
      'trip-date': $trip['trip-date'],
      'state-from': $trip['state-from'],
      'city-from': $trip['city-from'],
      'state-to': $trip['state-to'],
      'city-to': $trip['city-to'],
      'user-id': $trip['user-id']
    }).catch(function(error) {
      console.log('Somthing went wrong.');

Dynamic key name is for some reason giving error on android, everything is working fine when i am viewing it in the web page using

ionic serve --lab

Error i am getting when i am deploying on android

Solution Code:

Thanks to Emmanuel Delay the problem is solved by changing following line

var obj = {[$myid] : firebase.database.ServerValue.TIMESTAMP};


var key = [$myid]; 
var obj = {}; 
obj[key] = firebase.database.ServerValue.TIMESTAMP;

can you post here your app.js first line (module)??

angular.module('starter', ['ionic', 'starter.controllers', 'firebase', ''])

angular.module(‘starter’, [‘ionic’, ‘starter.controllers’, ‘firebase’, ‘’])