V
V
Vadim Leven2018-06-19 19:24:20
API
Vadim Leven, 2018-06-19 19:24:20

How to implement authorization on the site through VKontakte with permission to send notifications from the group?

The functionality of the developed service is to send notifications to the user in VKontakte, the service settings are allocated to a separate web page, and to access this page, you must log in through VKontakte.
Now the "Allow MessagesFromCommunity" widget is used ( https://vk.com/dev/AllowMessagesFromCommunity), it is good when the user first allows notifications to be sent: the user clicks "Allow notifications" and as a result his VKontakte ID is sent to the server and authorization occurs.
But this widget has a significant disadvantage, when you re-authorize on the settings page, at first this widget looks like "Disable notifications", i.e. the user is forced to first click "Deny" and then again "Allow" and only then will authorization occur.
Are there ways to avoid forcing the user to click "Deny" and then "Allow"?
Or is there a way to authorize the user by creating an API application with the rights to send messages from the community?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shchastny, 2020-01-24
@shchastny

Were you able to implement it? Asked the same question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question