mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 23:45:13 +08:00
v10.5.4
This commit is contained in:
@@ -50,8 +50,10 @@ export class Pushy {
|
||||
version = cInfo.pushy;
|
||||
|
||||
constructor(options: PushyOptions) {
|
||||
if (!options.appKey) {
|
||||
throw new Error('appKey is required');
|
||||
if (Platform.OS === 'ios' || Platform.OS === 'android') {
|
||||
if (!options.appKey) {
|
||||
throw new Error('appKey is required');
|
||||
}
|
||||
}
|
||||
this.setOptions(options);
|
||||
}
|
||||
|
@@ -120,6 +120,9 @@ export const PushyProvider = ({
|
||||
showAlert('更新检查失败', e.message);
|
||||
return;
|
||||
}
|
||||
if (!info) {
|
||||
return;
|
||||
}
|
||||
updateInfoRef.current = info;
|
||||
setUpdateInfo(info);
|
||||
if (info.expired) {
|
||||
|
Reference in New Issue
Block a user