Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

How can i use it with ionic 2? #9

Open
FLTravieso opened this issue Jan 24, 2017 · 4 comments
Open

How can i use it with ionic 2? #9

FLTravieso opened this issue Jan 24, 2017 · 4 comments

Comments

@FLTravieso
Copy link

Hi.
Is it possible use this plugin with ionic 2? If it is possible how can i add it to my project and use it?

Thanks.

@tordnilsen
Copy link

Hi Frank. I'm searching for same answer as you, do you have a solution?

@sathish932
Copy link

Download the plugin into your project then create package.json using
go to the folderpath then type
plugman createpackagejson .
after that you will be able to add this plugin
cordova plugin add path of your project
After that you will be able to see it cordova plugins
After import statements write this line
declare var BackgroundBeaconMonitoring:any;
platform.ready().then(() => {
BackgroundBeaconMonitoring.requestPermissions(
function() {
console.log("we got permissions");
},
function() {
console.log("we don't got permissions");
});

});
remember one thing after platform ready then only plugin will be accessible.
I hope this helps

@FLTravieso
Copy link
Author

Hi, there is a code that help me a lot and worked to me https://ionicallyspeaking.com/2017/01/16/creating-a-beacon-application-with-ionic-2/

I suggest you to check out the ionic's forum you will find to much help.

@Dinesh0405
Copy link

Hi, The link is Fine But This plugin is useful you for keeping your Application alive in the background so use this plugin if you want to run your service Alive even App closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants