oppo_push 0.0.2 copy "oppo_push: ^0.0.2" to clipboard
oppo_push: ^0.0.2 copied to clipboard

PlatformAndroid

Lightweight Flutter plugin for oppo push integration. Simplifies push notifications on oppo devices, supporting token registration, message receiving, and callback handling.

oppo_push #

Pub support

oppo 推送API (vpush)

一个轻量级 Flutter 插件,用于集成 oppo 推送 API。它简化了 oppo 手机平台的推送通知开发,支持 token 注册、消息接收和回调处理。

Usage #

    import 'package:oppo_push/oppo_push.dart';

    final oppoPushPlugin = OppoPush();
    await oppoPushPlugin.initialize(false);
    oppoPushPlugin.pushStream.listen(onPushEvent);
    await oppoPushPlugin.registerToken(
                            appKey: 'appKey',
                            appSecret: 'appSecret');
    void onPushEvent(PlatformEvent event) {
        if (event is RegisterEvent) {
          String eventMsg =
              'RegisterEvent=> responseCode:[${event.responseCode}], token:[${event.token}], packageName:[${event.packageName}], miniProgramPkg:[${event.miniProgramPkg}]';
        };
      }
    

example

Additional information #

具体参考:oppo客户端API接口文档

0
likes
160
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

Lightweight Flutter plugin for oppo push integration. Simplifies push notifications on oppo devices, supporting token registration, message receiving, and callback handling.

Homepage
Repository (GitHub)
View/report issues

Topics

#oppopush #opush #heytappush

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on oppo_push

Packages that implement oppo_push