@dcloudio/uni-push 3.0.0-3061520221228001 → 3.0.0-3061720230112001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,6 +187,13 @@ else {
187
187
  // #ifdef H5
188
188
  initBroadcastChannel(GtPush);
189
189
  // #endif
190
+ // #ifdef MP
191
+ if (typeof uni.onAppShow === 'function') {
192
+ uni.onAppShow(() => {
193
+ GtPush.enableSocket(true);
194
+ });
195
+ }
196
+ // #endif
190
197
  GtPush.init({
191
198
  appid,
192
199
  onError: (res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-push",
3
- "version": "3.0.0-3061520221228001",
3
+ "version": "3.0.0-3061720230112001",
4
4
  "description": "@dcloudio/uni-push",
5
5
  "main": "lib/uni-push.js",
6
6
  "module": "lib/uni-push.js",
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
22
22
  "dependencies": {
23
- "@dcloudio/uni-cli-shared": "3.0.0-3061520221228001"
23
+ "@dcloudio/uni-cli-shared": "3.0.0-3061720230112001"
24
24
  }
25
25
  }