kaylavanhaverbeck / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

How to use PushNotificationManager without a Device? #123

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
All the documentation and example show passing an object that implements Device 
to the sendNotification methods on PushNotificationManager. But all the Device 
stuff is deprecated. 

How are you suppose to send notifications without a device? 

Original issue reported on code.google.com by mlilback on 17 May 2012 at 7:27

GoogleCodeExporter commented 8 years ago
I'm not sure where you looked at in the documentation to determine that only 
Device objects are accepted, but both the javadoc and the Basic Push 
Notification wiki page state that devices can be provided in a variety of ways, 
including simple Strings. The Push class handles all the details of converting 
your device tokens into Device objects.  There is even a Devices utility class 
that can convert your lists if you absolutely cannot use the preferred Push 
class for some reason.

Also, the Device interface in question is not deprecated at all, and the 
javadoc reflects that fact...

Original comment by sype...@gmail.com on 17 May 2012 at 8:47