I
I
ignisilion2015-09-10 12:08:55
Classmates
ignisilion, 2015-09-10 12:08:55

What does the error text PERMISSION_DENIED mean for notifications.sendSimple?

I have 2 different texts for the same error code 10
If the top one is clear to me, then I don’t even know what the bottom one is talking about, googling on the api of classmates does not give clear answers. I will be glad if someone shares information about me.
error_msg: 'PERMISSION_DENIED : User must grant an access to permission \'EVENTS\'',
error_msg: 'PERMISSION_DENIED : Access to user data denied. User haven\'t authorized the application',

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ignisilion, 2015-09-10
@ignisilion

Yes, how to say that. This is just the first error, the request for rights to send notifications was not successfully completed.
When I send access to user data, I do not ask for access, there are 3 parameters in the request and none of them talk about it.
Moreover, according to the documentation, such an accompanying text is not found anywhere
uid
Recipient ID
mark
The label that will be passed to the application in the custom_args parameter when clicking on the notification (see Application settings)
text
The message that will be sent as a notification to the user whose ID is specified in parameter
It turns out that these errors come if the user has deleted or did not install the application at all!

�
âš¡ Kotobotov âš¡, 2015-09-10
@angrySCV

everything seems to be clearly written, the user has not yet allowed access to his data to your application. First you need to get right)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question