Closed zetavg closed 8 years ago
Because event handling is done by JS, we'll need to wait for React Native to be fully loaded before sending the click event.
Currently I use SystemClock.sleep(3000);, waiting for 3 seconds to for this, but there must be a more effective way to do this.
SystemClock.sleep(3000);
https://github.com/Neson/react-native-system-notification/blob/94ccaed7bc1c6edc7db0d251760c92c93cba5461/android/src/main/java/io/neson/react-native/notification/NotificationEventReceiver.java#L43
Because event handling is done by JS, we'll need to wait for React Native to be fully loaded before sending the click event.
Currently I use
SystemClock.sleep(3000);
, waiting for 3 seconds to for this, but there must be a more effective way to do this.https://github.com/Neson/react-native-system-notification/blob/94ccaed7bc1c6edc7db0d251760c92c93cba5461/android/src/main/java/io/neson/react-native/notification/NotificationEventReceiver.java#L43