capacitor-hms-push-kit
Version:
Capacitor plugin for HMS push kit
40 lines (32 loc) • 1.06 kB
JavaScript
var capacitortestPlugin = (function (exports, core) {
'use strict';
class PushKitWeb extends core.WebPlugin {
constructor() {
super({
name: 'PushKit',
platforms: ['web'],
});
}
async getToken() {
throw new Error('Not supported in the Web.');
}
async subscribe(_options) {
throw new Error('Not supported in the Web.');
}
async unsubscribe(_options) {
throw new Error('Not supported in the Web.');
}
}
var web = /*#__PURE__*/Object.freeze({
__proto__: null,
PushKitWeb: PushKitWeb
});
const PushKit = core.registerPlugin('PushKit', {
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.PushKitWeb()),
});
exports.PushKit = PushKit;
exports.PushKitWeb = PushKitWeb;
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
})({}, capacitorExports);
//# sourceMappingURL=plugin.js.map