becvert / cordova-plugin-zeroconf

Cordova ZeroConf Plugin
MIT License
81 stars 57 forks source link

[Android] Black Screen on Suspend/Resume #33

Closed manavkumarm closed 5 years ago

manavkumarm commented 7 years ago

Hello,

After adding the plugin to our project and flashing the app on an Android device, we are experiencing a black screen when the app is suspended then launched again (hit the Back button till the Home screen is visible, wait for a minute or two then launch the app again) - there is a completely black screen which appears for around 10-15 seconds before the app launches itself again.

The black screen was not appearing before the plugin was added.

Here is the code, used pretty much as-is from the example on the Readme page:

$ionicPlatform.ready(function() {

         window.cordova.plugins.zeroconf.watch('_myservice._tcp.', 'local.', function(result) {

          var action = result.action;

          var service = result.service;

          if ('added' === action) {

              $window.alert('$ionicPlatform.ready: Found My service ' + service.name + " at " +
                        service.host + " at " + service.ipv4Addresses[0] + ", Port " + service.port);

          } else {

              $window.alert('$ionicPlatform.ready: Lost My service  ' + service.name + " at " +
                        service.host + " at " + service.ipv4Addresses[0] + ", Port " + service.port);

          }

      });    

}

Regards, Manav

becvert commented 7 years ago

no idea. I would look at some debug logs if you can

becvert commented 7 years ago

what's up with this?

manavkumarm commented 7 years ago

We haven't gotten around to it yet. It could be a month or two before we look into it. Will keep you posted.

becvert commented 5 years ago

Closing old issue. Feel free to reopen.