Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Behavior of classes SiriAnswer and SiriAnswerLine on 3G or WIFI #325

Raggyx opened this Issue Aug 23, 2012 · 3 comments


None yet
2 participants

Raggyx commented Aug 23, 2012


I just discovered a strange behavior of the classes SiriAnswer and SiriAnswerLine. There are differences in Siri requests via 3G or Wifi.

Normally the code looks like

answer = SiriAnswer.new("Headline", [
SiriAnswerLine.new("Another text")

But i'd be more flexible if i could write

answer = SiriAnswer.new("Headline", lines=[])
answer.lines << SiriAnswerLine.new("Text")
answer.lines << SiriAnswerLine.new("Another text")

That works fine, but only when im on wifi
Without wifi, in the UMTS network Siri shows the headline only without the lines...

i'm wondering why ?! that makes no sense to me :D
Has anyone any idea why the flexible way doesn't work on 3G?

Thanks in advance!


Ponyboy47 commented Sep 13, 2012

What I usually do is this
lines = []
lines << SiriAnswerLine.new("Text")
lines << SiriAnswerLine.new("Another text")
answer = SiriAnswer.new("Title", lines)

It works on both 3G and wifi fine
I'm not sure why yours works different on 3G vs Wifi..maybe Siri handles things differently on wifi bc it can afford to use more data?


Ponyboy47 commented Sep 14, 2012

What if you tried
answer = SiriAnswer.new
answer.title = "Title"
answer.lines << SiriAnswerLine.new("Text")
answer.lines << SiriAnswerLine.new("Another text")

could assigning the answer.lines array as lines be causing the issue?


Raggyx commented Sep 19, 2012

you have very good ideas! that could work. Thank you!
i'll try it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment