Created
May 4, 2021 15:02
-
-
Save PeterHdd/76fe37b0b5f4e4b8317ac90ac565d7f3 to your computer and use it in GitHub Desktop.
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 _MyHomePageState extends State<MyHomePage> { | |
late FirebaseMessaging messaging; | |
@override | |
void initState() { | |
super.initState(); | |
messaging = FirebaseMessaging.instance; | |
messaging.getToken().then((value){ | |
print(value); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment