Such a question: there is a group of VC, it is necessary that a notification be received on the device when a new record is fastened in the group. Googling, I found the account.registerDevice method, I got this code:
let array = ["wall_post": "on"] do { let data = try JSONSerialization.data(withJSONObject: array, options: []) let string = NSString(data: data, encoding: String.Encoding.utf8.rawValue) let registerDeviceRequest = VKRequest(method: "account.registerDevice", parameters: [ "token": deviceToken, "device_id": UIDevice.current.identifierForVendor!.uuidString, "sandbox": 1, "system_version": "iOS 12.0.1", "settings": string ] ) but it is necessary, according to api ( https://vk.com/dev/account.registerDevice ), the user's access key, tried to manually obtain the user's token and simply transfer it, but gave an error that the token was received with a different ip and access is denied. It turns out that all the time I have to authorize the user? before each application launch?
Can you please explain what kind of token they ask for with what rights and how to avoid constant authorization