skip purchase init on non-mobile platforms
This commit is contained in:
parent
95027c055c
commit
32ef2c5023
@ -167,11 +167,13 @@ class _SCNAppState extends State<SCNApp> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
_purchaseSubscription = InAppPurchase.instance.purchaseStream.listen(
|
if (Globals().clientType == 'IOS' || Globals().clientType == 'ANDROID') {
|
||||||
purchaseUpdated,
|
_purchaseSubscription = InAppPurchase.instance.purchaseStream.listen(
|
||||||
onDone: () => _purchaseSubscription?.cancel(),
|
purchaseUpdated,
|
||||||
onError: purchaseError,
|
onDone: () => _purchaseSubscription?.cancel(),
|
||||||
);
|
onError: purchaseError,
|
||||||
|
);
|
||||||
|
}
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user