I'm experiencing problem when using
setQuietTimeEnabled(). Both these functions seems to be connected in some way;
isQuietTimeEnabled() always returns the same value...
For example, when I run
setQuietTimeEnabled(false), the userNotifications also gets disabled (and also the other way around).
Is this expected?
Release 1.2.0 together with RN 0.47.
I'd like to test this on our end, as the two functions shouldn't be connected in that way. Are you seeing this behavior for iOS or Android or both? Could you also confirm which version of the React Native cli you're running?
Yes it is the same problem on both Android and iOS. I have tried it in a new project as well. RN cli 2.0.1.
Thanks for your quick response!
Thanks for providing that information. I'll let you know if I'm able to reproduce this issue soon and what we'll do from there.
Thanks for your effort! Have you been able to reproduce the problem yet?
Could you include the blocks of codes where you're setting these functions for both iOS and Android? I'd just like to seem them in context with the rest of your code.
Here is a very simple example:
It appears the issue lies in the plugin. The state of setQuietTimeEnabled is based off of whether or not User Notifications are enabled, like so:
This should not be the case, so I am going to escalate this issue to our engineering team. I will let you know when a patch is out for this behavior. Thank you for your patience while I looked into this!
I just wanted to let you know that we have fixed the way quiet time works in the React Native Module. You should now be able to enable or disable quiet time without impacting the value of user notifications. You can get the updated plugin at https://github.com/urbanairship/react-native-module.
Please let me know if you have any questions or concerns.