udpate demo

master
huangminlinux 6 years ago
parent cee97d027e
commit 70abb18ad8

@ -24,11 +24,12 @@ class _MyAppState extends State<MyApp> {
Future<void> initPlatformState() async { Future<void> initPlatformState() async {
String platformVersion; String platformVersion;
// Platform messages may fail, so we use a try/catch PlatformException. // Platform messages may fail, so we use a try/catch PlatformException.
// JPush.getRegistrationID().then((rid) { JPush.getRegistrationID().then((rid) {
// setState(() { setState(() {
// _platformVersion = "flutter getRegistrationID: $rid"; _platformVersion = "flutter getRegistrationID: $rid";
// }); });
// }); });
JPush.setup( JPush.setup(
appKey: "a1703c14b186a68a66ef86c1", appKey: "a1703c14b186a68a66ef86c1",
channel: "theChannel", channel: "theChannel",

Loading…
Cancel
Save