jamonholmgren / ProMotion

ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.
MIT License
1.26k stars 148 forks source link

app delegate methods never called #798

Closed hugoerg56 closed 6 years ago

hugoerg56 commented 7 years ago

Im trying to use this notifications and are never called. any idea? Promotion 2.6.0, iOS 10.1

def on_enter_background

end

def will_enter_foreground

end

jamonholmgren commented 7 years ago

Hm, I'd think they would...?

https://github.com/infinitered/ProMotion/blob/6aed897cbf8d0227bb358065f3a6c168e5f2bbd5/lib/ProMotion/delegate/delegate_module.rb#L30-L36

Try implementing those methods yourself and see if they work.

andrewhavens commented 6 years ago

It's been a long time, and I think this still works, so I'm going to close this one. Let us know if you still have this problem.