obiwein
Forum Replies Created
-
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] New Token Registration IssueOK, I got as far as getting a web form to actually register a device into the WordPress database.
However, the token value just pulls in as “device_id” and not the actual long crazy string needed to push to iOS.
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] New Token Registration IssueYes I know, but do not understand how to create a form that specifically grabs the correct information and submits it.
Is there an actual example of the html (and additional script or whatever) to actually capture the email, name, and then hidden fields for device ID and OS, and then submit that information?
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] New Token Registration IssueJust tried doing this:
http://mysite.com/pnfw/register?prevToken=old_device_id&token=new_device_id&os=iOSHowever still results in the same error.
{“error”:”401″,”reason”:”Unauthorized”,”detail”:”Invalid HTTP method”}I have seen that project, however there is a ton of information regarding building a standalone iOS application.
Trying instead to have just the push notifications with only WordPress and the device itself without another app that gets installed. Just register the device on a web page and then done.
Is there an example registration page available just for that part?
Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] New Token Registration IssueYes, I saw that in the FAQ.
However, is there an example of the correct html page code to actually do the POST command specifically for this API to pull the device ID, etc.?
I currently have the following setup on a website, but no device tokens actually register. Please help.
<script src="Scripts/jquery-1.9.1.min.js" type="text/javascript"></script> <div class="form-group col-md-6"> Please Enter Your Email Address<input id="email" type="text" name="DeviceId" required="required" placeholder="[email protected]" /><br /> <button id="btnRegister" onclick="SubmitFormData()" class="btn btn-primary pull-right" >Register Your Device</button> </div> <script type="text/javascript"> $(document).ready(function () { }); function SubmitFormData() { alert('Submit'); register(); } function register(os, token) { var baseUrl; baseUrl = 'http://mysitename.com/pnfw'; if (!baseUrl) { return $q.reject(); } return $http({ method: 'POST', url: baseUrl + '/register', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, transformRequest: function(obj) { var p, str; str = []; for (p in obj) { str.push(encodeURIComponent(p) + '=' + encodeURIComponent(obj[p])); } return str.join('&'); }, data: { os: os, token: token } }); }; </script>Forum: Plugins
In reply to: [Push Notifications for WordPress (Lite)] How settings in IonicHow were you able to get an iOS device to correct register itself to the plugin?