PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Navigate { | |
static Map<String, Widget Function(BuildContext)> routes = { | |
'/' : (context) => WelcomePage(), | |
'/sign-in' : (context) => SignInPage(), | |
'/home' : (context) => HomePage() | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
title: Constants.title, | |
initialRoute: '/', | |
routes: Navigate.routes, | |
theme: ThemeData( | |
primarySwatch: Colors.blue, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() async{ | |
WidgetsFlutterBinding.ensureInitialized(); | |
await Firebase.initializeApp(); | |
runApp(MyApp()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Task :app:signingReport | |
Variant: debug | |
Config: debug | |
Store: /Users/peter/.android/debug.keystore | |
Alias: AndroidDebugKey | |
MD5: <md5-key> | |
SHA1: <sha1-key> | |
SHA-256: <sha256-key> | |
Valid until: Tuesday, December 1, 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd android | |
./gradlew signingReport |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST https://fcm.googleapis.com/fcm/send | |
Authoritzation key="your_server_key" | |
{ | |
"registration_ids": ["device_token"], | |
"notification": { | |
"title": "FCM", | |
"body": "messaging tutorial" | |
}, | |
"data": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FirebaseMessaging.onMessage.listen((RemoteMessage event) { | |
print("message recieved"); | |
print(event.notification!.body); | |
print(event.data.values); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST https://fcm.googleapis.com/fcm/send | |
Authoritzation key="your_server_key" | |
{ | |
"to": "/topics/messaging", | |
"notification": { | |
"title": "FCM", | |
"body": "messaging tutorial" | |
}, | |
"data": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
messaging.unsubscribeFromTopic("messaging"); |