update examples

This commit is contained in:
Salvatore Giordano
2020-04-21 11:36:34 +02:00
parent 4777652038
commit 746b9b622c
7 changed files with 64 additions and 55 deletions
+3 -4
View File
@@ -65,16 +65,15 @@ void _initNotifications(Client client) {
void main() async {
final client = Client(
's2dxdhpxd94g',
'b67pax5b2wdq',
logLevel: Level.INFO,
showLocalNotification: Platform.isAndroid ? showLocalNotification : null,
);
await client.setUser(
User(id: 'user1'),
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidXNlcjEifQ.NGZPyPMx7KSVisJmh4tJhOIv7ZjCaMQpOh4gTINvCaU',
User(id: 'falling-mountain-7'),
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiZmFsbGluZy1tb3VudGFpbi03In0.AKgRXHMQQMz6vJAKszXdY8zMFfsAgkoUeZHlI-Szz9E',
);
_initNotifications(client);
runApp(MyApp(client));