You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/02 13:47:17 UTC

[GitHub] [cordova-ios] adipascu opened a new issue #588: The visibilitychange api is not working

adipascu opened a new issue #588: The visibilitychange api is not working
URL: https://github.com/apache/cordova-ios/issues/588
 
 
   I expected the [visibilitychange api](https://developer.mozilla.org/en-US/docs/Web/Events/visibilitychange) to work inside the cordova webview on ios.
   
   
   It does not emit any events. I tried prefixing the event as  `webkitvisibilitychange`, it still does not emit any events. It works fine inside mobile safari.
   
   ```js
   window.document.removeEventListener(
     'visibilitychange',
     () => {
       console.log('Visibility Changed!');
     },
     false
   );
   
   ```
   
   I am running `cordova-ios 5.0.0` with `cordova 8.1.2`. This can be reproduced using a simulator.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org