Device tokens not attached to user - app not receiving pushes

I’m trying to setup a simple push notification to my ionic app.

I’ve followed the guide “push from scratch” and have done push notifications in other frameworks before.

I’ve altered my config.xml to include the push plugin Ionic-Push: No device tokens (as shown there)

My log output looks like something like the below…… notice it says push is registered.

However when I go into MyApp in ionic the device token is not attached to the user, and my app isn’t receiving the push notifications.

Anyone had any success with this using the ionic framework? I just want to run in dev / sandbox mode for now.

thanks

Dan

2015-12-01 12:54:13.273 myApp[1307:153920] Ionic Core: plugins are ready
2015-12-01 12:54:13.277 myApp[1307:153920] Ionic Push: register
2015-12-01 12:54:13.674 myApp[1307:153920] Ionic User: saved user
2015-12-01 12:54:13.748 myApp[1307:153920] Ionic Analytics: successfully registered analytics key
2015-12-01 12:54:13.804 myApp[1307:153920] Ionic Push (dev): registered with development push service
2015-12-01 12:54:13.804 myApp[1307:153920] Ionic Push: (debug) device token registered: <PushToken [‘DEV-744d7eec-1199-484d-b53b-4fedf86e563b’]>
2015-12-01 12:54:13.804 myApp[1307:153920] Device token: DEV-744d7eec-1199-484d-b53b-4fedf86e563b
2015-12-01 12:54:13.805 myApp[1307:153920] Ionic Push Token: dev tokens cannot be saved to a user as they are a temporary resource
2015-12-01 12:54:13.805 myApp[1307:153920] Ionic Push (dev): watching for new notifications
2015-12-01 12:54:14.424 myApp[1307:153920] Ionic User: saved user
2015-12-01 12:54:46.225 myApp[1307:153920] Ionic Analytics: sent events
2015-12-01 12:54:46.226 myApp[1307:153920] Ionic Analytics: [object Object]

Edit: when i try to send a targeted push to the userid the message response is this:

{“result”:“error”,“message”:“No device tokens for supplied user_ids.”,“errors”:[]}

Edit: for anyone else having this problem it seems they have just severely crippled the dev testing… you have to send a targeted push to the device id you get in your log output - you cant create users and such in dev mode only.

So really you want your app to be in production mode even for testing:
ionic config set dev_push false