Profile cover photo
Profile photo
Bhumika Patel
308 followers
308 followers
About
Communities and Collections
View all
Posts

Post has attachment
Log execution time of function/Ajax Call
Initialization of the variable to store all logs in controller $rootScope . timeSlots = {}; //Function to create object with eventname , start time, end time using ID $scope.logEvent = function (Eventid, EventName, isEnd){ if ( isEnd == false ) {
$...

Post has attachment
Angular/Ionic not updating an image src when ng-src is empty
The Angular  ngSrc  directive serves to properly set an image  src  via Angular. As anything in Angular, it updates the image as soon as the contained Angular expression changes. However, when the  ng - src  attribute is empty, Angular will not empty the  s...

Post has attachment
Change timeout for connection request in iOS
Code to change ajax request timeout for ios and also for hybrid ( Cordova) apps. Find NSURLRequest  in your native code. Change the timeoutInterval  value.   NSURLRequest *request = [ NSURLRequest requestWithURL :[ NSURL URLWithString :serverURL] cachePolic...

Post has attachment
Multiplication of two numbers as array - In Javascript
Javascript Code  var arry1 = [3,4,6,9,9,9]; var arry2 = [9,8,9,8,5]; $("#arry1").html(arry1.toString()); $("#arry2").html(arry2.toString()); var directResult = arry1.join('') * arry2.join(''); // to compare result  $("#result").html(directResult); var calRe...

Post has attachment
IONIC - data binding on header title not working
By using the new ion-nav-title directive in Ionic beta 14, the binding seems to work correctly. Rather than <ion-view title="{{content.title}}"> Do this <ion-view> <ion-nav-title>{{content.title}}</ion-nav-title> Works a treat.

Post has attachment
Self Signed SSL Certificates in PhoneGap
Code to allow self signed certs on PhoneGap  Android: If you are doing development: android:debuggable="true" in the manifest, you should allow the browser to request data from servers with a self-signed or bad SSL cert  If you are releasing an application,...

Post has attachment
Error: Database location or iosDatabaseLocation value is now mandatory in openDatabase call
if you are using Cordova sqlite plugin you may have this issue while open local DB file.  _sqlLiteDB = $cordovaSQLite.openDB({ name:  "testDB.db" , iosDatabaseLocation: 'default' });  // Works on android but not in iOS                     Error: Database lo...

Post has attachment
Warning: sqlite3.c Ambiguous expansion of macro - Xcode - iOS
Plugin: cordova-sqlite-storage Version: 1.4.1 This issue also helps on native app code.  Issue Solution: Open Xcode project Build settings add “-Wno-ambiguous-macro” into  “ Other C flags”  

Post has attachment
error JSON.stringify()ing argument: RangeError: Invalid Date
There is minor bug in contact plugin in cordova ionic. contact list is loaded with error due to the birthdate field in contact card. Its bad practice to keep minor error in execution of code, It may effect to different OS versions. error JSON.stringify()ing...

Post has attachment
Wait while more posts are being loaded