javascript - Can I embed a chrome extension app as part of my main AngularJS app? -
i have been doing lot of reading , studying figure out.
i want main angularjs application run, include embedded chrome extension app - in case, have regularly scheduled alarms (using chrome.alarm api).
i want users of angularjs app have automatic access chrome extension app, embedded in main clientside 1 lots of other angular features.
it seems have manually enable chrome app in developer mode on browser , drag chrome app location in chrome browser. don't understand how end users can automatically use chrome app then.
i need add here have never used jquery, angularjs angularjs extensively. angularjs app frontend, backend provided rails.
some advice helpful. hope not downvoted strange how questions downvoted , not sure why...i don't know else go question.
edit:
ok code demonstrate:
myangularapp.controller('myappcontroller', function($scope, $http) { var delayvar = 5; chrome.alarms.create("arandomalarm", {delay: delayvar}); };
this doesn't work part of angularjs, tried creating manifest.json file in app/assets folder too. background.js file there , my-chrome-app.js file. "chrome.alarms" undefined, haven't enabled developer mode yet. still, how end users supposed use if make me use need specific browser configuration?
you should have @ content scripts , @ message passing explains how communicate between web page , chrome extension.
Comments
Post a Comment