Skip to content

Commit

Permalink
Show parent buy button platform parameter (#1519)
Browse files Browse the repository at this point in the history
Tested it locally, it worked.
  • Loading branch information
Jonas-Sander authored Apr 23, 2024
1 parent 4f1f1fb commit c6c4ddf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'dart:async';
import 'package:analytics/analytics.dart';
import 'package:cloud_functions/cloud_functions.dart';
import 'package:crash_analytics/crash_analytics.dart';
import 'package:platform_check/platform_check.dart';
import 'package:retry/retry.dart';
import 'package:user/user.dart';

Expand Down Expand Up @@ -71,7 +72,9 @@ class SubscriptionService {
() async {
final response = await functions
.httpsCallable('showLetParentsBuyButton')
.call<bool>();
.call<bool>({
'platform': PlatformCheck.currentPlatform.name,
});
return response.data;
},
maxAttempts: 3,
Expand Down

0 comments on commit c6c4ddf

Please sign in to comment.