With iOS7 Apple introduced a new kids-category in their App Store. To be listed, apps have to meet some additional guidelines, including “Apps primarily intended for use by kids under 13 must get parental permission or use a parental gate before allowing the user to link out of the app or engage in commerce.”
This includes in-app purchases, but also sharing, emailing or linking to a website or other app. All these actions have to be wrapped in a parental gate, for which I created a handy module, available via my UTiL repo on GitHub.
Learn by example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
var gate = require('gate'); // Optionally override settings gate.from = 1; // Minimum for random 'x' gate.to = 10; // Maximum for random 'y' // Optionally override texts (also via i18n) gate.title = 'Checking your IQ'; // gate_title gate.message = 'How much is %s ?'; // gate_message gate.button = 'Try'; // gate_button gate.error_title = 'You failed big time!'; // gate_error_title gate.error_message = 'No, you stupid! It was %s !'; // gate_error_message gate.error_button = 'OK'; // gate_error_button gate.keeper(function (success) { // Returns TRUE if the question was answered OK if (success) { Ti.Platform.openURL('http://www.google.com'); } // On FALSE an error dialog will be shown // No further action needed in most cases }); |