This is done automatically via the network indicator on screen. The code I used to enabled this feature is here:
https://github.com/rubymotion/BubbleWrap/blob/master/motion/http.rb#L117
If you want to display something else like a modal, you need to do that in your code. Remember that BubbleWrap HTTP wrap is async so if you use a block to make your request, the block will only be dispatched/executed when the response is coming back. Your code isn't blocked meaning that whatever you have after the block will probably execute first.
I don't use RubyMotion anymore so I don't have any examples handy but basically you could create a modal with a spinner and start it before you trigger the request and when the response comes back, you can remove the modal. Does it make sense?
- Matt