avivais / phonegap-parse-plugin

Phonegap 3.0.0 plugin for Parse.com push service
195 stars 315 forks source link

Help to configure for Windows Phone 8 #62

Open mayurloved opened 9 years ago

mayurloved commented 9 years ago

Hello, I have install plugin using CLI with app id and .NET Key. And use following code in my html file

function init() { document.addEventListener("deviceready", initPushwoosh, true); //rest of the code } function initPushwoosh() { alert("om"); parsePlugin.initialize(); } parsePlugin.initialize(appId, clientKey, function () { alert('success'+appId+"----"+clientKey); }, function (e) { alert('error'); });

                        parsePlugin.getInstallationId(function (id) {
                            alert(id);
                        }, function (e) {
                            alert('error');
                        });

                        parsePlugin.getSubscriptions(function (subscriptions) {
                            alert(subscriptions);
                        }, function (e) {
                            alert('error');
                        });

                        parsePlugin.subscribe('SampleChannel', function () {
                            alert('OK');
                        }, function (e) {
                            alert('error');
                        });

                        parsePlugin.unsubscribe('SampleChannel', function (msg) {
                            alert('OK');
                        }, function (e) {
                            alert('error');
                        });
                    </script>
</head>
But its not going in parsePlugin.initialize function. Please help me. Thanks in Advance.
mayurloved commented 9 years ago

Hello, One more thing i notise that when i installed plugin it only get js file its not getting any .cs file in project.

vkeepe commented 8 years ago

I got this working. I had to upgrade my Parse plugin to 1.6.0