admin管理员组文章数量:1302274
I encountered an error while updating my app using CodePush. When calling checkForUpdate with my deploymentKey, I received the following error:
[CodePush] Api calls are disabled, skipping API call
Here’s my code snippet:
const isAvaiable = await codePush.checkForUpdate(deploymentKey);
try {
codePush.allowRestart();
const isAvaiable = await codePush.checkForUpdate(deploymentKey);
if (isAvaiable) {
codePush.setServerUrl(serverUrl);
await codePush.sync(
{
deploymentKey: deploymentKey,
installMode: codePush.InstallMode.IMMEDIATE,
},
status => {
console.log('CodePush status:', status);
},
);
} else {
Alert.alert('Thông báo', 'Hiện tại chưa có bản cập nhật mới nhất.');
}
} catch (err) {
console.log('TCL: onPressOTA -> err', err);
}
my code-push was hosted by myself is following to this docs => .md
Could you please help me find a solution to resolve this issue? Any guidance would be greatly appreciated. Thank you!
I have already verified that both the server URL and deployment key are correctly configured, matching the initial setup.
My codePush service is working => curl -I serverUrl
本文标签: react nativeApi calls are disabledskipping API call of codePushStack Overflow
版权声明:本文标题:react native - Api calls are disabled, skipping API call of codePush - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741680338a2392131.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论