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
|
||||
void initState() {
|
||||
if (Globals().clientType == 'IOS' || Globals().clientType == 'ANDROID') {
|
||||
_purchaseSubscription = InAppPurchase.instance.purchaseStream.listen(
|
||||
purchaseUpdated,
|
||||
onDone: () => _purchaseSubscription?.cancel(),
|
||||
onError: purchaseError,
|
||||
);
|
||||
}
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user