|
Post by egghead on Jun 8, 2022 11:13:13 GMT
Rhodes used to have a hook called on_activate_app that is called every time an application using this hook launches, and when that application comes in from the background. I placed the following code in app/application.rb. def on_activate_app # enable NFC on your NFC-capable mobile device Rho::NFCManager.enable # Enable listening for events when the application is in the background Rho::NFCManager.perform_open_application_event end
and a read-only textbox in the UI that displays the value of Rho::NFCManager.is_enabled.to_s which, if the above code worked should have returned true, but its always false.
It's possible I'm using on_activate_app wrongly. Any pointers would be much appreciated. Thanks
|
|