Page 1 of 3

Child Lock Feature???

PostPosted: Wed Nov 13, 2013 2:06 am
by bremen
O.K. I have searched every were, sent emails to scirra, even posted on the forums, and no one has even replied back to me?

I'm looking for a child lock feature to disable the back,home,menu,and search buttons on mobile phones to keep keeps on the game and not be able to just exit, I have my own exit were the parents can just tap the 4 corners to close the game.

I have tried:
" Browser " on mobile back button pressed /go to layout1
" Browser " on mobile menu button pressed /go to layout welcome
" Browser " on mobile search button pressed / restart layout

they don't work at all, I have try a lot of various option with no avail.

I have tried the "is on mobile". Nothing seems to disable the buttons or even lets say they hit the back button I cant even get it to go to the previous layout it just exits the game. I can get by without this option in the free version but if I'm going to have any luck selling it on Google Play Store I need this child safety lock available.

Can someone please help me out here, or at least point me in the right direction. Thanks in advanced.

Re: Child Lock Feature???

PostPosted: Wed Nov 13, 2013 2:46 am
by newt
That feature would be way to easy to abuse, that's probably why it doesn't exist.
Also Kids and gorilla glass= eeek.

Re: Child Lock Feature???

PostPosted: Wed Nov 13, 2013 3:41 am
by bremen
@newt

Well most of the baby/children apps on the google play store have this feature. The goal is to keep the kids occupied but not let the exit the app and start calling people and getting into other stuff on the phone. There is no way I can even try to compete with any of them if I cant offer the same functions. Free games have ads and less options, paid games have no ads and more features, obviously since its for small children there is no way i could get by with having a ad any were in the game, the customers would kill me. so my only real option to be able to sell a paid version would be the child lock feature with some added content.

Re: Child Lock Feature???

PostPosted: Wed Nov 13, 2013 4:02 am
by bremen
Or even if there was a way that if they hit one of the buttons it could pop up a box and they could type "exit" or "1234" or something. I have this app over 80% ready for the open market. I have the demo on the google play store now, and my projected release date is on the 16th of this month which is one of my daughters 2nd birthday. I have a lot invested in this already, there is no way I can just publish it for free. I know some were there is someone with a idea, or a solution to this problem.

Re: Child Lock Feature???

PostPosted: Wed Nov 13, 2013 4:22 am
by felixsg
Searching by google I found this command "TYPE_KEYGUARD" but I dont know how implement this maybe posible with the javascript sdk @Ashley?

the link

Note: I have a little baby girl with 9 months and I like this fuction also

felixsg2013-11-13 04:27:07

Re: Child Lock Feature???

PostPosted: Wed Nov 13, 2013 4:43 am
by bremen
@felixsg

Thanks for the post, it will give me something to looking into in the wee hours of the morning.. Congrats on the baby.

Re: Child Lock Feature???

PostPosted: Thu Nov 14, 2013 12:07 am
by bremen
Ok I have been looking at this line of code

KeyguardManager keyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE);
lock.disableKeyguard();

just not sure if it will work with constuct2, maybe a third party program?

Re: Child Lock Feature???

PostPosted: Thu Nov 14, 2013 4:30 am
by jayderyu
You can ask the CocoonJS team to implement this. Otherwise no there is no keyguard for browsers that I know of.

Re: Child Lock Feature???

PostPosted: Thu Nov 14, 2013 11:47 am
by bremen
Well the only other option i can find would be to use eclipse cause it will work there, but i don't how to use that program its to complex for me, and I'm not sure how easy it would be to transfer all the work from consruct2 over to eclipse. My guess would be not easy at all. I'm starting to get really frustrated with this problem.   

Re: Child Lock Feature???

PostPosted: Fri Nov 15, 2013 2:58 am
by bremen
@jayderyu

Well I have contacted CocoonJS waiting for a reply,I would hate to have to start over using another program considering I have Adwords, Admob, and Bing Ads running my ads for the app. I can't pause my ads cause I need people to try the Free version before I can add a Paid version.. I've looked at the phone gap but don't see the option there, I was wondering if I could just edit the XML files with the script but I don't know if that would work or mess it up.