-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ipad platform, checkMobile for vk #1
Conversation
/** | ||
* Обертка для метода VKWebAppAllowMessagesFromGroup. Запрашивает у юзера разрешение на получение сообщений от сообщества | ||
* @param {number} group_id ID группы VK. По умолчанию читается из window.group_id | ||
* @returns {boolean} true, если разрешение было получено | ||
*/ | ||
export default async (group_id = Number(window.group_id)): Promise<boolean> => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
добавить метод запрета уведомлений: https://vk.com/dev/vkbridge/vkwebappdenynotifications
референс:
https://gitlab.team.ktsstudio.ru/-/ide/project/mailru-nonstandart/whiskas-front/tree/master/-/src/utils/notifications/notifications.ts/
https://gitlab.team.ktsstudio.ru/-/ide/project/mailru-nonstandart/whiskas-front/tree/master/-/src/utils/notifications/useNotificationsSubscribe.ts/
* Returns false for non user caused errors, | ||
* returns true for error 'User denied'. | ||
/** | ||
* Получает access token с переданными параметрами access scope. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
access => параметрами доступа
/** | ||
* Обертка для VKWebAppSetViewSettings. | ||
* Устанавливает цвета statusbar и actionbar (IOS и Android), navigationbar (Android). | ||
* По умолчанию устанавливает темный цвет содержимого статус-бара (status_bar_style: 'dark') и белый фон (action_bar_color: 'white'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
разделить понятия status_bar_style: dark, light и то, что action_bar_color может быть разным цветом
## v2.0.0 - [-] удалены утилиты, которые не несли смысловой нагрузки и являлись просто оберткой try catch над вызовом метода VK ([issue](#5)) - [*] изменен метод вызова VK API через bridge, в него добавлена проверка на ошибки токена и возможность ретрая в их случае - [*] изменен метод получения access token - [+] добавлен оптимальный метод получения access token с обращением к window - [+] добавлен метод для шеринга в пост с загрузкой картинки на сервер VK - [*] функция initializeApp теперь асинхронная (issue не было, но жалобы были) - [+] добавлена возможность получения access token с пустым scope ([issue](#7)) - [*] исправлены возвращаемые типы всех функций ([issue](#6)) - [*] общие минорные улучшения, небольшой рефактор - [+] сборка библиотеки на rollup, режим разработки, сборка модулей в двух форматах - cjs и es - [*] улучшены JSDoc - [*] хук useEventSubscribe передает полученный event в callback ([issue](#1))
No description provided.