|
|
@ -28,7 +28,8 @@ void main() async {
|
|
|
|
// await AmapCore.init('');
|
|
|
|
// await AmapCore.init('');
|
|
|
|
// await AmapLocation.instance.init(iosKey: '');
|
|
|
|
// await AmapLocation.instance.init(iosKey: '');
|
|
|
|
JPush jpush = new JPush();
|
|
|
|
JPush jpush = new JPush();
|
|
|
|
DevUtil.setDev(true);
|
|
|
|
const isProduct = const bool.fromEnvironment('ISPRODUCT');
|
|
|
|
|
|
|
|
DevUtil.setDev(!isProduct);
|
|
|
|
jpush.addEventHandler(
|
|
|
|
jpush.addEventHandler(
|
|
|
|
// 接收通知回调方法。
|
|
|
|
// 接收通知回调方法。
|
|
|
|
onReceiveNotification: (Map<String, dynamic> message) async {
|
|
|
|
onReceiveNotification: (Map<String, dynamic> message) async {
|
|
|
|