Open iAmWillShepherd opened 2 years ago
Hey @iAmWillShepherd, thanks for reporting this. It seems you also need to specify:
notification.is_chrome_web = true
notification.is_any_web= true
I'm not sure why but that is the way our backend works.
Hmm, that is interesting 🤔
I think we should keep this issue open with the action item to update the docs for this project to highlight these quirks. What do you think?
I think this should be documented as well, since these are not considered required fields today by this SDK's defined API.
Also maybe we can enforce at least one is_
value is set to true and report that as an error before attempting to make the network call?
Or maybe even better, the REST API itself can return a more helpful error when this happens.
is*
properties today from the REST API it assumes all are true
, however if you pass any is*
flags all others are defaulted to false
.Lastly, in a 2.0.0 major release, we could make all these true
by default (or omit them to give the same effected as noted above)
What happened?
I built the following sample app to push notifications to all users within a segment, but unfortunately, I was unable to get it to work.
FWIW, @jmadler and I did a little debugging to confirm that my segment did indeed have users who were subscribed to push, but still got the same error. I also tried several different apps and other segments and got the same results.
Steps to reproduce?
What did you expect to happen?
I expected a push notification to be sent to my device.
Relevant log output
Code of Conduct