osx - How to get the device token of a mac? -


i using pushwoosh solution present , send notifications webpage mac users.

i set computer test device check , test notifications.

to this, pushwoosh wants me device token of mac. how , can it?

here can see screen of pushwoosh: enter image description here

this paragraph in "notification programming guide websites" documentation seems potentially useful:

to check permission level user has set website, call window.safari.pushnotification.permission() website push id argument. synchronous call returns permission object given identifier looking in user’s preferences. function not contact server.

one of items passed in permission object structure devicetoken, appears looking for.


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -