alann-maulana / flutter_beacon

An hybrid iBeacon scanner and transmitter SDK for Flutter Android and iOS.
Apache License 2.0
117 stars 144 forks source link

Returning to the principal widget it don´t listen any more #33

Closed MapiFer closed 4 years ago

MapiFer commented 4 years ago

Hi,

I made a flutter app, it listen to the beacon and show me where I am. I add a couple of buttons to list all the areas and another funcionality. When I change the widget using Navigator.pushReplacementNamed and then I go back to my principal widget using the same function, the app stop listening the beacon.

I was trying to find out why, and I think the problem is in this call

await flutterBeacon.initializeScanning

because the first time when I call it the app leave me this output:

I/BeaconManager(21986): BeaconManager started up on pid 21986 named 'cl.teknopartner.clean_control' for application package 'cl.teknopartner.clean_control'. isMainProcess=true D/BeaconParser(21986): Parsing beacon layout: m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25

but when I come back to this widget and make the same call, it doesn´t show me anything of this. I'm not sure if I have problem in the way I´m using this pluggin in my app :(

MapiFer commented 4 years ago

Sorry, I solved. Just need to use push and pop instead pushReplacement