Skip to main content

Posts

Showing posts from February, 2018

Asyc/ await in

https://blog.meteor.com/using-promises-and-async-await-in-meteor-8f6f4a04f998 async lol(){ const data = await urlMetadata('https://www.vayuz.com/').then(   function (metadata) { // success handler console.log(metadata); return metadata;   },   function (error) { // failure handler     console.log(error)   return error;   }).then(   function(success){   UserInfo.rawCollection().insert({"data":success});   return success;   },function(error){   console.log("log");   })   return data; },
Template.blog.onRendered(function(){ $('#editor1').trumbowyg( { btnsDef: {         // Create a new dropdown         image: {             dropdown: ['insertImage', 'upload'],             ico: 'insertImage'         }     },     // Redefine the button pane     btns: [         ['viewHTML'],         ['formatting'],         ['strong', 'em', 'del'],         ['superscript', 'subscript'],         //['link'],         ['insertImage'], ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],         ['unorderedList', 'orderedList'],         ['horizontalRule'],         ['removeformat'],         ['fullscreen']     ],     plugins: {         // Add imagur parameters to upload plugin for demo purposes         upload: {             serverPath: 'https://api.imgur.com/3/image',    

Cordova Notifications Demo for the same, but I am getting an error.

https://forums.meteor.com/t/getting-error-while-running-cordova-notifications/42019 https://github.com/meteor/meteor/issues/4083 cd ~ /.meteor/android_bundle/.android # To avd save directory rm -rf avd # Delete the created avd cd ~ /.meteor/android_bundle/tools/android # To the android SDK directory tools/android # Run the android SDK manager then create a avd call meteor in the android SDK manager ln -s /home/ $USER /.android/avd /home/ $USER /.meteor/android_bundle/.android # link the avd in your home directory to meteor's directory meteor install-sdk android # Add back the android platform