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 @@ -140,6 +140,13 @@ class _MyAppState extends State<MyApp> {
140
140
OneSignal .User .removeTags (['test' ]);
141
141
}
142
142
143
+ void _handleGetTags () async {
144
+ print ("Get tags" );
145
+
146
+ var tags = await OneSignal .User .getTags ();
147
+ print (tags);
148
+ }
149
+
143
150
void _handlePromptForPushPermission () {
144
151
print ("Prompting for Permission" );
145
152
OneSignal .Notifications .requestPermission (true );
@@ -270,6 +277,10 @@ class _MyAppState extends State<MyApp> {
270
277
new OneSignalButton (
271
278
"Send Tags" , _handleSendTags, ! _enableConsentButton)
272
279
]),
280
+ new TableRow (children: [
281
+ new OneSignalButton (
282
+ "Get Tags" , _handleGetTags, ! _enableConsentButton)
283
+ ]),
273
284
new TableRow (children: [
274
285
new OneSignalButton ("Prompt for Push Permission" ,
275
286
_handlePromptForPushPermission, ! _enableConsentButton)
You can’t perform that action at this time.
0 commit comments