File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,13 @@ class _MyAppState extends State<MyApp> {
132
132
OneSignal .User .removeTags (['test' ]);
133
133
}
134
134
135
+ void _handleGetTags () async {
136
+ print ("Get tags" );
137
+
138
+ var tags = await OneSignal .User .getTags ();
139
+ print (tags);
140
+ }
141
+
135
142
void _handlePromptForPushPermission () {
136
143
print ("Prompting for Permission" );
137
144
OneSignal .Notifications .requestPermission (true );
@@ -262,6 +269,10 @@ class _MyAppState extends State<MyApp> {
262
269
new OneSignalButton (
263
270
"Send Tags" , _handleSendTags, ! _enableConsentButton)
264
271
]),
272
+ new TableRow (children: [
273
+ new OneSignalButton (
274
+ "Get Tags" , _handleGetTags, ! _enableConsentButton)
275
+ ]),
265
276
new TableRow (children: [
266
277
new OneSignalButton ("Prompt for Push Permission" ,
267
278
_handlePromptForPushPermission, ! _enableConsentButton)
You can’t perform that action at this time.
0 commit comments