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:
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
Post a Comment