家庭教育# 1.0.0+1
Initial version.
1.0.0+2
Update README.md.
1.0.0+3
Update README.md.
1.0.0+4
Update README.md.
1.0.0+5
Update README.md.
1.0.0+6
Update README.md.
1.0.0+7
Update README.md.
1.0.0+8
Update README.md.
1.0.0+9
Update README.md.
1.0.0+10
Update README.md.
1.0.0+11
Update README.md.
1.0.0+12
Update README.md.
1.0.0+13
Update README.md.
1.0.0+14
Update README.md.
1.0.0+15
Update README.md.
1.0.0+16
Update README.md.
1.0.0+17
Update README.md.
1.0.0+18
Update README.md.
1.0.0+19
Update README.md.
1.0.0+20
Update README.md.
1.0.0+21
Update README.md.
1.0.0+22
Update README.md.
1.0.0+23
Update README.md.
1.0.0+24
Update README.md.
1.0.0+25
Update README.md.
1.0.0+26
Update README.md.
1.0.0+27
Update README.md.
1.0.0+28
Update README.md.
1.0.0+29
Update README.md.
1.0.0+30
Update README.md.
1.0.0+31
Update README.md.
1.0.0+32
Update README.md.
1.0.0+33
Update README.md.
1.0.0+34
Update README.md.
1.0.0+35
Update README.md.
1.0.0+36
Update README.md.
1.0.0+37
Update README.md.
1.0.0+38
Update README.md.
1.0.0+39
Update README.md.
1.0.0+40
Update README.md.
1.0.0+41
Update README.md.
1.0.0+42
Update README.md.
1.0.0+43
Update README.md.
1.0.0+44
Update README.md.
1.0.0+45
Update README.md.
1.0.0+46
Update README.md.
1.0.0+47
Update README.md.
1.0.0+48
Update README.md.
1.0.0+49
Update README.md.
1.0.0+50
Update README.md.
1.0.0+51
Update README.md.
1.0.0+52
Update README.md.
1.0.0+53
Update README.md.
1.0.0+54
Update README.md.
1.0.0+55
Update README.md.
1.0.0+56
Update README.md.
1.0.0+57
Update README.md.
1.0.0+58
Update README.md.
1.0.0+59
Update README.md.
1.0.0+60
Update README.md.
1.0.0+61
Update README.md.
1.0.0+62
Update README.md.
1.0.0+63
Update README.md.
1.0.0+64
Update README.md.
1.0.0+65
Update README.md.
1.0.0+66
Update README.md.
1.0.0+67
Update README.md.
1.0.0+68
Update README.md.
1.0.0+69
Update README.md.
1.0.0+70
Update README.md.
1.0.0+71
Update README.md.
1.0.0+72
Update README.md.
1.0.0+73
Update README.md.
1.0.0+74
Update README.md.
1.0.0+75
Update README.md.
1.0.0+76
Update README.md.
1.0.0+77
Update README.md.
1.0.0+78
Update README.md.
1.0.0+79
Update README.md.
1.0.0+80
Update README.md.
1.0.0+81
Update README.md.
1.0.0+82
Update README.md.
1.0.0+83
Update README.md.
1.0.0+84
Update README.md.
1.0.0+85
Update README.md.
1.0.0+86
Update README.md.
1.0.0+87
Update README.md.
1.0.0+88
Update README.md.
1.0.0+89
Update README.md.
1.0.0+90
Update README.md.
1.0.0+91
Update README.md.
1.0.0+92
Update README.md.
1.0.0+93
Update README.md.
1.0.0+94
Update README.md.
1.0.0+95
Update README.md.
1.0.0+96
Update README.md.
1.0.0+97
Update README.md.
1.0.0+98
Update README.md.
1.0.0+99
Update README.md.
1.0.0+100
Update README.md.
1.0.0+101
Update README.md.
1.0.0+102
Update README.md.
1.0.0+103
Update README.md.
1.0.0+104
Update README.md.
1.0.0+105
Update README.md.
1.0.0+106
Update README.md.
1.0.0+107
Update README.md.
1.0.0+108
Update README.md.
1.0.0+109
Update README.md.
1.0.0+110
Update README.md.
1.0.0+111
Update README.md.
1.0.0+112
Update README.md.
1.0.0+113
Update README.md.
1.0.0+114
Update README.md.
1.0.0+115
Update README.md.
1.0.0+116
Update README.md.
1.0.0+117
Update README.md.
1.0.0+118
Update README.md.
1.0.0+119
Update README.md.
1.0.0+120
Update README.md.
1.0.0+121
Update README.md.
1.0.0+122
Update README.md.
1.0.0+123
Update README.md.
1.0.0+124
Update README.md.
1.0.0+125
Update README.md.
1.0.0+126
Update README.md.
1.0.0+127
Update README.md.
1.0.0+128
Update README.md.
1.0.0+129
Update README.md.
1.0.0+130
Update README.md.
1.0.0+131
Update README.md.
1.0.0+132
Update README.md.
1.0.0+133
Update README.md.
1.0.0+134
Update README.md.
1.0.0+135
Update README.md.
1.0.0+136
Update README.md.
1.0.0+137
Update README.md.
1.0.0+138
Update README.md.
1.0.0+139
Update README.md.
1.0.0+140
Update README.md.
1.0.0+141
Update README.md.
1.0.0+142
Update README.md.
1.0.0+143
Update README.md.
1.0.0+144
Update README.md.
1.0.0+145
Update README.md.
1.0.0+146
Update README.md.
1.0.0+147
Update README.md.
1.0.0+148
Update README.md.
1.0.0+149
Update README.md.
1.0.0+150
Update README.md.
1.0.0+151
Update README.md.
1.0.0+152
Update README.md.
1.0.0+153
Update README.md.
1.0.0+154
Update README.md.
1.0.0+155
Update README.md.
1.0.0+156
Update README.md.
1.0.0+157
Update README.md.
1.0.0+158
Update README.md.
1.0.0+159
Update README.md.
1.0.0+160
Update README.md.
1.0.0+161
Update README.md.
1.0.0+162
Update README.md.
1.0.0+163
Update README.md.
1.0.0+164
Update README.md.
1.0.0+165
Update README.md.
1.0.0+166
Update README.md.
1.0.0+167
Update README.md.
1.0.0+168
Update README.md.
1.0.0+169
Update README.md.
1.0.0+170
Update README.md.
1.0.0+171
Update README.md.
1.0.0+172
Update README.md.
1.0.0+173
Update README.md.
1.0.0+174
Update README.md.
1.0.0+175
Update README.md.
1.0.0+176
Update README.md.
1.0.0+177
Update README.md.
1.0.0+178
Update README.md.
1.0.0+179
Update README.md.
1.0.0+180
Update README.md.
1.0.0+181
Update README.md.
1.0.0+182
Update README.md.
1.0.0+183
Update README.md.
1.0.0+184
Update README.md.
1.0.0+185
Update README.md.
1.0.0+186
Update README.md.
1.0.0+187
Update README.md.
1.0.0+188
Update README.md.
1.0.0+189
Update README.md.
1.0.0+190
Update README.md.
1.0.0+191
Update README.md.
1.0.0+192
Update README.md.
1.0.0+193
Update README.md.
1.0.0+194
Update README.md.
1.0.0+195
Update README.md.
1.0.0+196
Update README.md.
1.0.0+197
Update README.md.
1.0.0+198
Update README.md.
1.0.0+199
Update README.md.
1.0.0+200
Update README.md.
1.0.0+201
Update README.md.
1.0.0+202
Update README.md.
1.0.0+203
Update README.md.
1.0.0+204
Update README.md.
1.0.0+205
Update README.md.
1.0.0+206
Update README.md.
1.0.0+207
Update README.md.
1.0.0+208
Update README.md.
1.0.0+209
Update README.md.
1.0.0+210
Update README.md.
1.0.0+211
Update README.md.
1.0.0+212
Update README.md.
1.0.0+213
Update README.md.
1.0.0+214
Update README.md.
1.0.0+215
Update README.md.
1.0.0+216
Update README.md.
1.0.0+217
Update README.md.
1.0.0+218
Update README.md.
1.0.0+219
Update README.md.
1.0.0+220
Update README.md.
1.0.0+221
Update README.md.
1.0.0+222
Update README.md.
1.0.0+223
Update README.md.
1.0.0+224
Update README.md.
1.0.0+225
Update README.md.
1.0.0+226
Update README.md.
1.0.0+227
Update README.md.
1.0.0+228
Update README.md.
1.0.0+229
Update README.md.
1.0.0+230
Update README.md.
1.0.0+231
Update README.md.
1.0.0+232
Update README.md.
1.0.0+233
Update README.md.
1.0.0+234
Update README.md.
1.0.0+235
Update README.md.
1.0.0+236
Update README.md.
1.0.0+237
Update README.md.
1.0.0+238
Update README.md.
1.0.0+239
Update README.md.
1.0.0+240
Update README.md.
1.0.0+241
Update README.md.
1.0.0+242
Update README.md.
1.0.0+243
Update README.md.
1.0.0+244
Update README.md.
1.0.0+245
Update README.md.
1.0.0+246
Update README.md.
1.0.0+247
Update README.md.
1.0.0+248
Update README.md.
1.0.0+249
Update README.md.
1.0.0+250
Update README.md.
1.0.0+251
Update README.md.
1.0.0+252
Update README.md.
1.0.0+253
Update README.md.
1.0.0+254
Update README.md.
1.0.0+255
Update README.md.
1.0.0+256
Update README.md.
1.0.0+257
Update README.md.
1.0.0+258
Update README.md.
1.0.0+259
Update README.md.
1.0.0+260
Update README.md.
1.0.0+261
Update README.md.
1.0.0+262
Update README.md.
1.0.0+263
Update README.md.
1.0.0+264
Update README.md.
1.0.0+265
Update README.md.
1.0.0+266
Update README.md.
1.0.0+267
Update README.md.
1.0.0+268
Update README.md.
1.0.0+269
Update README.md.
1.0.0+270
Update README.md.
1.0.0+271
Update README.md.
1.0.0+272
Update README.md.
1.0.0+273
Update README.md.
1.0.0+274
Update README.md.
1.0.0+275
Update README.md.
1.0.0+276
Update README.md.
1.0.0+277
Update README.md.
1.0.0+278
Update README.md.
1.0.0+279
Update README.md.
1.0.0+280
Update README.md.
1.0.0+281
Update README.md.
1.0.0+282
Update README.md.
1.0.0+283
Update README.md.
1.0.0+284
Update README.md.
1.0.0+285
Update README.md.
1.0.0+286
Update README.md.
1.0.0+287
Update README.md.
1.0.0+288
Update README.md.
1.0.0+289
Update README.md.
1.0.0+290
Update README.md.
1.0.0+291
Update README.md.
1.0.0+292
Update README.md.
1.0.0+293
Update README.md.
1.0.0+294
Update README.md.
1.0.0+295
Update README.md.
1.0.0+296
Update README.md.
1.0.0+297
Update README.md.
1.0.0+298
Update README.md.
1.0.0+299
Update README.md.
1.0.0+300
Update README.md.
1.0.0+301
Update README.md.
1.0.0+302
Update README.md.
1.0.0+303
Update README.md.
1.0.0+304
Update README.md.
1.0.0+305
Update README.md.
1.0.0+306
Update README.md.
1.0.0+307
Update README.md.
1.0.0+308
Update README.md.
1.0.0+309
Update README.md.
1.0.0+310
Update README.md.
1.0.0+311
Update README.md.
1.0.0+312
Update README.md.
1.0.0+313
Update README.md.
1.0.0+314
Update README.md.
1.0.0+315
Update README.md.
1.0.0+316
Update README.md.
1.0.0+317
Update README.md.
1.0.0+318
Update README.md.
1.0.0+319
Update README.md.
1.0.0+320
Update README.md.
1.0.0+321
Update README.md.
1.0.0+322
Update README.md.
1.0.0+323
Update README.md.
1.0.0+324
Update README.md.
1.0.0+325
Update README.md.
1.0.0+326
Update README.md.
1.0.0+327
Update README.md.
1.0.0+328
Update README.md.
1.0.0+329
Update README.md.
1.0.0+330
Update README.md.
1.0.0+331
Update README.md.
1.0.0+332
Update README.md.
1.0.0+333
Update README.md.
极光推送插件
极光推送插件是一个用于Flutter应用程序的插件,它允许您轻松地集成极光推送服务到您的应用程序中。极光推送是一个强大的消息推送平台,可以帮助您向用户发送通知和消息,提高用户参与度和留存率。
功能特点
支持Android和iOS平台
集成简单,易于使用
支持自定义通知样式
支持消息统计和分析
支持标签和别名管理
支持富媒体消息推送
安装
在您的`pubspec.yaml`文件中添加以下依赖:
yaml
dependencies:
jpush_flutter: ^1.0.0
然后运行`flutter pub get`命令来安装插件。
使用
首先,在您的应用程序中导入插件:
dart
import 'package:jpush_flutter/jpush_flutter.dart';
然后,初始化极光推送:
dart
final JPush jpush = JPush();
jpush.setup(
appKey: "您的AppKey",
channel: "developer-default",
production: false,
debug: true,
);
接下来,您可以监听推送事件:
dart
jpush.onReceiveNotification.listen((Map
print("收到通知: $message");
});
jpush.onOpenNotification.listen((Map
print("点击通知: $message");
});
jpush.onReceiveMessage.listen((Map
print("收到自定义消息: $message");
});
配置
Android配置
在`android/app/build.gradle`文件中添加以下配置:
gradle
android {
defaultConfig {
manifestPlaceholders = [
JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : "您的AppKey",
JPUSH_CHANNEL: "developer-default",
]
}
}
iOS配置
在`ios/Runner/Info.plist`文件中添加以下配置:
xml
更多功能
设置别名和标签
dart
jpush.setAlias("alias").then((result) {
print("设置别名成功: $result");
});
jpush.setTags(["tag1", "tag2"]).then((result) {
print("设置标签成功: $result");
});
获取RegistrationID
dart
jpush.getRegistrationID().then((rid) {
print("RegistrationID: $rid");
});
设置角标
dart
jpush.setBadge(5).then((result) {
print("设置角标成功: $result");
});
注意事项
1. 请确保在极光推送控制台正确配置您的应用程序。
2. 在iOS上,您需要在`AppDelegate.swift`中添加推送相关代码。
3. 测试时请使用真机,模拟器可能无法接收推送。
常见问题
1. 为什么收不到推送?
- 检查AppKey是否正确
- 检查网络连接是否正常
- 检查设备是否允许通知权限
2. 如何测试推送?
- 可以使用极光推送控制台的推送测试功能
- 也可以使用REST API发送测试推送
3. 如何调试问题?
- 开启调试模式
- 查看设备日志
- 检查极光推送控制台的推送记录
支持
如果您遇到任何问题或有任何建议,请通过以下方式联系我们:
电子邮件:support@jpush.cn
官方网站:[https://www.jiguang.cn](https://www.jiguang.cn)
文档中心:[https://docs.jiguang.cn](https://docs.jiguang.cn)
许可证
极光推送插件使用MIT许可证。有关详细信息,请参阅LICENSE文件。
更新日志
1.0.0
初始版本发布
支持基本推送功能
支持Android和iOS平台
贡献
欢迎贡献代码!请提交Pull Request或创建Issue。
致谢
感谢极光推送团队提供的优秀服务,以及Flutter社区的贡献者。
相关链接
[极光推送官方网站](https://www.jiguang.cn)
[Flutter官方网站](https://flutter.dev)
[插件开发文档](https://flutter.dev/docs/development/packages-and-plugins/developing-packages)
示例代码
完整的示例代码可以在[GitHub仓库](https://github.com/jpush/jpush-flutter-plugin)中找到。
未来计划
支持更多推送类型
增强统计分析功能
优化性能
增加更多自定义选项
结语
极光推送插件为Flutter开发者提供了简单易用的推送解决方案,帮助您快速实现消息推送功能,提升用户体验。如果您有任何问题或建议,请随时联系我们。
查看详情
查看详情