Я реализовал покупку приложения в своем приложении.
После покупки подписки я проверяю подписку с помощью приведенного ниже API.
final Строка URL = 'https://www.googleapis.com/androidpubli ... ens/$token';
print("verify URL $url");
final response = await http.get(
Uri.parse(url),
headers: {
'Authorization': 'Bearer $accessToken',
},
);
Я получаю ответ ниже от вышеуказанного API.
{
"error": {
"code": 401,
"message": "The current user has insufficient permissions to perform the requested operation.",
"errors": [
{
"message": "The current user has insufficient permissions to perform the requested operation.",
"domain": "androidpublisher",
"reason": "permissionDenied"
}
]
}
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... in-android
Получение ошибки 401 при попытке подтвердить подписку на Android ⇐ Android
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение