The page you are looking at is being generated dynamically by CodeIgniter.

If you would like to edit this page you'll find it located at:


The corresponding controller for this page is found at:


If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.

Code on github: OneSignal-Codeigniter-Push-Notification

To enable OneSignal on your site, you will need to paste the code from Web Push Settings into your website's < head >. If you do not have access to modify your site's code, you will need to contact a developer to help you.

Example of use on this site

        <script src="" async></script>
            var OneSignal = window.OneSignal || [];
            OneSignal.push(["init", {
                appId: "793aebfc-840f-447a-9749-135928c15b29",
                subdomainName: 'push',
                autoRegister: true,
                promptOptions: {
                    /* These prompt options values configure both the HTTP prompt and the HTTP popup. */
                    /* actionMessage limited to 90 characters */
                    actionMessage: "We'd like to show you notifications for the latest news.",
                    /* acceptButtonText limited to 15 characters */
                    acceptButtonText: "ALLOW",
                    /* cancelButtonText limited to 15 characters */
                    cancelButtonText: "NO THANKS"
            function subscribe() {
                // OneSignal.push(["registerForPushNotifications"]);
            function unsubscribe(){

            var OneSignal = OneSignal || [];
            OneSignal.push(function() {
                /* These examples are all valid */
                // Occurs when the user's subscription changes to a new value.
                OneSignal.on('subscriptionChange', function (isSubscribed) {
                    console.log("The user's subscription state is now:", isSubscribed);
                    OneSignal.sendTag("user_id","4444", function(tagsSent)
                        // Callback called when tags have finished sending
                        console.log("Tags have finished sending!");

                var isPushSupported = OneSignal.isPushNotificationsSupported();
                if (isPushSupported)
                    // Push notifications are supported
                        if (isEnabled)
                            console.log("Push notifications are enabled!");

                        } else {
                            console.log("Push notifications are not enabled yet.");

                } else {
                    console.log("Push notifications are not supported.");