<p>I have finally figured this out with the help of the developer, boboldehampsink. Thank you so much for your help!</p>

<p>The post parameters are:</p>

<pre><code>{
    'app': 'app_handle',
    'platform': 'ios/android',
    'registrationId': 'token'
}
</code></pre>

<p><strong>Note:</strong></p>

<p>You must use the front-end url to register a device without needing login credentials.</p>

<p>Post to the URL:
<a href="http://localhost/CraftCMS/public/actions/pushNotifications/devices/registerDevice" rel="nofollow">http://localhost/CraftCMS/public/actions/pushNotifications/devices/registerDevice</a></p>

<p><strong>More information found here:</strong> <a href="https://github.com/boboldehampsink/pushnotifications/issues/1" rel="nofollow">https://github.com/boboldehampsink/pushnotifications/issues/1</a></p>

CC BY-SA 3.0
2015-10-15T17:17:16.107Z
2015-10-15T17:19:31.367Z
2015-10-15T17:19:31.367Z
Sandy D.
<p>I've been looking at the Push Notification Plugin.</p>

<p>Link: <a href="https://github.com/boboldehampsink/pushnotifications" rel="nofollow">https://github.com/boboldehampsink/pushnotifications</a> </p>

<p>I'm having some issues determining how an iOS or Android application can automatically add a new device token to an application. Meaning, I wouldn't want to add the device token via the CP. Most users don't know what their device token is.</p>

<p>I've looked at the HTTP Requests that is produced when I click to create a new device in the plugin settings; however, when I test trying to create a new device only by URL it fails. Any ideas? </p>

<p>Has anyone else used this plugin? </p>

CC BY-SA 3.0
2015-10-14T23:06:19.867Z
Maybe try creating an issue on the repo? https://github.com/boboldehampsink/pushnotifications/issues
Brad Bell
<plugins><plugin-pushnotifications>
CraftCMS Push Notifications: New Device Token
# CraftCMS Push Notifications: New Device Token

(Asked by: username_0 on 2015-10-14)

I've been looking at the Push Notification Plugin.

Link: <https://github.com/boboldehampsink/pushnotifications>

I'm having some issues determining how an iOS or Android application can automatically add a new device token to an application. Meaning, I wouldn't want to add the device token via the CP. Most users don't know what their device token is.

I've looked at the HTTP Requests that is produced when I click to create a new device in the plugin settings; however, when I test trying to create a new device only by URL it fails. Any ideas?

Has anyone else used this plugin?

**Tags:** plugins, plugin-pushnotifications

> **Comments:**
> **username_1**: Maybe try creating an issue on the repo? https://github.com/boboldehampsink/pushnotifications/issues  

---

## 1 answers

### Answer by username_0 on 2015-10-15. Score: 3 | Accepted answer

I have finally figured this out with the help of the developer, boboldehampsink. Thank you so much for your help!
The post parameters are:
{
    'app': 'app_handle',
    'platform': 'ios/android',
    'registrationId': 'token'
}

Note:
You must use the front-end url to register a device without needing login credentials.
Post to the URL:
http://localhost/CraftCMS/public/actions/pushNotifications/devices/registerDevice
More information found here: https://github.com/boboldehampsink/pushnotifications/issues/1


---

