|
|
@@ -14,7 +14,6 @@ import 'pages/loginFirst.dart';
|
|
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
|
import './Localizations.dart';
|
|
|
|
|
|
-
|
|
|
class MobileCyberGamesApp extends StatelessWidget {
|
|
|
final Store<AppState> store;
|
|
|
|
|
|
@@ -66,7 +65,7 @@ void main() async {
|
|
|
jpush.setup(
|
|
|
appKey: "868cc9036e14c71e2b698f46",
|
|
|
channel: "theChannel",
|
|
|
- production: false,
|
|
|
+ production: true,
|
|
|
debug: true,
|
|
|
);
|
|
|
jpush.applyPushAuthority(new NotificationSettingsIOS(sound: true, alert: true, badge: true));
|
|
|
@@ -78,6 +77,7 @@ void main() async {
|
|
|
if (result.success && result.data != null) {
|
|
|
UserInfo userInfo = UserInfo.fromJson(result.data);
|
|
|
state.userInfo = userInfo;
|
|
|
+ jpush.setAlias(userInfo.id.toString()).then((map) {});
|
|
|
}
|
|
|
Store<AppState> store = Store<AppState>(appReducer, initialState: state);
|
|
|
runApp(new MobileCyberGamesApp(store));
|