diff --git a/src/index.js b/src/index.js index 461b3fa15c40eb23c1b4c6a217fcdf14804dbfed..e61a99654f61d38d9c570387c700205d3aaa1672 100644 --- a/src/index.js +++ b/src/index.js @@ -95,7 +95,7 @@ class UniID { if (!appConfig) { throw new Error(`Config for current app (${this._clientInfo.appId}) was not found, please check your config file or client appId`) } - if (this._clientInfo.platform === 'app-plus') { + if (['app-plus', 'app-android', 'app-ios'].indexOf(this._clientInfo.platform) > -1) { this._clientInfo.platform = 'app' } if (this._clientInfo.platform === 'h5') {