Can I disable a game network without re-starting my ap?

I’m integrating Open Feint into my game, and it works great. Players can choose to enable it or not.

However, if a player chooses (by accident) to enable OF, and then wants to correct their mistake, how can I disable the initialized gameNetwork request without just re-starting the entire App?

Is there a way? OF has a function to do this, but I don’t see it supported in Corona at the moment. Is there something I’ve overlooked? Or another way to accomplish the same thing?

–Simon Strange [import]uid: 65996 topic_id: 20512 reply_id: 320512[/import]

A user can sign out of OF via the dashboard but that’s it, I don’t believe there is another way around this.

Peach [import]uid: 52491 topic_id: 20512 reply_id: 80566[/import]

But since there are no callbacks from user actions within OF (that I’m aware of) my app will still think the Game Network is up, and thus start sending error messages. That’s what I really need to avoid. [import]uid: 65996 topic_id: 20512 reply_id: 80633[/import]

Hey, Simon, in my game, I provide Activate/Deactivate button, and when the user deactivate OF, a flag (a true/false variable) lets my game know not to send any data to OF. And the next time the user launches my game, if the flag is in deactivate state, it won’t initialize/start gameNetwork. You might want to implement something similar…?

Naomi [import]uid: 67217 topic_id: 20512 reply_id: 80669[/import]

That is an excellent solution, Naomi! [import]uid: 52491 topic_id: 20512 reply_id: 80780[/import]

Thanks, Peach!

Naomi [import]uid: 67217 topic_id: 20512 reply_id: 80857[/import]

Yes, that was the solution we came up with as well. The slight trick (obvious in hindsight, but not obvious to us originally) was to put “if(bOFActive) then…” before every external call we made to the game network. That removes most of the problems of OF actually still being active, but users asking to disable it.

And, as you say, once we have that flag set we can simply skip initialization next time the app starts. [import]uid: 65996 topic_id: 20512 reply_id: 81372[/import]