diff --git a/example/lib/main.dart b/example/lib/main.dart index 4e76a65..0e69db2 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -24,11 +24,12 @@ class _MyAppState extends State { Future initPlatformState() async { String platformVersion; // Platform messages may fail, so we use a try/catch PlatformException. - // JPush.getRegistrationID().then((rid) { - // setState(() { - // _platformVersion = "flutter getRegistrationID: $rid"; - // }); - // }); + JPush.getRegistrationID().then((rid) { + setState(() { + _platformVersion = "flutter getRegistrationID: $rid"; + }); + }); + JPush.setup( appKey: "a1703c14b186a68a66ef86c1", channel: "theChannel",